GH-113464: Remove the extra jump via _SIDE_EXIT in _EXIT_TRACE (GH-118545)

This commit is contained in:
Mark Shannon 2024-05-04 08:50:24 +01:00 committed by GitHub
parent 0b7814e0b6
commit da2cfc4cb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 31 additions and 53 deletions

View file

@ -4133,7 +4133,7 @@ dummy_func(
}
tier2 op(_EXIT_TRACE, (--)) {
EXIT_IF(1);
EXIT_TO_TRACE();
}
tier2 op(_CHECK_VALIDITY, (--)) {
@ -4266,10 +4266,6 @@ dummy_func(
EXIT_TO_TIER1();
}
tier2 op(_SIDE_EXIT, (--)) {
EXIT_TO_TRACE();
}
tier2 op(_ERROR_POP_N, (target/2, unused[oparg] --)) {
frame->instr_ptr = ((_Py_CODEUNIT *)_PyFrame_GetCode(frame)->co_code_adaptive) + target;
SYNC_SP();