Skip to content

Commit d69a3d9

Browse files
committed
Mark internal roots as internal
1 parent dde31f0 commit d69a3d9

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/capi/ExternalFunctionNodes.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,11 @@ public boolean isPythonInternal() {
959959
return true;
960960
}
961961

962+
@Override
963+
public boolean isInternal() {
964+
return true;
965+
}
966+
962967
protected final Object readSelf(VirtualFrame frame) {
963968
if (readSelfNode != null) {
964969
return readSelfNode.execute(frame);

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy/HPyExternalFunctionNodes.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,11 @@ public String toString() {
543543
return "<METH root " + name.toJavaStringUncached() + ">";
544544
}
545545

546+
@Override
547+
public boolean isInternal() {
548+
return true;
549+
}
550+
546551
@Override
547552
public boolean isPythonInternal() {
548553
return true;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common/SortNodes.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ public boolean isPythonInternal() {
153153
return true;
154154
}
155155

156+
@Override
157+
public boolean isInternal() {
158+
return true;
159+
}
160+
156161
@Override
157162
public String getName() {
158163
return "sort_comparator";

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/expression/CallArithmeticRootNode.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -57,6 +57,11 @@ protected CallArithmeticRootNode(TruffleLanguage<?> language) {
5757
super(language);
5858
}
5959

60+
@Override
61+
public boolean isInternal() {
62+
return true;
63+
}
64+
6065
@Override
6166
public boolean isPythonInternal() {
6267
return true;

0 commit comments

Comments
 (0)