diff options
author | Raymond Hettinger <python@rcn.com> | 2003-01-10 16:45:17 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-01-10 16:45:17 (GMT) |
commit | 71731d7f70d225597fd1aff2484bf3e232e61db7 (patch) | |
tree | e2170bcd6cc2694c51b55b782c7dedb63b46384b /Python | |
parent | 37aa066164fb75288b3a05b620c95847908cf04b (diff) | |
download | cpython-71731d7f70d225597fd1aff2484bf3e232e61db7.zip cpython-71731d7f70d225597fd1aff2484bf3e232e61db7.tar.gz cpython-71731d7f70d225597fd1aff2484bf3e232e61db7.tar.bz2 |
As discussed on python-dev, removed from DUP_TOPX support for the
parameter being either four or five. Currently, compile.c does not
generate calls with a parameter higher than three.
May have to be reverted if the second alpha or beta shakes out some
other tool generating this op code with a parameter of four or five.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 0c52c47..b23c26a 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -553,12 +553,10 @@ eval_frame(PyFrameObject *f) #define SECOND() (stack_pointer[-2]) #define THIRD() (stack_pointer[-3]) #define FOURTH() (stack_pointer[-4]) -#define FIFTH() (stack_pointer[-5]) #define SET_TOP(v) (stack_pointer[-1] = (v)) #define SET_SECOND(v) (stack_pointer[-2] = (v)) #define SET_THIRD(v) (stack_pointer[-3] = (v)) #define SET_FOURTH(v) (stack_pointer[-4] = (v)) -#define SET_FIFTH(v) (stack_pointer[-5] = (v)) #define BASIC_STACKADJ(n) (stack_pointer += n) #define BASIC_PUSH(v) (*stack_pointer++ = (v)) #define BASIC_POP() (*--stack_pointer) @@ -885,39 +883,6 @@ eval_frame(PyFrameObject *f) SET_SECOND(w); SET_THIRD(v); continue; - case 4: - x = TOP(); - Py_INCREF(x); - w = SECOND(); - Py_INCREF(w); - v = THIRD(); - Py_INCREF(v); - u = FOURTH(); - Py_INCREF(u); - STACKADJ(4); - SET_TOP(x); - SET_SECOND(w); - SET_THIRD(v); - SET_FOURTH(u); - continue; - case 5: - x = TOP(); - Py_INCREF(x); - w = SECOND(); - Py_INCREF(w); - v = THIRD(); - Py_INCREF(v); - u = FOURTH(); - Py_INCREF(u); - t = FIFTH(); - Py_INCREF(t); - STACKADJ(5); - SET_TOP(x); - SET_SECOND(w); - SET_THIRD(v); - SET_FOURTH(u); - SET_FIFTH(t); - continue; default: Py_FatalError("invalid argument to DUP_TOPX" " (bytecode corruption?)"); |