We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba3d68b commit 7c404a8Copy full SHA for 7c404a8
1 file changed
Objects/genobject.c
@@ -334,12 +334,14 @@ is_resume(_PyInterpreterFrame *frame, uint8_t *oparg_p)
334
int offset = frame->instr_ptr - _PyCode_CODE(code);
335
uint8_t opcode = _Py_GetBaseOpcode(code, offset);
336
uint8_t oparg = frame->instr_ptr->op.arg;
337
+#ifdef _Py_TIER2
338
if (opcode == ENTER_EXECUTOR) {
339
_PyExecutorObject *executor = _Py_GetExecutor(code, sizeof(_Py_CODEUNIT) * offset);
340
opcode = _PyOpcode_Deopt[executor->vm_data.opcode];
341
oparg = executor->vm_data.oparg;
342
Py_DECREF(executor);
343
}
344
+#endif
345
if (opcode == RESUME) {
346
*oparg_p = oparg;
347
return true;
0 commit comments