Commit 9dbf9084 authored by Armin Rigo's avatar Armin Rigo

Cancelled checkin, sorry.

parent 508c57d5
...@@ -627,8 +627,7 @@ eval_frame(PyFrameObject *f) ...@@ -627,8 +627,7 @@ eval_frame(PyFrameObject *f)
#define INSTR_OFFSET() (next_instr - first_instr) #define INSTR_OFFSET() (next_instr - first_instr)
#define NEXTOP() (*next_instr++) #define NEXTOP() (*next_instr++)
#define OPARG() (next_instr[0] + (next_instr[1]<<8)) #define NEXTARG() (next_instr += 2, (next_instr[-1]<<8) + next_instr[-2])
#define OPARG_SIZE 2
#define JUMPTO(x) (next_instr = first_instr + (x)) #define JUMPTO(x) (next_instr = first_instr + (x))
#define JUMPBY(x) (next_instr += (x)) #define JUMPBY(x) (next_instr += (x))
...@@ -659,7 +658,8 @@ eval_frame(PyFrameObject *f) ...@@ -659,7 +658,8 @@ eval_frame(PyFrameObject *f)
#endif #endif
#define PREDICTED(op) PRED_##op: next_instr++ #define PREDICTED(op) PRED_##op: next_instr++
#define PREDICTED_WITH_ARG(op) PRED_##op: next_instr++; oparg = OPARG(); next_instr += OPARG_SIZE #define PREDICTED_WITH_ARG(op) PRED_##op: oparg = (next_instr[2]<<8) + \
next_instr[1]; next_instr += 3
/* Stack manipulation macros */ /* Stack manipulation macros */
...@@ -862,11 +862,8 @@ eval_frame(PyFrameObject *f) ...@@ -862,11 +862,8 @@ eval_frame(PyFrameObject *f)
/* Extract opcode and argument */ /* Extract opcode and argument */
opcode = NEXTOP(); opcode = NEXTOP();
if (HAS_ARG(opcode)) { if (HAS_ARG(opcode))
oparg = OPARG(); oparg = NEXTARG();
next_instr += OPARG_SIZE;
}
dispatch_opcode: dispatch_opcode:
#ifdef DYNAMIC_EXECUTION_PROFILE #ifdef DYNAMIC_EXECUTION_PROFILE
#ifdef DXPAIRS #ifdef DXPAIRS
...@@ -2252,8 +2249,7 @@ eval_frame(PyFrameObject *f) ...@@ -2252,8 +2249,7 @@ eval_frame(PyFrameObject *f)
case EXTENDED_ARG: case EXTENDED_ARG:
opcode = NEXTOP(); opcode = NEXTOP();
oparg = oparg<<16 | OPARG(); oparg = oparg<<16 | NEXTARG();
next_instr += OPARG_SIZE;
goto dispatch_opcode; goto dispatch_opcode;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment