}
op(_JUMP_TO_TOP, (--)) {
-#ifndef _Py_JIT
- next_uop = ¤t_executor->trace[1];
-#endif
+ JUMP_TO_JUMP_TARGET();
}
tier2 op(_SET_IP, (instr_ptr/4 --)) {
}
case _JUMP_TO_TOP: {
- #ifndef _Py_JIT
- next_uop = ¤t_executor->trace[1];
- #endif
+ JUMP_TO_JUMP_TARGET();
break;
}
buffer[i].jump_target = 0;
}
}
+ if (opcode == _JUMP_TO_TOP) {
+ assert(buffer[0].opcode == _START_EXECUTOR);
+ buffer[i].format = UOP_FORMAT_JUMP;
+ buffer[i].jump_target = 1;
+ }
}
return next_spare;
}
ERROR_TARGET = enum.auto()
# The index of the exit to be jumped through (exposed as _JIT_EXIT_INDEX):
EXIT_INDEX = enum.auto()
- # The base address of the machine code for the first uop (exposed as _JIT_TOP):
- TOP = enum.auto()
# A hardcoded value of zero (used for symbol lookups):
ZERO = enum.auto()
HoleValue.JUMP_TARGET: "instruction_starts[instruction->jump_target]",
HoleValue.ERROR_TARGET: "instruction_starts[instruction->error_target]",
HoleValue.EXIT_INDEX: "instruction->exit_index",
- HoleValue.TOP: "instruction_starts[1]",
HoleValue.ZERO: "",
}
UOP_STAT_INC(uopcode, execution_count);
// The actual instruction definitions (only one will be used):
- if (uopcode == _JUMP_TO_TOP) {
- PATCH_JUMP(_JIT_TOP);
- }
switch (uopcode) {
#include "executor_cases.c.h"
default: