pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/264be6f48f107d831ccecdf68a1b82c7b61f3a17

tylesheet" href="https://github.githubassets.com/assets/global-d18f184ea1a06a2c.css" /> remove STORE_MAP, since it's unused · python/cpython@264be6f · GitHub
Skip to content

Commit 264be6f

Browse files
committed
remove STORE_MAP, since it's unused
1 parent ee85339 commit 264be6f

6 files changed

Lines changed: 1 addition & 24 deletions

File tree

Doc/library/dis.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -848,10 +848,6 @@ the more significant byte last.
848848
Pushes a try block from a try-except clause onto the block stack. *delta*
849849
points to the finally block.
850850

851-
.. opcode:: STORE_MAP
852-
853-
Store a key and value pair in a dictionary. Pops the key and value while
854-
leaving the dictionary on the stack.
855851

856852
.. opcode:: LOAD_FAST (var_num)
857853

Include/opcode.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ extern "C" {
3232
#define GET_AITER 50
3333
#define GET_ANEXT 51
3434
#define BEFORE_ASYNC_WITH 52
35-
#define STORE_MAP 54
3635
#define INPLACE_ADD 55
3736
#define INPLACE_SUBTRACT 56
3837
#define INPLACE_MULTIPLY 57

Lib/opcode.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ def jabs_op(name, op):
8989
def_op('GET_ANEXT', 51)
9090
def_op('BEFORE_ASYNC_WITH', 52)
9191

92-
def_op('STORE_MAP', 54)
9392
def_op('INPLACE_ADD', 55)
9493
def_op('INPLACE_SUBTRACT', 56)
9594
def_op('INPLACE_MULTIPLY', 57)

Python/ceval.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2680,21 +2680,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
26802680
DISPATCH();
26812681
}
26822682

2683-
TARGET(STORE_MAP) {
2684-
PyObject *key = TOP();
2685-
PyObject *value = SECOND();
2686-
PyObject *map = THIRD();
2687-
int err;
2688-
STACKADJ(-2);
2689-
assert(PyDict_CheckExact(map));
2690-
err = PyDict_SetItem(map, key, value);
2691-
Py_DECREF(value);
2692-
Py_DECREF(key);
2693-
if (err != 0)
2694-
goto error;
2695-
DISPATCH();
2696-
}
2697-
26982683
TARGET(MAP_ADD) {
26992684
PyObject *key = TOP();
27002685
PyObject *value = SECOND();

Python/compile.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -903,8 +903,6 @@ PyCompile_OpcodeStackEffect(int opcode, int oparg)
903903
return -1;
904904
case STORE_SUBSCR:
905905
return -3;
906-
case STORE_MAP:
907-
return -2;
908906
case DELETE_SUBSCR:
909907
return -2;
910908

Python/opcode_targets.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static void *opcode_targets[256] = {
5353
&&TARGET_GET_ANEXT,
5454
&&TARGET_BEFORE_ASYNC_WITH,
5555
&&_unknown_opcode,
56-
&&TARGET_STORE_MAP,
56+
&&_unknown_opcode,
5757
&&TARGET_INPLACE_ADD,
5858
&&TARGET_INPLACE_SUBTRACT,
5959
&&TARGET_INPLACE_MULTIPLY,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy