Skip to content

Commit 122a816

Browse files
committed
Cleanup _ITER_JUMP_TUPLE
1 parent baf4722 commit 122a816

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3314,12 +3314,9 @@ dummy_func(
33143314
}
33153315

33163316
replaced op(_ITER_JUMP_TUPLE, (iter, null_or_index -- iter, null_or_index)) {
3317-
PyObject *tuple_o = PyStackRef_AsPyObjectBorrow(iter);
3318-
(void)tuple_o;
3319-
assert(Py_TYPE(tuple_o) == &PyTuple_Type);
3317+
assert(PyStackRef_TYPE(iter) == &PyTuple_Type);
33203318
STAT_INC(FOR_ITER, hit);
33213319
if ((size_t)PyStackRef_UntagInt(null_or_index) >= (size_t)PyTuple_GET_SIZE(tuple_o)) {
3322-
null_or_index = PyStackRef_TagInt(-1);
33233320
/* Jump forward oparg, then skip following END_FOR instruction */
33243321
JUMPBY(oparg + 1);
33253322
DISPATCH();

Python/generated_cases.c.h

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

0 commit comments

Comments
 (0)