Skip to content

Commit a47d678

Browse files
committed
minor - fixed some node names in PythonCext
1 parent b922e90 commit a47d678

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/cext/PythonCextAbstractBuiltins.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ protected BinaryArithmetic.AddNode createAdd() {
935935

936936
@Builtin(name = "PySequence_DelItem", minNumOfPositionalArgs = 2)
937937
@GenerateNodeFactory
938-
public abstract static class PySequence_DelItemNode extends PythonBinaryBuiltinNode {
938+
public abstract static class PySequenceDelItemNode extends PythonBinaryBuiltinNode {
939939
@Specialization
940940
Object run(VirtualFrame frame, Object o, Object i,
941941
@Cached PyObjectDelItem delItemNode,
@@ -952,7 +952,7 @@ Object run(VirtualFrame frame, Object o, Object i,
952952

953953
@Builtin(name = "PySequence_Check", minNumOfPositionalArgs = 1)
954954
@GenerateNodeFactory
955-
abstract static class PySequence_Check extends PythonUnaryBuiltinNode {
955+
abstract static class PySequenceCheck extends PythonUnaryBuiltinNode {
956956
@Specialization
957957
static boolean check(Object object,
958958
@Cached PySequenceCheckNode check) {

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/cext/PythonCextBytesBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ Object doNativePointer(VirtualFrame frame, Object module, Object nativePointer,
349349

350350
@Builtin(name = "_PyBytes_Resize", minNumOfPositionalArgs = 2)
351351
@GenerateNodeFactory
352-
public abstract static class PyBytes_Resize extends PythonBinaryBuiltinNode {
352+
public abstract static class PyBytesResize extends PythonBinaryBuiltinNode {
353353

354354
@Specialization
355355
int resize(VirtualFrame frame, PBytes self, long newSizeL,

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/cext/PythonCextCodeBuiltins.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,10 @@
6060
import com.oracle.truffle.api.dsl.Specialization;
6161
import com.oracle.truffle.api.frame.VirtualFrame;
6262

63-
@CoreFunctions(defineModule = PythonCextCodeBuiltins.PYTHON_CEXT_CODE)
63+
@CoreFunctions(extendsModule = PythonCextBuiltins.PYTHON_CEXT)
6464
@GenerateNodeFactory
6565
public class PythonCextCodeBuiltins extends PythonBuiltins {
6666

67-
public static final String PYTHON_CEXT_CODE = "python_cext_code";
68-
6967
@Override
7068
protected List<? extends NodeFactory<? extends PythonBuiltinBaseNode>> getNodeFactories() {
7169
return PythonCextCodeBuiltinsFactory.getFactories();

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/cext/PythonCextSetBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ protected boolean isSetSubtype(VirtualFrame frame, Object obj, GetClassNode getC
403403

404404
@Builtin(name = "PySet_Add", minNumOfPositionalArgs = 2)
405405
@GenerateNodeFactory
406-
public abstract static class PySet_Add extends PythonBinaryBuiltinNode {
406+
public abstract static class PySetAdd extends PythonBinaryBuiltinNode {
407407

408408
@Specialization
409409
int add(VirtualFrame frame, PBaseSet self, Object o,

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/cext/PythonCextUnicodeBuiltins.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,9 +787,9 @@ Object split(VirtualFrame frame, Object module, Object string, Object sep, Objec
787787

788788
@Builtin(name = "_PyUnicode_AsUTF8String", minNumOfPositionalArgs = 3)
789789
@GenerateNodeFactory
790-
abstract static class _PyUnicode_AsUTF8String extends NativeEncoderNode {
790+
abstract static class PyUnicodeAsUTF8String extends NativeEncoderNode {
791791

792-
protected _PyUnicode_AsUTF8String() {
792+
protected PyUnicodeAsUTF8String() {
793793
super(StandardCharsets.UTF_8);
794794
}
795795
}

0 commit comments

Comments
 (0)