Skip to content

Commit

Permalink
Use no_save_ip & no_advance_ip annotations for RETURN_VALUE & RET…
Browse files Browse the repository at this point in the history
…URN_NONE opcodes
  • Loading branch information
WolframAlph committed Jan 21, 2025
1 parent 89aa36c commit 1e73a62
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Include/internal/pycore_opcode_metadata.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Include/internal/pycore_uop_metadata.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ dummy_func(
// The stack effect here is a bit misleading.
// retval is popped from the stack, but res
// is pushed to a different frame, the callers' frame.
inst(RETURN_VALUE, (retval -- res)) {
no_advance_ip no_save_ip inst(RETURN_VALUE, (retval -- res)) {
#if TIER_ONE
assert(frame != &entry_frame);
#endif
Expand All @@ -1124,7 +1124,7 @@ dummy_func(
LLTRACE_RESUME_FRAME();
}

inst(RETURN_NONE, (-- res)) {
no_advance_ip no_save_ip inst(RETURN_NONE, (-- res)) {
#if TIER_ONE
assert(frame != &entry_frame);
#endif
Expand Down
4 changes: 0 additions & 4 deletions Python/generated_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1e73a62

Please sign in to comment.