mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
remove STORE_MAP, since it's unused
This commit is contained in:
parent
ee85339cc6
commit
264be6f48f
6 changed files with 1 additions and 24 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue