@@ -368,7 +368,7 @@ public abstract static class ToJavaClassNode extends ToJavaObjectNode {
368
368
*/
369
369
@ Builtin (name = "to_char_pointer" , minNumOfPositionalArgs = 1 )
370
370
@ GenerateNodeFactory
371
- abstract static class TruffleString_AsString extends NativeBuiltin {
371
+ abstract static class TruffleStringAsStringNode extends NativeBuiltin {
372
372
373
373
@ Specialization (guards = "isString(str)" )
374
374
static Object run (Object str ,
@@ -471,7 +471,7 @@ static Object run(Object obj,
471
471
472
472
@ Builtin (name = "PyTruffle_Type" , minNumOfPositionalArgs = 1 )
473
473
@ GenerateNodeFactory
474
- abstract static class PyTruffle_Type extends NativeBuiltin {
474
+ abstract static class PyTruffleTypeNode extends NativeBuiltin {
475
475
476
476
private static final String [] LOOKUP_MODULES = new String []{
477
477
PythonCextBuiltins .PYTHON_CEXT ,
@@ -773,7 +773,7 @@ static Object run(PBaseException exception, Object object,
773
773
774
774
@ Builtin (name = "PyTruffle_SetAttr" , minNumOfPositionalArgs = 3 )
775
775
@ GenerateNodeFactory
776
- abstract static class PyObject_Setattr extends PythonTernaryBuiltinNode {
776
+ abstract static class PyObjectSetAttrNode extends PythonTernaryBuiltinNode {
777
777
778
778
abstract Object execute (Object object , String key , Object value );
779
779
@@ -863,7 +863,7 @@ private static Object[] collect(MroSequenceStorage mro, int idx) {
863
863
864
864
@ Builtin (name = "Py_NoValue" )
865
865
@ GenerateNodeFactory
866
- abstract static class Py_NoValue extends PythonBuiltinNode {
866
+ abstract static class PyNoValue extends PythonBuiltinNode {
867
867
@ Specialization
868
868
static PNone doNoValue () {
869
869
return PNone .NO_VALUE ;
@@ -944,7 +944,7 @@ protected static int remaining(ByteBuffer cb) {
944
944
945
945
@ Builtin (name = "PyTruffle_Unicode_FromWchar" , minNumOfPositionalArgs = 3 )
946
946
@ GenerateNodeFactory
947
- abstract static class PyTruffle_Unicode_FromWchar extends NativeUnicodeBuiltin {
947
+ abstract static class PyTruffleUnicodeFromWcharNode extends NativeUnicodeBuiltin {
948
948
@ Child private UnicodeFromWcharNode unicodeFromWcharNode ;
949
949
@ Child private CExtNodes .ToNewRefNode toSulongNode ;
950
950
@@ -997,7 +997,7 @@ private CExtNodes.ToNewRefNode ensureToSulongNode() {
997
997
998
998
@ Builtin (name = "PyTruffle_Unicode_FromUTF8" , minNumOfPositionalArgs = 2 )
999
999
@ GenerateNodeFactory
1000
- abstract static class PyTruffle_Unicode_FromUTF8 extends NativeBuiltin {
1000
+ abstract static class PyTruffleUnicodeFromUTF8Node extends NativeBuiltin {
1001
1001
1002
1002
@ Specialization
1003
1003
Object doBytes (VirtualFrame frame , Object o , Object errorMarker ,
@@ -1052,23 +1052,23 @@ Object doUnicode(VirtualFrame frame, @SuppressWarnings("unused") Object s, @Supp
1052
1052
1053
1053
@ Builtin (name = "_PyTruffle_Unicode_AsLatin1String" , minNumOfPositionalArgs = 3 )
1054
1054
@ GenerateNodeFactory
1055
- abstract static class _PyTruffle_Unicode_AsLatin1String extends NativeEncoderNode {
1056
- protected _PyTruffle_Unicode_AsLatin1String () {
1055
+ abstract static class PyTruffleUnicodeAsLatin1StringNode extends NativeEncoderNode {
1056
+ protected PyTruffleUnicodeAsLatin1StringNode () {
1057
1057
super (StandardCharsets .ISO_8859_1 );
1058
1058
}
1059
1059
}
1060
1060
1061
1061
@ Builtin (name = "_PyTruffle_Unicode_AsASCIIString" , minNumOfPositionalArgs = 3 )
1062
1062
@ GenerateNodeFactory
1063
- abstract static class _PyTruffle_Unicode_AsASCIIString extends NativeEncoderNode {
1064
- protected _PyTruffle_Unicode_AsASCIIString () {
1063
+ abstract static class PyTruffleUnicodeAsASCIIStringNode extends NativeEncoderNode {
1064
+ protected PyTruffleUnicodeAsASCIIStringNode () {
1065
1065
super (StandardCharsets .US_ASCII );
1066
1066
}
1067
1067
}
1068
1068
1069
1069
@ Builtin (name = "PyTruffle_Unicode_AsUnicodeAndSize" , minNumOfPositionalArgs = 3 )
1070
1070
@ GenerateNodeFactory
1071
- abstract static class PyTruffle_Unicode_AsUnicodeAndSize extends NativeBuiltin {
1071
+ abstract static class PyTruffleUnicodeAsUnicodeAndSizeNode extends NativeBuiltin {
1072
1072
@ Specialization
1073
1073
@ TruffleBoundary
1074
1074
Object doUnicode (PString s ) {
@@ -1085,7 +1085,7 @@ Object doUnicode(PString s) {
1085
1085
// directly called without landing function
1086
1086
@ Builtin (name = "PyTruffle_Unicode_DecodeUTF32" , minNumOfPositionalArgs = 5 )
1087
1087
@ GenerateNodeFactory
1088
- abstract static class PyTruffle_Unicode_DecodeUTF32 extends NativeUnicodeBuiltin {
1088
+ abstract static class PyTruffleUnicodeDecodeUTF32Node extends NativeUnicodeBuiltin {
1089
1089
1090
1090
@ Specialization
1091
1091
Object doUnicodeStringErrors (VirtualFrame frame , Object o , long size , String errors , int byteorder , Object errorMarker ,
@@ -1127,7 +1127,7 @@ private String decodeUTF32(byte[] data, int size, String errors, int byteorder)
1127
1127
@ Builtin (name = "PyTruffle_Unicode_AsWideChar" , minNumOfPositionalArgs = 3 )
1128
1128
@ TypeSystemReference (PythonArithmeticTypes .class )
1129
1129
@ GenerateNodeFactory
1130
- abstract static class PyTruffle_Unicode_AsWideChar extends NativeUnicodeBuiltin {
1130
+ abstract static class PyTruffleUnicodeAsWideCharNode extends NativeUnicodeBuiltin {
1131
1131
@ Specialization
1132
1132
Object doUnicode (VirtualFrame frame , Object s , long elementSize , Object errorMarker ,
1133
1133
@ Cached UnicodeAsWideCharNode asWideCharNode ,
@@ -1148,7 +1148,7 @@ Object doUnicode(VirtualFrame frame, Object s, long elementSize, Object errorMar
1148
1148
1149
1149
@ Builtin (name = "PyTruffle_Bytes_AsString" , minNumOfPositionalArgs = 2 )
1150
1150
@ GenerateNodeFactory
1151
- abstract static class PyTruffle_Bytes_AsString extends NativeBuiltin {
1151
+ abstract static class PyTruffleBytesAsStringNode extends NativeBuiltin {
1152
1152
@ Specialization
1153
1153
static Object doBytes (PBytes bytes , @ SuppressWarnings ("unused" ) Object errorMarker ) {
1154
1154
return new PySequenceArrayWrapper (bytes , 1 );
@@ -1261,7 +1261,7 @@ Object tbHere(String funcname, String filename, int lineno,
1261
1261
1262
1262
@ Builtin (name = "PyTruffle_Set_SulongType" , minNumOfPositionalArgs = 2 )
1263
1263
@ GenerateNodeFactory
1264
- abstract static class PyTruffle_Set_SulongType extends NativeBuiltin {
1264
+ abstract static class PyTruffleSetSulongTypeNode extends NativeBuiltin {
1265
1265
1266
1266
@ Specialization (limit = "1" )
1267
1267
static Object doPythonObject (PythonClassNativeWrapper klass , Object ptr ,
@@ -1394,7 +1394,7 @@ Object call(Object self, PBuiltinFunction function) {
1394
1394
1395
1395
@ Builtin (name = "PyTruffle_Bytes_EmptyWithCapacity" , minNumOfPositionalArgs = 1 )
1396
1396
@ GenerateNodeFactory
1397
- abstract static class PyTruffle_Bytes_EmptyWithCapacity extends PythonUnaryBuiltinNode {
1397
+ abstract static class PyTruffleBytesEmptyWithCapacityNode extends PythonUnaryBuiltinNode {
1398
1398
1399
1399
@ Specialization
1400
1400
PBytes doInt (int size ) {
@@ -1707,7 +1707,7 @@ static double doIt(Object object,
1707
1707
1708
1708
@ Builtin (name = "PyTruffle_Register_NULL" , minNumOfPositionalArgs = 1 )
1709
1709
@ GenerateNodeFactory
1710
- abstract static class PyTruffle_Register_NULL extends PythonUnaryBuiltinNode {
1710
+ abstract static class PyTruffleRegisterNULLNode extends PythonUnaryBuiltinNode {
1711
1711
@ Specialization
1712
1712
Object doIt (Object object ) {
1713
1713
PythonNativeNull nn = getContext ().getNativeNull ();
@@ -1746,7 +1746,7 @@ static PyCFunctionDecorator decorate(Object fun0, Object fun1) {
1746
1746
@ Builtin (name = "PyType_IsSubtype" , minNumOfPositionalArgs = 2 )
1747
1747
@ GenerateNodeFactory
1748
1748
@ ImportStatic (PythonOptions .class )
1749
- abstract static class PyType_IsSubtype extends PythonBinaryBuiltinNode {
1749
+ abstract static class PyTypeIsSubtypeNode extends PythonBinaryBuiltinNode {
1750
1750
1751
1751
@ Specialization (guards = {"a == cachedA" , "b == cachedB" }, assumptions = "singleContextAssumption()" )
1752
1752
static int doCached (@ SuppressWarnings ("unused" ) VirtualFrame frame , @ SuppressWarnings ("unused" ) PythonNativeWrapper a , @ SuppressWarnings ("unused" ) PythonNativeWrapper b ,
@@ -1790,7 +1790,7 @@ static int doSlow(VirtualFrame frame, Object derived, Object cls) {
1790
1790
@ Builtin (name = "PyTruffle_Compute_Mro" , minNumOfPositionalArgs = 2 )
1791
1791
@ GenerateNodeFactory
1792
1792
@ TypeSystemReference (PythonTypes .class )
1793
- public abstract static class PyTruffle_Compute_Mro extends PythonBinaryBuiltinNode {
1793
+ public abstract static class PyTruffleComputeMroNode extends PythonBinaryBuiltinNode {
1794
1794
1795
1795
@ Specialization (guards = "isNativeObject(self)" )
1796
1796
Object doIt (Object self , String className ) {
@@ -1817,7 +1817,7 @@ static PDict doGeneric(PythonNativeClass nativeClass) {
1817
1817
@ Builtin (name = "PyTruffle_Type_Modified" , minNumOfPositionalArgs = 3 )
1818
1818
@ GenerateNodeFactory
1819
1819
@ TypeSystemReference (PythonTypes .class )
1820
- public abstract static class PyTruffle_Type_Modified extends PythonTernaryBuiltinNode {
1820
+ public abstract static class PyTruffleTypeModifiedNode extends PythonTernaryBuiltinNode {
1821
1821
1822
1822
@ TruffleBoundary
1823
1823
@ Specialization (guards = {"isNativeClass(clazz)" , "isNoValue(mroTuple)" })
@@ -1853,7 +1853,7 @@ Object doIt(Object clazz, String name, PTuple mroTuple,
1853
1853
@ Builtin (name = "PyTruffle_FatalError" , parameterNames = {"prefix" , "msg" , "status" })
1854
1854
@ GenerateNodeFactory
1855
1855
@ TypeSystemReference (PythonTypes .class )
1856
- public abstract static class PyTruffle_FatalError extends PythonBuiltinNode {
1856
+ public abstract static class PyTruffleFatalErrorNode extends PythonBuiltinNode {
1857
1857
1858
1858
@ Specialization
1859
1859
@ TruffleBoundary
@@ -1873,7 +1873,7 @@ Object doGeneric(Object prefixObj, Object msgObj, int status) {
1873
1873
1874
1874
@ Builtin (name = "PyTruffle_OS_StringToDouble" , minNumOfPositionalArgs = 2 )
1875
1875
@ GenerateNodeFactory
1876
- abstract static class PyTruffle_OS_StringToDouble extends NativeBuiltin {
1876
+ abstract static class PyTruffleOSStringToDoubleNode extends NativeBuiltin {
1877
1877
1878
1878
@ Specialization
1879
1879
Object doGeneric (VirtualFrame frame , String source , int reportPos ) {
@@ -1914,7 +1914,7 @@ private static Number parse(String source) throws ParseException {
1914
1914
@ Builtin (name = "PyTruffle_OS_DoubleToString" , minNumOfPositionalArgs = 4 )
1915
1915
@ GenerateNodeFactory
1916
1916
@ ImportStatic (SpecialMethodNames .class )
1917
- abstract static class PyTruffle_OS_DoubleToString extends NativeBuiltin {
1917
+ abstract static class PyTruffleOSDoubleToStringNode extends NativeBuiltin {
1918
1918
1919
1919
/* keep in sync with macro 'TRANSLATE_TYPE' in 'pystrtod.c' */
1920
1920
private static final int Py_DTST_FINITE = 0 ;
@@ -2407,7 +2407,7 @@ static Object classOrStatic(String name, Object methObj, int flags, int wrapper,
2407
2407
@ Specialization (guards = "!isClassOrStaticMethod(flags)" )
2408
2408
static Object doNativeCallable (String name , Object methObj , int flags , int wrapper , Object type ,
2409
2409
Object doc , PythonObjectFactory factory ,
2410
- @ Cached PyObject_Setattr setattr ,
2410
+ @ Cached PyObjectSetAttrNode setattr ,
2411
2411
@ Shared ("cf" ) @ Cached CreateFunctionNode createFunctionNode ,
2412
2412
@ Shared ("cstr" ) @ Cached CharPtrToJavaObjectNode cstrPtr ) {
2413
2413
Object func = createFunctionNode .execute (name , methObj , wrapper , type , flags , factory );
0 commit comments