@@ -69,7 +69,7 @@ PyObject_Size(PyObject *o)
6969
7070 // GraalPy change: upcall for managed objects
7171 if (points_to_py_handle_space (o )) {
72- return GraalPyTruffleObject_Size (o );
72+ return PyTruffleObject_Size (o );
7373 }
7474
7575 PySequenceMethods * m = Py_TYPE (o )-> tp_as_sequence ;
@@ -1066,7 +1066,7 @@ ternary_op(PyObject *v,
10661066 PyObject * \
10671067 func(PyObject *v, PyObject *w) { \
10681068 if (points_to_py_handle_space(v) && points_to_py_handle_space(w)) { \
1069- return GraalPyTruffle ##func(v, w); \
1069+ return PyTruffle ##func(v, w); \
10701070 } \
10711071 return binary_op(v, w, NB_SLOT(op), op_name); \
10721072 }
@@ -1084,7 +1084,7 @@ PyNumber_Add(PyObject *v, PyObject *w)
10841084{
10851085 // GraalPy change: upcall when both managed to save on doing multiple upcalls
10861086 if (points_to_py_handle_space (v ) && points_to_py_handle_space (w )) {
1087- return GraalPyTrufflePyNumber_Add (v , w );
1087+ return PyTrufflePyNumber_Add (v , w );
10881088 }
10891089 PyObject * result = BINARY_OP1 (v , w , NB_SLOT (nb_add ), "+" );
10901090 if (result != Py_NotImplemented ) {
@@ -1126,7 +1126,7 @@ PyNumber_Multiply(PyObject *v, PyObject *w)
11261126{
11271127 // GraalPy change: upcall when both managed to save on doing multiple upcalls
11281128 if (points_to_py_handle_space (v ) && points_to_py_handle_space (w )) {
1129- return GraalPyTrufflePyNumber_Multiply (v , w );
1129+ return PyTrufflePyNumber_Multiply (v , w );
11301130 }
11311131 PyObject * result = BINARY_OP1 (v , w , NB_SLOT (nb_multiply ), "*" );
11321132 if (result == Py_NotImplemented ) {
@@ -1149,7 +1149,7 @@ PyNumber_MatrixMultiply(PyObject *v, PyObject *w)
11491149{
11501150 // GraalPy change: upcall when both managed to save on doing multiple upcalls
11511151 if (points_to_py_handle_space (v ) && points_to_py_handle_space (w )) {
1152- return GraalPyTrufflePyNumber_MatrixMultiply (v , w );
1152+ return PyTrufflePyNumber_MatrixMultiply (v , w );
11531153 }
11541154 return binary_op (v , w , NB_SLOT (nb_matrix_multiply ), "@" );
11551155}
@@ -1159,7 +1159,7 @@ PyNumber_FloorDivide(PyObject *v, PyObject *w)
11591159{
11601160 // GraalPy change: upcall when both managed to save on doing multiple upcalls
11611161 if (points_to_py_handle_space (v ) && points_to_py_handle_space (w )) {
1162- return GraalPyTrufflePyNumber_FloorDivide (v , w );
1162+ return PyTrufflePyNumber_FloorDivide (v , w );
11631163 }
11641164 return binary_op (v , w , NB_SLOT (nb_floor_divide ), "//" );
11651165}
@@ -1169,7 +1169,7 @@ PyNumber_TrueDivide(PyObject *v, PyObject *w)
11691169{
11701170 // GraalPy change: upcall when both managed to save on doing multiple upcalls
11711171 if (points_to_py_handle_space (v ) && points_to_py_handle_space (w )) {
1172- return GraalPyTrufflePyNumber_TrueDivide (v , w );
1172+ return PyTrufflePyNumber_TrueDivide (v , w );
11731173 }
11741174 return binary_op (v , w , NB_SLOT (nb_true_divide ), "/" );
11751175}
@@ -1179,7 +1179,7 @@ PyNumber_Remainder(PyObject *v, PyObject *w)
11791179{
11801180 // GraalPy change: upcall when both managed to save on doing multiple upcalls
11811181 if (points_to_py_handle_space (v ) && points_to_py_handle_space (w )) {
1182- return GraalPyTrufflePyNumber_Remainder (v , w );
1182+ return PyTrufflePyNumber_Remainder (v , w );
11831183 }
11841184 return binary_op (v , w , NB_SLOT (nb_remainder ), "%" );
11851185}
@@ -1189,7 +1189,7 @@ PyNumber_Power(PyObject *v, PyObject *w, PyObject *z)
11891189{
11901190 // GraalPy change: upcall when both managed to save on doing multiple upcalls
11911191 if (points_to_py_handle_space (v ) && points_to_py_handle_space (w )) {
1192- return GraalPyTrufflePyNumber_Power (v , w , z );
1192+ return PyTrufflePyNumber_Power (v , w , z );
11931193 }
11941194 return ternary_op (v , w , z , NB_SLOT (nb_power ), "** or pow()" );
11951195}
@@ -1283,7 +1283,7 @@ ternary_iop(PyObject *v, PyObject *w, PyObject *z, const int iop_slot, const int
12831283 PyObject * \
12841284 func(PyObject *v, PyObject *w) { \
12851285 if (points_to_py_handle_space(v)) { \
1286- return GraalPyTruffle ##func(v, w); \
1286+ return PyTruffle ##func(v, w); \
12871287 } \
12881288 return binary_iop(v, w, NB_SLOT(iop), NB_SLOT(op), op_name); \
12891289 }
@@ -1304,7 +1304,7 @@ PyNumber_InPlaceAdd(PyObject *v, PyObject *w)
13041304{
13051305 // GraalPy change: upcall when v is managed to avoid multiple upcalls
13061306 if (points_to_py_handle_space (v )) {
1307- return GraalPyTrufflePyNumber_InPlaceAdd (v , w );
1307+ return PyTrufflePyNumber_InPlaceAdd (v , w );
13081308 }
13091309 PyObject * result = BINARY_IOP1 (v , w , NB_SLOT (nb_inplace_add ),
13101310 NB_SLOT (nb_add ), "+=" );
@@ -1331,7 +1331,7 @@ PyNumber_InPlaceMultiply(PyObject *v, PyObject *w)
13311331{
13321332 // GraalPy change: upcall when v is managed to avoid multiple upcalls
13331333 if (points_to_py_handle_space (v )) {
1334- return GraalPyTrufflePyNumber_InPlaceMultiply (v , w );
1334+ return PyTrufflePyNumber_InPlaceMultiply (v , w );
13351335 }
13361336 PyObject * result = BINARY_IOP1 (v , w , NB_SLOT (nb_inplace_multiply ),
13371337 NB_SLOT (nb_multiply ), "*=" );
@@ -1364,7 +1364,7 @@ PyNumber_InPlacePower(PyObject *v, PyObject *w, PyObject *z)
13641364{
13651365 // GraalPy change: upcall when v is managed to avoid multiple upcalls
13661366 if (points_to_py_handle_space (v )) {
1367- return GraalPyTrufflePyNumber_InPlacePower (v , w , z );
1367+ return PyTrufflePyNumber_InPlacePower (v , w , z );
13681368 }
13691369 return ternary_iop (v , w , z , NB_SLOT (nb_inplace_power ),
13701370 NB_SLOT (nb_power ), "**=" );
@@ -1787,7 +1787,7 @@ PySequence_Size(PyObject *s)
17871787
17881788 // GraalPy change: upcall for managed
17891789 if (points_to_py_handle_space (s )) {
1790- return GraalPyTruffleSequence_Size (s );
1790+ return PyTruffleSequence_Size (s );
17911791 }
17921792
17931793 PySequenceMethods * m = Py_TYPE (s )-> tp_as_sequence ;
@@ -1946,7 +1946,7 @@ PySequence_GetItem(PyObject *s, Py_ssize_t i)
19461946
19471947 // GraalPy change: upcall for managed
19481948 if (points_to_py_handle_space (s )) {
1949- return GraalPyTruffleSequence_GetItem (s , i );
1949+ return PyTruffleSequence_GetItem (s , i );
19501950 }
19511951
19521952 PySequenceMethods * m = Py_TYPE (s )-> tp_as_sequence ;
@@ -2006,7 +2006,7 @@ PySequence_SetItem(PyObject *s, Py_ssize_t i, PyObject *o)
20062006
20072007 // GraalPy change: upcall for managed
20082008 if (points_to_py_handle_space (s )) {
2009- return GraalPyTruffleSequence_SetItem (s , i , o );
2009+ return PyTruffleSequence_SetItem (s , i , o );
20102010 }
20112011
20122012 PySequenceMethods * m = Py_TYPE (s )-> tp_as_sequence ;
@@ -2044,7 +2044,7 @@ PySequence_DelItem(PyObject *s, Py_ssize_t i)
20442044
20452045 // GraalPy change: upcall for managed
20462046 if (points_to_py_handle_space (s )) {
2047- return GraalPyTruffleSequence_DelItem (s , i );
2047+ return PyTruffleSequence_DelItem (s , i );
20482048 }
20492049
20502050 PySequenceMethods * m = Py_TYPE (s )-> tp_as_sequence ;
@@ -2240,7 +2240,7 @@ PySequence_Fast(PyObject *v, const char *m)
22402240 }
22412241
22422242 // GraalPy change: different implementation
2243- return GraalPySequence_List (v );
2243+ return PySequence_List (v );
22442244}
22452245
22462246#if 0 // GraalPy change
@@ -2391,7 +2391,7 @@ PyMapping_Size(PyObject *o)
23912391
23922392 // GraalPy change: upcall for managed
23932393 if (points_to_py_handle_space (o )) {
2394- return GraalPyTruffleMapping_Size (o );
2394+ return PyTruffleMapping_Size (o );
23952395 }
23962396
23972397 PyMappingMethods * m = Py_TYPE (o )-> tp_as_mapping ;
@@ -2422,7 +2422,7 @@ PyObject *
24222422PyMapping_GetItemString (PyObject * o , const char * key )
24232423{
24242424 // GraalPy change: different implementation
2425- return GraalPyTruffleObject_GetItemString (o , key );
2425+ return PyTruffleObject_GetItemString (o , key );
24262426}
24272427
24282428int
@@ -2954,7 +2954,7 @@ PyIter_Send(PyObject *iter, PyObject *arg, PyObject **result)
29542954 return res ;
29552955 }
29562956 // GraalPy change: different implementation
2957- * result = GraalPyTruffleIter_Send (iter , arg );
2957+ * result = PyTruffleIter_Send (iter , arg );
29582958 if (* result != NULL ) {
29592959 return PYGEN_NEXT ;
29602960 }
0 commit comments