Skip to content

Commit 95d5beb

Browse files
committed
Use slot lookup for __new__ in type ctor
1 parent d76d971 commit 95d5beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2140,7 +2140,7 @@ Object typeNew(VirtualFrame frame, Object cls, Object wName, PTuple bases, PDict
21402140
@Cached GetClassNode getClassNode,
21412141
@CachedLibrary(limit = "3") HashingStorageLibrary hashingStoragelib,
21422142
@Cached BranchProfile updatedStorage,
2143-
@Cached("create(__NEW__)") LookupInheritedAttributeNode getNewFuncNode,
2143+
@Cached("create(New)") LookupInheritedSlotNode getNewFuncNode,
21442144
@Cached("create(__INIT_SUBCLASS__)") GetAttributeNode getInitSubclassNode,
21452145
@Cached("create(__SET_NAME__)") LookupInheritedAttributeNode getSetNameNode,
21462146
@Cached("create(__MRO_ENTRIES__)") LookupInheritedAttributeNode lookupMroEntriesNode,

0 commit comments

Comments
 (0)