Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
264be6f4
Commit
264be6f4
authored
May 28, 2015
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove STORE_MAP, since it's unused
parent
ee85339c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1 addition
and
24 deletions
+1
-24
Doc/library/dis.rst
Doc/library/dis.rst
+0
-4
Include/opcode.h
Include/opcode.h
+0
-1
Lib/opcode.py
Lib/opcode.py
+0
-1
Python/ceval.c
Python/ceval.c
+0
-15
Python/compile.c
Python/compile.c
+0
-2
Python/opcode_targets.h
Python/opcode_targets.h
+1
-1
No files found.
Doc/library/dis.rst
View file @
264be6f4
...
...
@@ -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
Store a key and value pair in a dictionary. Pops the key and value while
leaving the dictionary on the stack.
.. opcode:: LOAD_FAST (var_num)
...
...
Include/opcode.h
View file @
264be6f4
...
...
@@ -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
...
...
Lib/opcode.py
View file @
264be6f4
...
...
@@ -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
)
...
...
Python/ceval.c
View file @
264be6f4
...
...
@@ -2680,21 +2680,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
DISPATCH
();
}
TARGET
(
STORE_MAP
)
{
PyObject
*
key
=
TOP
();
PyObject
*
value
=
SECOND
();
PyObject
*
map
=
THIRD
();
int
err
;
STACKADJ
(
-
2
);
assert
(
PyDict_CheckExact
(
map
));
err
=
PyDict_SetItem
(
map
,
key
,
value
);
Py_DECREF
(
value
);
Py_DECREF
(
key
);
if
(
err
!=
0
)
goto
error
;
DISPATCH
();
}
TARGET
(
MAP_ADD
)
{
PyObject
*
key
=
TOP
();
PyObject
*
value
=
SECOND
();
...
...
Python/compile.c
View file @
264be6f4
...
...
@@ -903,8 +903,6 @@ PyCompile_OpcodeStackEffect(int opcode, int oparg)
return
-
1
;
case
STORE_SUBSCR
:
return
-
3
;
case
STORE_MAP
:
return
-
2
;
case
DELETE_SUBSCR
:
return
-
2
;
...
...
Python/opcode_targets.h
View file @
264be6f4
...
...
@@ -53,7 +53,7 @@ static void *opcode_targets[256] = {
&&
TARGET_GET_ANEXT
,
&&
TARGET_BEFORE_ASYNC_WITH
,
&&
_unknown_opcode
,
&&
TARGET_STORE_MAP
,
&&
_unknown_opcode
,
&&
TARGET_INPLACE_ADD
,
&&
TARGET_INPLACE_SUBTRACT
,
&&
TARGET_INPLACE_MULTIPLY
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment