@@ -859,7 +859,7 @@ dummy_func(
859859 new_frame -> localsplus [0 ] = container ;
860860 new_frame -> localsplus [1 ] = sub ;
861861 INPUTS_DEAD ();
862- frame -> return_offset = ( uint16_t )( 1 + INLINE_CACHE_ENTRIES_BINARY_SUBSCR ) ;
862+ frame -> return_offset = INSTRUCTION_SIZE ;
863863 }
864864
865865 macro (BINARY_SUBSCR_GETITEM ) =
@@ -1111,8 +1111,8 @@ dummy_func(
11111111 gen -> gi_frame_state = FRAME_EXECUTING ;
11121112 gen -> gi_exc_state .previous_item = tstate -> exc_info ;
11131113 tstate -> exc_info = & gen -> gi_exc_state ;
1114- assert (next_instr - this_instr + oparg <= UINT16_MAX );
1115- frame -> return_offset = (uint16_t )(next_instr - this_instr + oparg );
1114+ assert (INSTRUCTION_SIZE + oparg <= UINT16_MAX );
1115+ frame -> return_offset = (uint16_t )(INSTRUCTION_SIZE + oparg );
11161116 assert (gen_frame -> previous == NULL );
11171117 gen_frame -> previous = frame ;
11181118 DISPATCH_INLINED (gen_frame );
@@ -1157,8 +1157,8 @@ dummy_func(
11571157 gen -> gi_frame_state = FRAME_EXECUTING ;
11581158 gen -> gi_exc_state .previous_item = tstate -> exc_info ;
11591159 tstate -> exc_info = & gen -> gi_exc_state ;
1160- assert (1 + INLINE_CACHE_ENTRIES_SEND + oparg <= UINT16_MAX );
1161- frame -> return_offset = (uint16_t )(1 + INLINE_CACHE_ENTRIES_SEND + oparg );
1160+ assert (INSTRUCTION_SIZE + oparg <= UINT16_MAX );
1161+ frame -> return_offset = (uint16_t )(INSTRUCTION_SIZE + oparg );
11621162 gen_frame -> previous = frame ;
11631163 }
11641164
@@ -2265,7 +2265,7 @@ dummy_func(
22652265 new_frame -> localsplus [0 ] = owner ;
22662266 DEAD (owner );
22672267 new_frame -> localsplus [1 ] = PyStackRef_FromPyObjectNew (name );
2268- frame -> return_offset = ( uint16_t )( next_instr - this_instr ) ;
2268+ frame -> return_offset = INSTRUCTION_SIZE ;
22692269 DISPATCH_INLINED (new_frame );
22702270 }
22712271
@@ -3062,7 +3062,7 @@ dummy_func(
30623062 tstate -> exc_info = & gen -> gi_exc_state ;
30633063 gen_frame -> previous = frame ;
30643064 // oparg is the return offset from the next instruction.
3065- frame -> return_offset = (uint16_t )(1 + INLINE_CACHE_ENTRIES_FOR_ITER + oparg );
3065+ frame -> return_offset = (uint16_t )(INSTRUCTION_SIZE + oparg );
30663066 }
30673067
30683068 macro (FOR_ITER_GEN ) =
@@ -3341,7 +3341,7 @@ dummy_func(
33413341 if (new_frame == NULL ) {
33423342 ERROR_NO_POP ();
33433343 }
3344- frame -> return_offset = ( uint16_t )( next_instr - this_instr ) ;
3344+ frame -> return_offset = INSTRUCTION_SIZE ;
33453345 DISPATCH_INLINED (new_frame );
33463346 }
33473347 /* Callable is not a normal Python function */
@@ -4205,8 +4205,8 @@ dummy_func(
42054205 if (new_frame == NULL ) {
42064206 ERROR_NO_POP ();
42074207 }
4208- assert (next_instr - this_instr == 1 + INLINE_CACHE_ENTRIES_CALL_KW );
4209- frame -> return_offset = 1 + INLINE_CACHE_ENTRIES_CALL_KW ;
4208+ assert (INSTRUCTION_SIZE == 1 + INLINE_CACHE_ENTRIES_CALL_KW );
4209+ frame -> return_offset = INSTRUCTION_SIZE ;
42104210 DISPATCH_INLINED (new_frame );
42114211 }
42124212 /* Callable is not a normal Python function */
@@ -4472,7 +4472,7 @@ dummy_func(
44724472 if (new_frame == NULL ) {
44734473 ERROR_NO_POP ();
44744474 }
4475- assert (next_instr - this_instr == 1 );
4475+ assert (INSTRUCTION_SIZE == 1 );
44764476 frame -> return_offset = 1 ;
44774477 DISPATCH_INLINED (new_frame );
44784478 }
0 commit comments