Skip to content

Commit ad90e76

Browse files
ENTER_EXECUTOR can be inserted after BINARY_OP_INPLACE_ADD_UNICODE
1 parent 14f96a8 commit ad90e76

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

Python/bytecodes.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,11 @@ dummy_func(
783783

784784
int next_oparg;
785785
#if TIER_ONE
786+
#if _Py_TIER2
787+
// In JIT builds, we might have inserted an executor after this instruction,
788+
// which breaks this super instruction.
789+
DEOPT_IF(next_instr->op.code != STORE_FAST);
790+
#endif
786791
assert(next_instr->op.code == STORE_FAST);
787792
next_oparg = next_instr->op.arg;
788793
#else

Python/executor_cases.c.h

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

Python/generated_cases.c.h

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

0 commit comments

Comments
 (0)