Skip to content

Commit 80741b3

Browse files
committed
STORE_SUBSCR
1 parent fba1de2 commit 80741b3

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

Python/bytecodes.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -506,21 +506,14 @@ dummy_func(
506506
PREDICT(JUMP_BACKWARD);
507507
}
508508

509-
// stack effect: (__0, __1, __2 -- )
510-
inst(STORE_SUBSCR) {
511-
PyObject *sub = TOP();
512-
PyObject *container = SECOND();
513-
PyObject *v = THIRD();
509+
inst(STORE_SUBSCR, (v, container, sub -- )) {
514510
int err;
515-
STACK_SHRINK(3);
516511
/* container[sub] = v */
517512
err = PyObject_SetItem(container, sub, v);
518513
Py_DECREF(v);
519514
Py_DECREF(container);
520515
Py_DECREF(sub);
521-
if (err != 0) {
522-
goto error;
523-
}
516+
ERROR_IF(err != 0, error);
524517
JUMPBY(INLINE_CACHE_ENTRIES_STORE_SUBSCR);
525518
}
526519

Python/generated_cases.c.h

Lines changed: 5 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)