File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1616,17 +1616,17 @@ abstract static class LocalsNode extends PythonBuiltinNode {
1616
1616
private final ConditionProfile inClassProfile = ConditionProfile .createBinaryProfile ();
1617
1617
1618
1618
@ Specialization
1619
- public Object globals (VirtualFrame frame ) {
1619
+ public Object locals (VirtualFrame frame ) {
1620
1620
Frame callerFrame = readCallerFrameNode .executeWith (frame );
1621
- PFrame pFrame = PArguments .getPFrame (frame );
1621
+ PFrame pFrame = PArguments .getPFrame (callerFrame );
1622
1622
if (condProfile .profile (pFrame != null )) {
1623
1623
return pFrame .getLocals (factory ());
1624
1624
} else {
1625
1625
Object specialArgument = PArguments .getSpecialArgument (callerFrame );
1626
1626
if (inClassProfile .profile (specialArgument instanceof ClassBodyRootNode )) {
1627
- return factory ().createDictLocals (frame , true );
1627
+ return factory ().createDictLocals (callerFrame , true );
1628
1628
} else {
1629
- return factory ().createDictLocals (frame , false );
1629
+ return factory ().createDictLocals (callerFrame , false );
1630
1630
}
1631
1631
}
1632
1632
}
You can’t perform that action at this time.
0 commit comments