File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/frame Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 51
51
import com .oracle .truffle .api .CompilerDirectives ;
52
52
import com .oracle .truffle .api .CompilerDirectives .CompilationFinal ;
53
53
import com .oracle .truffle .api .Truffle ;
54
+ import com .oracle .truffle .api .dsl .Bind ;
54
55
import com .oracle .truffle .api .dsl .Cached ;
55
56
import com .oracle .truffle .api .dsl .CachedContext ;
56
57
import com .oracle .truffle .api .dsl .Specialization ;
@@ -91,9 +92,10 @@ protected Object readGlobalCached(@SuppressWarnings("unused") VirtualFrame frame
91
92
return returnGlobalOrBuiltin (result );
92
93
}
93
94
94
- @ Specialization (guards = "isModule(getGlobals(frame))" , replaces = "readGlobalCached" )
95
- protected Object readGlobal (VirtualFrame frame ) {
96
- Object result = readFromModuleNode .execute (PArguments .getGlobals (frame ), attributeId );
95
+ @ Specialization (guards = "isModule(globals)" , replaces = "readGlobalCached" )
96
+ protected Object readGlobal (@ SuppressWarnings ("unused" ) VirtualFrame frame ,
97
+ @ Bind ("getGlobals(frame)" ) Object globals ) {
98
+ Object result = readFromModuleNode .execute (globals , attributeId );
97
99
return returnGlobalOrBuiltin (result );
98
100
}
99
101
You can’t perform that action at this time.
0 commit comments