1
1
/*
2
- * Copyright (c) 2023, 2024 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2023, 2025 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* The Universal Permissive License (UPL), Version 1.0
45
45
import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyAsyncMethods__am_await ;
46
46
import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyMappingMethods__mp_ass_subscript ;
47
47
import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_absolute ;
48
- import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_divmod ;
49
48
import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_float ;
50
49
import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_floor_divide ;
51
50
import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_index ;
63
62
import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_inplace_xor ;
64
63
import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_int ;
65
64
import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_invert ;
66
- import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_lshift ;
67
65
import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_negative ;
68
- import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_or ;
69
66
import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_positive ;
70
67
import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_power ;
71
- import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_remainder ;
72
- import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_rshift ;
73
- import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_subtract ;
74
- import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_true_divide ;
75
- import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyNumberMethods__nb_xor ;
76
68
import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PySequenceMethods__sq_ass_item ;
77
69
import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyTypeObject__tp_as_mapping ;
78
70
import static com .oracle .graal .python .builtins .objects .cext .structs .CFields .PyTypeObject__tp_as_number ;
90
82
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___ANEXT__ ;
91
83
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___AWAIT__ ;
92
84
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___CALL__ ;
93
- import static com .oracle .graal .python .nodes .SpecialMethodNames .T___DIVMOD__ ;
94
85
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___FLOAT__ ;
95
86
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___FLOORDIV__ ;
96
87
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___HASH__ ;
111
102
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___ITER__ ;
112
103
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___ITRUEDIV__ ;
113
104
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___IXOR__ ;
114
- import static com .oracle .graal .python .nodes .SpecialMethodNames .T___LSHIFT__ ;
115
- import static com .oracle .graal .python .nodes .SpecialMethodNames .T___MOD__ ;
116
105
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___NEG__ ;
117
106
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___NEXT__ ;
118
- import static com .oracle .graal .python .nodes .SpecialMethodNames .T___OR__ ;
119
107
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___POS__ ;
120
108
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___POW__ ;
121
109
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___REPR__ ;
122
- import static com .oracle .graal .python .nodes .SpecialMethodNames .T___RSHIFT__ ;
123
110
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___SETATTR__ ;
124
111
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___SETITEM__ ;
125
112
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___STR__ ;
126
- import static com .oracle .graal .python .nodes .SpecialMethodNames .T___SUB__ ;
127
- import static com .oracle .graal .python .nodes .SpecialMethodNames .T___TRUEDIV__ ;
128
113
import static com .oracle .graal .python .nodes .SpecialMethodNames .T___TRUFFLE_RICHCOMPARE__ ;
129
- import static com .oracle .graal .python .nodes .SpecialMethodNames .T___XOR__ ;
130
114
131
115
import com .oracle .graal .python .builtins .objects .cext .capi .PyProcsWrapper .BinaryFuncWrapper ;
132
116
import com .oracle .graal .python .builtins .objects .cext .capi .PyProcsWrapper .HashfuncWrapper ;
@@ -164,7 +148,6 @@ public enum SlotMethodDef {
164
148
SQ_ASS_ITEM (PySequenceMethods__sq_ass_item , T___SETITEM__ , SsizeobjargfuncWrapper ::new , MethodsFlags .SQ_ASS_ITEM ),
165
149
166
150
NB_ABSOLUTE (PyNumberMethods__nb_absolute , T___ABS__ , UnaryFuncWrapper ::new , MethodsFlags .NB_ABSOLUTE ),
167
- NB_DIVMOD (PyNumberMethods__nb_divmod , T___DIVMOD__ , BinaryFuncWrapper ::new , MethodsFlags .NB_DIVMOD ),
168
151
NB_FLOAT (PyNumberMethods__nb_float , T___FLOAT__ , UnaryFuncWrapper ::new , MethodsFlags .NB_FLOAT ),
169
152
NB_FLOOR_DIVIDE (PyNumberMethods__nb_floor_divide , T___FLOORDIV__ , BinaryFuncWrapper ::new , MethodsFlags .NB_FLOOR_DIVIDE ),
170
153
NB_INDEX (PyNumberMethods__nb_index , T___INDEX__ , UnaryFuncWrapper ::new , MethodsFlags .NB_INDEX ),
@@ -182,16 +165,9 @@ public enum SlotMethodDef {
182
165
NB_INPLACE_XOR (PyNumberMethods__nb_inplace_xor , T___IXOR__ , BinaryFuncWrapper ::new , MethodsFlags .NB_INPLACE_XOR ),
183
166
NB_INT (PyNumberMethods__nb_int , T___INT__ , UnaryFuncWrapper ::new , MethodsFlags .NB_INT ),
184
167
NB_INVERT (PyNumberMethods__nb_invert , T___INVERT__ , UnaryFuncWrapper ::new , MethodsFlags .NB_INVERT ),
185
- NB_LSHIFT (PyNumberMethods__nb_lshift , T___LSHIFT__ , BinaryFuncWrapper ::new , MethodsFlags .NB_LSHIFT ),
186
168
NB_NEGATIVE (PyNumberMethods__nb_negative , T___NEG__ , UnaryFuncWrapper ::new , MethodsFlags .NB_NEGATIVE ),
187
- NB_OR (PyNumberMethods__nb_or , T___OR__ , BinaryFuncWrapper ::new , MethodsFlags .NB_OR ),
188
169
NB_POSITIVE (PyNumberMethods__nb_positive , T___POS__ , UnaryFuncWrapper ::new , MethodsFlags .NB_POSITIVE ),
189
- NB_POWER (PyNumberMethods__nb_power , T___POW__ , TernaryFunctionWrapper ::new , MethodsFlags .NB_POWER ),
190
- NB_REMAINDER (PyNumberMethods__nb_remainder , T___MOD__ , BinaryFuncWrapper ::new , MethodsFlags .NB_REMAINDER ),
191
- NB_RSHIFT (PyNumberMethods__nb_rshift , T___RSHIFT__ , BinaryFuncWrapper ::new , MethodsFlags .NB_RSHIFT ),
192
- NB_SUBTRACT (PyNumberMethods__nb_subtract , T___SUB__ , BinaryFuncWrapper ::new , MethodsFlags .NB_SUBTRACT ),
193
- NB_TRUE_DIVIDE (PyNumberMethods__nb_true_divide , T___TRUEDIV__ , BinaryFuncWrapper ::new , MethodsFlags .NB_TRUE_DIVIDE ),
194
- NB_XOR (PyNumberMethods__nb_xor , T___XOR__ , BinaryFuncWrapper ::new , MethodsFlags .NB_XOR );
170
+ NB_POWER (PyNumberMethods__nb_power , T___POW__ , TernaryFunctionWrapper ::new , MethodsFlags .NB_POWER );
195
171
196
172
public final TruffleString methodName ;
197
173
public final Function <Object , PyProcsWrapper > wrapperFactory ;
@@ -235,9 +211,7 @@ public enum SlotMethodDef {
235
211
initGroup (
236
212
PyTypeObject__tp_as_number ,
237
213
NB_ABSOLUTE ,
238
- NB_DIVMOD ,
239
214
NB_FLOAT ,
240
- NB_FLOOR_DIVIDE ,
241
215
NB_INDEX ,
242
216
NB_INPLACE_ADD ,
243
217
NB_INPLACE_AND ,
@@ -253,16 +227,9 @@ public enum SlotMethodDef {
253
227
NB_INPLACE_XOR ,
254
228
NB_INT ,
255
229
NB_INVERT ,
256
- NB_LSHIFT ,
257
230
NB_NEGATIVE ,
258
- NB_OR ,
259
231
NB_POSITIVE ,
260
- NB_POWER ,
261
- NB_REMAINDER ,
262
- NB_RSHIFT ,
263
- NB_SUBTRACT ,
264
- NB_TRUE_DIVIDE ,
265
- NB_XOR );
232
+ NB_POWER );
266
233
}
267
234
268
235
private static void initGroup (CFields typeField , SlotMethodDef ... slots ) {
0 commit comments