@@ -1277,11 +1277,11 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
1277
1277
else {
1278
1278
if (f -> f_execute == slp_eval_frame_iter ) {
1279
1279
/* finalise the for_iter operation */
1280
- opcode = NEXTOP ();
1281
- oparg = NEXTARG ();
1280
+ NEXTOPARG ();
1282
1281
if (opcode == EXTENDED_ARG ) {
1283
- opcode = NEXTOP ();
1284
- oparg = oparg <<8 | NEXTARG ();
1282
+ int oldoparg = oparg ;
1283
+ NEXTOPARG ();
1284
+ oparg |= oldoparg << 8 ;
1285
1285
}
1286
1286
assert (opcode == FOR_ITER );
1287
1287
@@ -1312,11 +1312,11 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
1312
1312
}
1313
1313
else if (f -> f_execute == slp_eval_frame_setup_with ) {
1314
1314
/* finalise the SETUP_WITH operation */
1315
- opcode = NEXTOP ();
1316
- oparg = NEXTARG ();
1315
+ NEXTOPARG ();
1317
1316
if (opcode == EXTENDED_ARG ) {
1318
- opcode = NEXTOP ();
1319
- oparg = oparg <<8 | NEXTARG ();
1317
+ int oldoparg = oparg ;
1318
+ NEXTOPARG ();
1319
+ oparg |= oldoparg << 8 ;
1320
1320
}
1321
1321
assert (opcode == SETUP_WITH );
1322
1322
@@ -3891,10 +3891,10 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
3891
3891
#define EXTENDED_ARG_OFFSET (x ) \
3892
3892
(assert(sizeof(x) == 4), \
3893
3893
(!((x) >> 8) ? 0 : \
3894
- (!((x) >> 16) ? 2 : \
3895
- (!((x) >> 24) ? 4 : 6 ))))
3894
+ (!((x) >> 16) ? 1 : \
3895
+ (!((x) >> 24) ? 2 : 3 ))))
3896
3896
3897
- next_instr -= 2 + EXTENDED_ARG_OFFSET (oparg );
3897
+ next_instr -= 1 + EXTENDED_ARG_OFFSET (oparg );
3898
3898
3899
3899
stackless_call :
3900
3900
/*
@@ -3928,12 +3928,12 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
3928
3928
3929
3929
f -> f_stacktop = NULL ;
3930
3930
if (f -> f_execute == slp_eval_frame_iter ) {
3931
- next_instr += 2 + EXTENDED_ARG_OFFSET (oparg );;
3931
+ next_instr += 1 + EXTENDED_ARG_OFFSET (oparg );;
3932
3932
f -> f_execute = slp_eval_frame_value ;
3933
3933
goto stackless_iter_return ;
3934
3934
}
3935
3935
else if (f -> f_execute == slp_eval_frame_setup_with ) {
3936
- next_instr += 2 + EXTENDED_ARG_OFFSET (oparg );
3936
+ next_instr += 1 + EXTENDED_ARG_OFFSET (oparg );
3937
3937
f -> f_execute = slp_eval_frame_value ;
3938
3938
goto stackless_setup_with_return ;
3939
3939
}
0 commit comments