8000 gh-104584: Support most jumping instructions by gvanrossum · Pull Request #106393 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-104584: Support most jumping instructions #106393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Prev Previous commit
A stray JUMP_BACKWARD also ends the trace
  • Loading branch information
gvanrossum committed Jul 7, 2023
commit f5e18d8f6d4e235984bf34295019683fcd07bee6
6 changes: 4 additions & 2 deletions Python/optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,11 @@ translate_bytecode_to_trace(
&& trace_length + 3 <= max_length)
{
ADD_TO_TRACE(JUMP_TO_TOP, 0);
goto done;
}
// Else fall through!
else {
DPRINTF(2, "JUMP_BACKWARD not to top ends trace\n");
}
goto done;
}
default:
{
Expand Down
0