cpython: ac891c518d4e (original) (raw)

Mercurial > cpython

changeset 96342:ac891c518d4e 3.5

remove STORE_MAP, since it's unused

Benjamin Peterson benjamin@python.org
date Thu, 28 May 2015 14:40:08 -0500
parents 6f05f83c7010
children ddb402d8f5b9 3254a3c0acb4
files Doc/library/dis.rst Include/opcode.h Lib/opcode.py Python/ceval.c Python/compile.c Python/opcode_targets.h
diffstat 6 files changed, 1 insertions(+), 24 deletions(-)[+] [-] Doc/library/dis.rst 4 Include/opcode.h 1 Lib/opcode.py 1 Python/ceval.c 15 Python/compile.c 2 Python/opcode_targets.h 2

line wrap: on

line diff

--- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -848,10 +848,6 @@ the more significant byte last. Pushes a try block from a try-except clause onto the block stack. delta points to the finally block. -.. opcode:: STORE_MAP -

.. opcode:: LOAD_FAST (var_num)

--- a/Include/opcode.h +++ b/Include/opcode.h @@ -32,7 +32,6 @@ extern "C" { #define GET_AITER 50 #define GET_ANEXT 51 #define BEFORE_ASYNC_WITH 52 -#define STORE_MAP 54 #define INPLACE_ADD 55 #define INPLACE_SUBTRACT 56 #define INPLACE_MULTIPLY 57

--- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -89,7 +89,6 @@ def_op('GET_AITER', 50) def_op('GET_ANEXT', 51) def_op('BEFORE_ASYNC_WITH', 52) -def_op('STORE_MAP', 54) def_op('INPLACE_ADD', 55) def_op('INPLACE_SUBTRACT', 56) def_op('INPLACE_MULTIPLY', 57)

--- a/Python/ceval.c +++ b/Python/ceval.c @@ -2680,21 +2680,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int DISPATCH(); }

- TARGET(MAP_ADD) { PyObject *key = TOP(); PyObject *value = SECOND();

--- a/Python/compile.c +++ b/Python/compile.c @@ -903,8 +903,6 @@ PyCompile_OpcodeStackEffect(int opcode, return -1; case STORE_SUBSCR: return -3;

--- a/Python/opcode_targets.h +++ b/Python/opcode_targets.h @@ -53,7 +53,7 @@ static void *opcode_targets[256] = { &&TARGET_GET_ANEXT, &&TARGET_BEFORE_ASYNC_WITH, &&_unknown_opcode,