Skip to content

Commit 72ad4e6

Browse files
committed
make IsSubClassNode inline into special calls
1 parent 47a6ee7 commit 72ad4e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,14 +900,14 @@ protected int getLength(PTuple t) {
900900
// issubclass(class, classinfo)
901901
@Builtin(name = ISSUBCLASS, fixedNumOfPositionalArgs = 2)
902902
@GenerateNodeFactory
903-
public abstract static class IsSubClassNode extends PythonBuiltinNode {
903+
public abstract static class IsSubClassNode extends PythonBinaryBuiltinNode {
904904
@Child private LookupAndCallBinaryNode subclassCheckNode = LookupAndCallBinaryNode.create(__SUBCLASSCHECK__);
905905
@Child private CastToBooleanNode castToBooleanNode = CastToBooleanNode.createIfTrueNode();
906906
@Child private IsSubtypeNode isSubtypeNode = IsSubtypeNode.create();
907907
@Child private SequenceStorageNodes.LenNode lenNode;
908908

909909
public static IsSubClassNode create() {
910-
return BuiltinFunctionsFactory.IsSubClassNodeFactory.create(null);
910+
return BuiltinFunctionsFactory.IsSubClassNodeFactory.create();
911911
}
912912

913913
private boolean isInstanceCheckInternal(Object derived, Object cls) {

0 commit comments

Comments
 (0)