Skip to content

Commit

Permalink
Tweak template
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Nov 17, 2023
1 parent ba1dec5 commit 828cd46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tools/jit/template.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ extern void _JIT_TARGET;
#define LOAD_IP(UNUSED) ((void)0)
#undef JUMP_TO_TOP
#define JUMP_TO_TOP() ((void)0)
#undef CURRENT_TARGET
#define CURRENT_TARGET() (target)

#define TAIL_CALL(WHERE) \
do { \
Expand Down Expand Up @@ -91,7 +93,7 @@ _JIT_ENTRY(_PyInterpreterFrame *frame, PyObject **stack_pointer,
error_tier_two:
TAIL_CALL(_JIT_ERROR);
deoptimize:
exit_trace:
frame->instr_ptr = _PyCode_CODE(_PyFrame_GetCode(frame)) + target;
exit_trace:
TAIL_CALL(_JIT_DEOPTIMIZE);
}

0 comments on commit 828cd46

Please sign in to comment.