Skip to content

Commit 413f2a5

Browse files
msimacektimfel
authored andcommitted
Replace more usages of lookup and lookupAndCall messages
1 parent e6b201a commit 413f2a5

File tree

5 files changed

+138
-77
lines changed

5 files changed

+138
-77
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/JavaModuleBuiltins.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
import com.oracle.graal.python.builtins.objects.module.PythonModule;
5959
import com.oracle.graal.python.builtins.objects.object.PythonObjectLibrary;
6060
import com.oracle.graal.python.builtins.objects.str.PString;
61+
import com.oracle.graal.python.lib.PyObjectLookupAttr;
6162
import com.oracle.graal.python.nodes.ErrorMessages;
6263
import com.oracle.graal.python.nodes.function.PythonBuiltinBaseNode;
6364
import com.oracle.graal.python.nodes.function.PythonBuiltinNode;
@@ -269,7 +270,7 @@ abstract static class GetAttrNode extends PythonBuiltinNode {
269270
private Object getAttr(VirtualFrame frame, PythonModule mod, PythonObjectLibrary lib) {
270271
if (getAttr == null) {
271272
CompilerDirectives.transferToInterpreterAndInvalidate();
272-
Object javaLoader = lib.lookupAttributeStrict(mod, frame, JAVA_PKG_LOADER);
273+
Object javaLoader = PyObjectLookupAttr.getUncached().executeStrict(frame, this, mod, JAVA_PKG_LOADER);
273274
getAttr = lib.lookupAndCallRegularMethod(javaLoader, frame, MAKE_GETATTR, JAVA);
274275
}
275276
return getAttr;

0 commit comments

Comments
 (0)