diff options
| author | Mark Shannon <mark@hotpy.org> | 2023-12-07 12:49:40 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-07 12:49:40 (GMT) |
| commit | b449415b2f1b41e1c44cb453428657fdf6ff1d36 (patch) | |
| tree | a31422e8d6a348baf55421d40dce503d1265b8d5 /Python/bytecodes.c | |
| parent | 3d712a9f4c9f366edbe16b804ec4f6ae50b0a59f (diff) | |
| download | cpython-b449415b2f1b41e1c44cb453428657fdf6ff1d36.zip cpython-b449415b2f1b41e1c44cb453428657fdf6ff1d36.tar.gz cpython-b449415b2f1b41e1c44cb453428657fdf6ff1d36.tar.bz2 | |
GH-111485: Separate out parsing, analysis and code-gen phases of tier 1 code generator (GH-112299)
Diffstat (limited to 'Python/bytecodes.c')
| -rw-r--r-- | Python/bytecodes.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 2075c19..bcad8dc 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -800,11 +800,11 @@ dummy_func( // We also push it onto the stack on exit, but that's a // different frame, and it's accounted for by _PUSH_FRAME. op(_POP_FRAME, (retval --)) { - assert(EMPTY()); #if TIER_ONE assert(frame != &entry_frame); #endif STORE_SP(); + assert(EMPTY()); _Py_LeaveRecursiveCallPy(tstate); // GH-99729: We need to unlink the frame *before* clearing it: _PyInterpreterFrame *dying = frame; @@ -1165,7 +1165,6 @@ dummy_func( } } - inst(STORE_NAME, (v -- )) { PyObject *name = GETITEM(FRAME_CO_NAMES, oparg); PyObject *ns = LOCALS(); @@ -3130,7 +3129,7 @@ dummy_func( // The 'unused' output effect represents the return value // (which will be pushed when the frame returns). // It is needed so CALL_PY_EXACT_ARGS matches its family. - op(_PUSH_FRAME, (new_frame: _PyInterpreterFrame* -- unused)) { + op(_PUSH_FRAME, (new_frame: _PyInterpreterFrame* -- unused if (0))) { // Write it out explicitly because it's subtly different. // Eventually this should be the only occurrence of this code. assert(tstate->interp->eval_frame == NULL); |
