Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Clarifications suggested by GvR and R Hettinger.
  • Loading branch information
markshannon committed Apr 8, 2021
commit 99a087164d564631be71a5b297f74f46d909dfae
12 changes: 5 additions & 7 deletions Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -1299,13 +1299,11 @@ eval_frame_handle_pending(PyThreadState *tstate)
#endif

#if USE_COMPUTED_GOTOS
#define TARGET(op) \
op: \
TARGET_##op
#define DISPATCH_GOTO goto *opcode_targets[opcode];
#define TARGET(op) op: TARGET_##op
#define DISPATCH_GOTO() goto *opcode_targets[opcode]
#else
#define TARGET(op) op
#define DISPATCH_GOTO goto dispatch_opcode;
#define DISPATCH_GOTO() goto dispatch_opcode
#endif

#define DISPATCH() \
Expand All @@ -1315,7 +1313,7 @@ eval_frame_handle_pending(PyThreadState *tstate)
} \
f->f_lasti = INSTR_OFFSET(); \
NEXTOPARG(); \
DISPATCH_GOTO \
DISPATCH_GOTO(); \
}

#define CHECK_EVAL_BREAKER() \
Expand Down Expand Up @@ -1594,7 +1592,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, PyFrameObject *f, int throwflag)
#endif
PyObject **stack_pointer; /* Next free slot in value stack */
const _Py_CODEUNIT *next_instr;
uint8_t opcode; /* Current opcode */
int opcode; /* Current opcode */
int oparg; /* Current opcode argument, if any */
PyObject **fastlocals, **freevars;
PyObject *retval = NULL; /* Return value */
Expand Down