mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
GH-116017: Get rid of _COLD_EXITs (GH-120960)
This commit is contained in:
parent
294e724964
commit
33903c53db
16 changed files with 246 additions and 337 deletions
|
@ -1054,13 +1054,13 @@ enter_tier_two:
|
|||
uint64_t trace_uop_execution_counter = 0;
|
||||
#endif
|
||||
|
||||
assert(next_uop->opcode == _START_EXECUTOR || next_uop->opcode == _COLD_EXIT);
|
||||
assert(next_uop->opcode == _START_EXECUTOR);
|
||||
tier2_dispatch:
|
||||
for (;;) {
|
||||
uopcode = next_uop->opcode;
|
||||
#ifdef Py_DEBUG
|
||||
if (lltrace >= 3) {
|
||||
if (next_uop->opcode == _START_EXECUTOR || next_uop->opcode == _COLD_EXIT) {
|
||||
if (next_uop->opcode == _START_EXECUTOR) {
|
||||
printf("%4d uop: ", 0);
|
||||
}
|
||||
else {
|
||||
|
@ -1148,25 +1148,6 @@ goto_to_tier1:
|
|||
tstate->previous_executor = NULL;
|
||||
DISPATCH();
|
||||
|
||||
exit_to_trace:
|
||||
assert(next_uop[-1].format == UOP_FORMAT_EXIT);
|
||||
OPT_HIST(trace_uop_execution_counter, trace_run_length_hist);
|
||||
uint32_t exit_index = next_uop[-1].exit_index;
|
||||
assert(exit_index < current_executor->exit_count);
|
||||
_PyExitData *exit = ¤t_executor->exits[exit_index];
|
||||
#ifdef Py_DEBUG
|
||||
if (lltrace >= 2) {
|
||||
printf("SIDE EXIT: [UOp ");
|
||||
_PyUOpPrint(&next_uop[-1]);
|
||||
printf(", exit %u, temp %d, target %d -> %s]\n",
|
||||
exit_index, exit->temperature.as_counter, exit->target,
|
||||
_PyOpcode_OpName[_PyCode_CODE(_PyFrame_GetCode(frame))[exit->target].op.code]);
|
||||
}
|
||||
#endif
|
||||
Py_INCREF(exit->executor);
|
||||
tstate->previous_executor = (PyObject *)current_executor;
|
||||
GOTO_TIER_TWO(exit->executor);
|
||||
|
||||
#endif // _Py_JIT
|
||||
|
||||
#endif // _Py_TIER2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue