@@ -45,7 +45,7 @@ dummy_func(void) {
45
45
op (_LOAD_FAST_AND_CLEAR , (-- value )) {
46
46
value = GETLOCAL (oparg );
47
47
_Py_UOpsSymType * temp ;
48
- OUT_OF_SPACE_IF_NULL (temp = _Py_uop_sym_newnull (ctx ));
48
+ OUT_OF_SPACE_IF_NULL (temp = _Py_uop_sym_new_null (ctx ));
49
49
GETLOCAL (oparg ) = temp ;
50
50
}
51
51
@@ -54,7 +54,7 @@ dummy_func(void) {
54
54
}
55
55
56
56
op (_PUSH_NULL , (-- res )) {
57
- res = _Py_uop_sym_newnull (ctx );
57
+ res = _Py_uop_sym_new_null (ctx );
58
58
if (res == NULL ) {
59
59
goto out_of_space ;
60
60
};
@@ -96,7 +96,7 @@ dummy_func(void) {
96
96
if (temp == NULL ) {
97
97
goto error ;
98
98
}
99
- OUT_OF_SPACE_IF_NULL (res = _Py_uop_sym_newconst (ctx , temp ));
99
+ OUT_OF_SPACE_IF_NULL (res = _Py_uop_sym_new_const (ctx , temp ));
100
100
// TODO gh-115506:
101
101
// replace opcode with constant propagated one and add tests!
102
102
}
@@ -114,7 +114,7 @@ dummy_func(void) {
114
114
if (temp == NULL ) {
115
115
goto error ;
116
116
}
117
- OUT_OF_SPACE_IF_NULL (res = _Py_uop_sym_newconst (ctx , temp ));
117
+ OUT_OF_SPACE_IF_NULL (res = _Py_uop_sym_new_const (ctx , temp ));
118
118
// TODO gh-115506:
119
119
// replace opcode with constant propagated one and add tests!
120
120
}
@@ -132,7 +132,7 @@ dummy_func(void) {
132
132
if (temp == NULL ) {
133
133
goto error ;
134
134
}
135
- OUT_OF_SPACE_IF_NULL (res = _Py_uop_sym_newconst (ctx , temp ));
135
+ OUT_OF_SPACE_IF_NULL (res = _Py_uop_sym_new_const (ctx , temp ));
136
136
// TODO gh-115506:
137
137
// replace opcode with constant propagated one and add tests!
138
138
}
@@ -151,7 +151,7 @@ dummy_func(void) {
151
151
if (temp == NULL ) {
152
152
goto error ;
153
153
}
154
- res = _Py_uop_sym_newconst (ctx , temp );
154
+ res = _Py_uop_sym_new_const (ctx , temp );
155
155
// TODO gh-115506:
156
156
// replace opcode with constant propagated one and update tests!
157
157
}
@@ -170,7 +170,7 @@ dummy_func(void) {
170
170
if (temp == NULL ) {
171
171
goto error ;
172
172
}
173
- res = _Py_uop_sym_newconst (ctx , temp );
173
+ res = _Py_uop_sym_new_const (ctx , temp );
174
174
// TODO gh-115506:
175
175
// replace opcode with constant propagated one and update tests!
176
176
}
@@ -189,7 +189,7 @@ dummy_func(void) {
189
189
if (temp == NULL ) {
190
190
goto error ;
191
191
}
192
- res = _Py_uop_sym_newconst (ctx , temp );
192
+ res = _Py_uop_sym_new_const (ctx , temp );
193
193
// TODO gh-115506:
194
194
// replace opcode with constant propagated one and update tests!
195
195
}
@@ -205,21 +205,21 @@ dummy_func(void) {
205
205
}
206
206
207
207
op (_LOAD_CONST_INLINE , (ptr /4 -- value )) {
208
- OUT_OF_SPACE_IF_NULL (value = _Py_uop_sym_newconst (ctx , ptr ));
208
+ OUT_OF_SPACE_IF_NULL (value = _Py_uop_sym_new_const (ctx , ptr ));
209
209
}
210
210
211
211
op (_LOAD_CONST_INLINE_BORROW , (ptr /4 -- value )) {
212
- OUT_OF_SPACE_IF_NULL (value = _Py_uop_sym_newconst (ctx , ptr ));
212
+ OUT_OF_SPACE_IF_NULL (value = _Py_uop_sym_new_const (ctx , ptr ));
213
213
}
214
214
215
215
op (_LOAD_CONST_INLINE_WITH_NULL , (ptr /4 -- value , null )) {
216
- OUT_OF_SPACE_IF_NULL (value = _Py_uop_sym_newconst (ctx , ptr ));
217
- OUT_OF_SPACE_IF_NULL (null = _Py_uop_sym_newnull (ctx ));
216
+ OUT_OF_SPACE_IF_NULL (value = _Py_uop_sym_new_const (ctx , ptr ));
217
+ OUT_OF_SPACE_IF_NULL (null = _Py_uop_sym_new_null (ctx ));
218
218
}
219
219
220
220
op (_LOAD_CONST_INLINE_BORROW_WITH_NULL , (ptr /4 -- value , null )) {
221
- OUT_OF_SPACE_IF_NULL (value = _Py_uop_sym_newconst (ctx , ptr ));
222
- OUT_OF_SPACE_IF_NULL (null = _Py_uop_sym_newnull (ctx ));
221
+ OUT_OF_SPACE_IF_NULL (value = _Py_uop_sym_new_const (ctx , ptr ));
222
+ OUT_OF_SPACE_IF_NULL (null = _Py_uop_sym_new_null (ctx ));
223
223
}
224
224
225
225
@@ -257,7 +257,7 @@ dummy_func(void) {
257
257
258
258
op (_LOAD_ATTR_MODULE , (index /1 , owner -- attr , null if (oparg & 1 ))) {
259
259
(void )index ;
260
- OUT_OF_SPACE_IF_NULL (null = _Py_uop_sym_newnull (ctx ));
260
+ OUT_OF_SPACE_IF_NULL (null = _Py_uop_sym_new_null (ctx ));
261
261
attr = NULL ;
262
262
if (this_instr [-1 ].opcode == _NOP ) {
263
263
// Preceding _CHECK_ATTR_MODULE was removed: mod is const and dict is watched.
@@ -268,7 +268,7 @@ dummy_func(void) {
268
268
PyObject * res = convert_global_to_const (this_instr , dict );
269
269
if (res != NULL ) {
270
270
this_instr [-1 ].opcode = _POP_TOP ;
271
- OUT_OF_SPACE_IF_NULL (attr = _Py_uop_sym_newconst (ctx , res ));
271
+ OUT_OF_SPACE_IF_NULL (attr = _Py_uop_sym_new_const (ctx , res ));
272
272
}
273
273
}
274
274
if (attr == NULL ) {
@@ -383,7 +383,7 @@ dummy_func(void) {
383
383
/* This has to be done manually */
384
384
(void )seq ;
385
385
for (int i = 0 ; i < oparg ; i ++ ) {
386
- OUT_OF_SPACE_IF_NULL (values [i ] = _Py_uop_sym_newunknown (ctx ));
386
+ OUT_OF_SPACE_IF_NULL (values [i ] = _Py_uop_sym_new_unknown (ctx ));
387
387
}
388
388
}
389
389
@@ -392,7 +392,7 @@ dummy_func(void) {
392
392
(void )seq ;
393
393
int totalargs = (oparg & 0xFF ) + (oparg >> 8 ) + 1 ;
394
394
for (int i = 0 ; i < totalargs ; i ++ ) {
395
- OUT_OF_SPACE_IF_NULL (values [i ] = _Py_uop_sym_newunknown (ctx ));
395
+ OUT_OF_SPACE_IF_NULL (values [i ] = _Py_uop_sym_new_unknown (ctx ));
396
396
}
397
397
}
398
398
0 commit comments