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 5151import com .oracle .truffle .api .CompilerDirectives ;
5252import com .oracle .truffle .api .CompilerDirectives .CompilationFinal ;
5353import com .oracle .truffle .api .Truffle ;
54+ import com .oracle .truffle .api .dsl .Bind ;
5455import com .oracle .truffle .api .dsl .Cached ;
5556import com .oracle .truffle .api .dsl .CachedContext ;
5657import com .oracle .truffle .api .dsl .Specialization ;
@@ -91,9 +92,10 @@ protected Object readGlobalCached(@SuppressWarnings("unused") VirtualFrame frame
9192 return returnGlobalOrBuiltin (result );
9293 }
9394
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 );
9799 return returnGlobalOrBuiltin (result );
98100 }
99101
You can’t perform that action at this time.
0 commit comments