@@ -210,7 +210,7 @@ dummy_func(
210
210
U_INST (BINARY_OP_MULTIPLY_INT_REST );
211
211
}
212
212
213
- u_inst (BINARY_OP_MULTIPLY_INT_REST , (left , right -- prod : PyLong_Type )) {
213
+ u_inst (BINARY_OP_MULTIPLY_INT_REST , (left , right -- prod : <<= * left )) {
214
214
STAT_INC (BINARY_OP , hit );
215
215
prod = _PyLong_Multiply ((PyLongObject * )left , (PyLongObject * )right );
216
216
_Py_DECREF_SPECIALIZED (right , (destructor )PyObject_Free );
@@ -235,7 +235,7 @@ dummy_func(
235
235
U_INST (BINARY_OP_SUBTRACT_INT_REST );
236
236
}
237
237
238
- u_inst (BINARY_OP_SUBTRACT_INT_REST , (left , right -- sub : PyLong_Type )) {
238
+ u_inst (BINARY_OP_SUBTRACT_INT_REST , (left , right -- sub : <<= * left )) {
239
239
STAT_INC (BINARY_OP , hit );
240
240
sub = _PyLong_Subtract ((PyLongObject * )left , (PyLongObject * )right );
241
241
_Py_DECREF_SPECIALIZED (right , (destructor )PyObject_Free );
@@ -323,19 +323,19 @@ dummy_func(
323
323
}
324
324
}
325
325
326
- inst (BINARY_OP_ADD_FLOAT_UNBOXED , (left , right -- sum : PyRawFloat_Type )) {
326
+ inst (BINARY_OP_ADD_FLOAT_UNBOXED , (left , right -- sum : <<= * left )) {
327
327
STAT_INC (BINARY_OP , hit );
328
328
double temp = * (double * )(& (left )) + * (double * )(& (right ));
329
329
sum = * (PyObject * * )(& temp );
330
330
}
331
331
332
- inst (BINARY_OP_SUBTRACT_FLOAT_UNBOXED , (left , right -- sum : PyRawFloat_Type )) {
332
+ inst (BINARY_OP_SUBTRACT_FLOAT_UNBOXED , (left , right -- sum : <<= * left )) {
333
333
STAT_INC (BINARY_OP , hit );
334
334
double temp = * (double * )(& (left )) - * (double * )(& (right ));
335
335
sum = * (PyObject * * )(& temp );
336
336
}
337
337
338
- inst (BINARY_OP_MULTIPLY_FLOAT_UNBOXED , (left , right -- prod : PyRawFloat_Type )) {
338
+ inst (BINARY_OP_MULTIPLY_FLOAT_UNBOXED , (left , right -- prod : <<= * left )) {
339
339
STAT_INC (BINARY_OP , hit );
340
340
double temp = * (double * )(& (left )) * * (double * )(& (right ));
341
341
prod = * (PyObject * * )(& temp );
@@ -364,7 +364,7 @@ dummy_func(
364
364
bb_test = BB_TEST (is_successor , 0 );
365
365
}
366
366
367
- u_inst (BINARY_OP_ADD_INT_REST , (left , right -- sum : PyLong_Type )) {
367
+ u_inst (BINARY_OP_ADD_INT_REST , (left , right -- sum : <<= * left )) {
368
368
STAT_INC (BINARY_OP , hit );
369
369
sum = _PyLong_Add ((PyLongObject * )left , (PyLongObject * )right );
370
370
_Py_DECREF_SPECIALIZED (right , (destructor )PyObject_Free );
@@ -507,12 +507,12 @@ dummy_func(
507
507
DISPATCH_INLINED (new_frame );
508
508
}
509
509
510
- inst (LIST_APPEND , (list , unused [oparg - 1 ], v -- list : PyList_Type , unused [oparg - 1 ])) {
510
+ inst (LIST_APPEND , (list , unused [oparg - 1 ], v -- list : <<= PyList_Type , unused [oparg - 1 ])) {
511
511
ERROR_IF (_PyList_AppendTakeRef ((PyListObject * )list , v ) < 0 , error );
512
512
PREDICT (JUMP_BACKWARD );
513
513
}
514
514
515
- inst (SET_ADD , (set , unused [oparg - 1 ], v -- set , unused [oparg - 1 ])) {
515
+ inst (SET_ADD , (set , unused [oparg - 1 ], v -- set : <<= PySet_Type , unused [oparg - 1 ])) {
516
516
int err = PySet_Add (set , v );
517
517
DECREF_INPUTS ();
518
518
ERROR_IF (err , error );
@@ -3232,12 +3232,12 @@ dummy_func(
3232
3232
ERROR_IF (result == NULL , error );
3233
3233
}
3234
3234
3235
- inst (COPY , (bottom , unused [oparg - 1 ] -- bottom, unused [oparg - 1 ], top : * bottom )) {
3235
+ inst (COPY , (bottom , unused [oparg - 1 ] -- bottom , unused [oparg - 1 ], top : <<= * bottom )) {
3236
3236
assert (oparg > 0 );
3237
3237
top = Py_NewRef (bottom );
3238
3238
}
3239
3239
3240
- inst (COPY_NO_INCREF , (bottom , unused [oparg - 1 ] -- bottom , unused [oparg - 1 ], top : * bottom )) {
3240
+ inst (COPY_NO_INCREF , (bottom , unused [oparg - 1 ] -- bottom , unused [oparg - 1 ], top : <<= * bottom )) {
3241
3241
assert (oparg > 0 );
3242
3242
top = bottom ;
3243
3243
}
0 commit comments