diff options
author | Mark Shannon <mark@hotpy.org> | 2024-02-13 16:28:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-13 16:28:19 (GMT) |
commit | 681778c56a9204d65b8857e7ceba57f2c638671d (patch) | |
tree | 7d0f520a767a175e40f09f6aa40decc56fce7608 /Python/optimizer.c | |
parent | de07941729b8899b187b8ef9690f9a74b2d6286b (diff) | |
download | cpython-681778c56a9204d65b8857e7ceba57f2c638671d.zip cpython-681778c56a9204d65b8857e7ceba57f2c638671d.tar.gz cpython-681778c56a9204d65b8857e7ceba57f2c638671d.tar.bz2 |
GH-113710: Improve `_SET_IP` and `_CHECK_VALIDITY` (GH-115248)
Diffstat (limited to 'Python/optimizer.c')
-rw-r--r-- | Python/optimizer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/optimizer.c b/Python/optimizer.c index 13df8c1..efa1968 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -432,9 +432,8 @@ translate_bytecode_to_trace( top: // Jump here after _PUSH_FRAME or likely branches for (;;) { target = INSTR_IP(instr, code); - RESERVE_RAW(3, "epilogue"); // Always need space for _SET_IP, _CHECK_VALIDITY and _EXIT_TRACE - ADD_TO_TRACE(_SET_IP, target, 0, target); - ADD_TO_TRACE(_CHECK_VALIDITY, 0, 0, target); + RESERVE_RAW(2, "epilogue"); // Always need space for _SET_IP, _CHECK_VALIDITY and _EXIT_TRACE + ADD_TO_TRACE(_CHECK_VALIDITY_AND_SET_IP, 0, (uintptr_t)instr, target); uint32_t opcode = instr->op.code; uint32_t oparg = instr->op.arg; |