8000 Revert "Guard _Py_GetExecutor on non-tier-two builds" · python/cpython@1606abd · GitHub
[go: up one dir, main page]

Skip to content

Commit 1606abd

Browse files
committed
Revert "Guard _Py_GetExecutor on non-tier-two builds"
This reverts commit 7c404a8.
1 parent 7c404a8 commit 1606abd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Objects/genobject.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,14 +334,12 @@ is_resume(_PyInterpreterFrame *frame, uint8_t *oparg_p)
334334
int offset = frame->instr_ptr - _PyCode_CODE(code);
335335
uint8_t opcode = _Py_GetBaseOpcode(code, offset);
336336
uint8_t oparg = frame->instr_ptr->op.arg;
337-
#ifdef _Py_TIER2
338337
if (opcode == ENTER_EXECUTOR) {
339338
_PyExecutorObject *executor = _Py_GetExecutor(code, sizeof(_Py_CODEUNIT) * offset);
340339
opcode = _PyOpcode_Deopt[executor->vm_data.opcode];
341340
oparg = executor->vm_data.oparg;
342341
Py_DECREF(executor);
343342
}
344-
#endif
345343
if (opcode == RESUME) {
346344
*oparg_p = oparg;
347345
return true;

0 commit comments

Comments
 (0)
0