Skip to content

Commit

Permalink
Improve similarity between _PUSH_FRAME and DISPATCH_INLINED()
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Oct 10, 2023
1 parent 5f1f360 commit 630aee7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -3100,8 +3100,8 @@ dummy_func(
assert(tstate->interp->eval_frame == NULL);
STORE_SP();
new_frame->previous = frame;
CALL_STAT_INC(inlined_py_calls);
frame = tstate->current_frame = new_frame;
CALL_STAT_INC(inlined_py_calls);
tstate->py_recursion_remaining--;
LOAD_SP();
LOAD_IP();
Expand Down
4 changes: 2 additions & 2 deletions Python/ceval_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@
#define DISPATCH_INLINED(NEW_FRAME) \
do { \
assert(tstate->interp->eval_frame == NULL); \
_PyFrame_SetStackPointer(frame, stack_pointer); \
STORE_SP(); \
frame->prev_instr = next_instr - 1; \
(NEW_FRAME)->previous = frame; \
frame = tstate->current_frame = (NEW_FRAME); \
frame = tstate->current_frame = (NEW_FRAME); \
CALL_STAT_INC(inlined_py_calls); \
goto start_frame; \
} while (0)
Expand Down
2 changes: 1 addition & 1 deletion Python/executor_cases.c.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/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 630aee7

Please sign in to comment.