mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
GH-117121: Add pystats to JIT builds (GH-117346)
This commit is contained in:
parent
14f1ca7d53
commit
26d328b2ba
3 changed files with 10 additions and 1 deletions
|
@ -392,6 +392,7 @@ stack_pointer = _PyFrame_GetStackPointer(frame);
|
|||
#ifdef _Py_JIT
|
||||
#define GOTO_TIER_TWO(EXECUTOR) \
|
||||
do { \
|
||||
OPT_STAT_INC(traces_executed); \
|
||||
jit_func jitted = (EXECUTOR)->jit_code; \
|
||||
next_instr = jitted(frame, stack_pointer, tstate); \
|
||||
Py_DECREF(tstate->previous_executor); \
|
||||
|
@ -406,6 +407,7 @@ do { \
|
|||
#else
|
||||
#define GOTO_TIER_TWO(EXECUTOR) \
|
||||
do { \
|
||||
OPT_STAT_INC(traces_executed); \
|
||||
next_uop = (EXECUTOR)->trace; \
|
||||
assert(next_uop->opcode == _START_EXECUTOR || next_uop->opcode == _COLD_EXIT); \
|
||||
goto enter_tier_two; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue