diff options
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index c41cbb4..115d278 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -900,21 +900,15 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) */ -// Next opcode prediction is also enabled for Computed Gotos as well. -#ifdef DYNAMIC_EXECUTION_PROFILE -#define PREDICT(op) //if (0) goto PRED_##op -#define PREDICTED(op) -#define PREDICTED_WITH_ARG(op) +#if defined(DYNAMIC_EXECUTION_PROFILE) || USE_COMPUTED_GOTOS +#define PREDICT(op) if (0) goto PRED_##op +#define PREDICTED(op) PRED_##op: +#define PREDICTED_WITH_ARG(op) PRED_##op: #else #define PREDICT(op) if (*next_instr == op) goto PRED_##op #define PREDICTED(op) PRED_##op: next_instr++ -#ifdef USE_COMPUTED_GOTOS -#define PREDICTED_WITH_ARG(op) PRED_##op: next_instr++ -#else #define PREDICTED_WITH_ARG(op) PRED_##op: oparg = PEEKARG(); next_instr += 3 #endif -#endif - /* Stack manipulation macros */ |