@@ -976,7 +976,7 @@ count_exits(_PyUOpInstruction *buffer, int length)
976
976
int exit_count = 0 ;
977
977
for (int i = 0 ; i < length ; i ++ ) {
978
978
int opcode = buffer [i ].opcode ;
979
- if (opcode == _SIDE_EXIT || opcode == _DYNAMIC_EXIT ) {
979
+ if (opcode == _EXIT_TRACE || opcode == _DYNAMIC_EXIT ) {
980
980
exit_count ++ ;
981
981
}
982
982
}
@@ -1021,7 +1021,7 @@ prepare_for_execution(_PyUOpInstruction *buffer, int length)
1021
1021
int32_t target = (int32_t )uop_get_target (inst );
1022
1022
if (_PyUop_Flags [opcode ] & (HAS_EXIT_FLAG | HAS_DEOPT_FLAG )) {
1023
1023
uint16_t exit_op = (_PyUop_Flags [opcode ] & HAS_EXIT_FLAG ) ?
1024
- _SIDE_EXIT : _DEOPT ;
1024
+ _EXIT_TRACE : _DEOPT ;
1025
1025
int32_t jump_target = target ;
1026
1026
if (is_for_iter_test [opcode ]) {
1027
1027
/* Target the POP_TOP immediately after the END_FOR,
@@ -1112,7 +1112,7 @@ sanity_check(_PyExecutorObject *executor)
1112
1112
CHECK (target_unused (opcode ));
1113
1113
break ;
1114
1114
case UOP_FORMAT_EXIT :
1115
- CHECK (opcode == _SIDE_EXIT );
1115
+ CHECK (opcode == _EXIT_TRACE );
1116
1116
CHECK (inst -> exit_index < executor -> exit_count );
1117
1117
break ;
1118
1118
case UOP_FORMAT_JUMP :
@@ -1138,9 +1138,9 @@ sanity_check(_PyExecutorObject *executor)
1138
1138
uint16_t opcode = inst -> opcode ;
1139
1139
CHECK (
1140
1140
opcode == _DEOPT ||
1141
- opcode == _SIDE_EXIT ||
1141
+ opcode == _EXIT_TRACE ||
1142
1142
opcode == _ERROR_POP_N );
1143
- if (opcode == _SIDE_EXIT ) {
1143
+ if (opcode == _EXIT_TRACE ) {
1144
1144
CHECK (inst -> format == UOP_FORMAT_EXIT );
1145
1145
}
1146
1146
}
@@ -1178,7 +1178,7 @@ make_executor_from_uops(_PyUOpInstruction *buffer, int length, const _PyBloomFil
1178
1178
dest -- ;
1179
1179
* dest = buffer [i ];
1180
1180
assert (opcode != _POP_JUMP_IF_FALSE && opcode != _POP_JUMP_IF_TRUE );
1181
- if (opcode == _SIDE_EXIT ) {
1181
+ if (opcode == _EXIT_TRACE ) {
1182
1182
executor -> exits [next_exit ].target = buffer [i ].target ;
1183
1183
dest -> exit_index = next_exit ;
1184
1184
dest -> format = UOP_FORMAT_EXIT ;
@@ -1398,14 +1398,13 @@ counter_optimize(
1398
1398
return 0 ;
1399
1399
}
1400
1400
_Py_CODEUNIT * target = instr + 1 + _PyOpcode_Caches [JUMP_BACKWARD ] - oparg ;
1401
- _PyUOpInstruction buffer [5 ] = {
1402
- { .opcode = _START_EXECUTOR , .jump_target = 4 , .format = UOP_FORMAT_JUMP },
1401
+ _PyUOpInstruction buffer [4 ] = {
1402
+ { .opcode = _START_EXECUTOR , .jump_target = 3 , .format = UOP_FORMAT_JUMP },
1403
1403
{ .opcode = _LOAD_CONST_INLINE_BORROW , .operand = (uintptr_t )self },
1404
1404
{ .opcode = _INTERNAL_INCREMENT_OPT_COUNTER },
1405
- { .opcode = _EXIT_TRACE , .jump_target = 4 , .format = UOP_FORMAT_JUMP },
1406
- { .opcode = _SIDE_EXIT , .target = (uint32_t )(target - _PyCode_CODE (code )), .format = UOP_FORMAT_TARGET }
1405
+ { .opcode = _EXIT_TRACE , .target = (uint32_t )(target - _PyCode_CODE (code )), .format = UOP_FORMAT_TARGET }
1407
1406
};
1408
- _PyExecutorObject * executor = make_executor_from_uops (buffer , 5 , & EMPTY_FILTER );
1407
+ _PyExecutorObject * executor = make_executor_from_uops (buffer , 4 , & EMPTY_FILTER );
1409
1408
if (executor == NULL ) {
1410
1409
return -1 ;
1411
1410
}
0 commit comments