mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
GH-108614: Add RESUME_CHECK
instruction (GH-108630)
This commit is contained in:
parent
d485551c9d
commit
0858328ca2
16 changed files with 519 additions and 482 deletions
|
@ -333,7 +333,11 @@ gen_close_iter(PyObject *yf)
|
|||
static inline bool
|
||||
is_resume(_Py_CODEUNIT *instr)
|
||||
{
|
||||
return instr->op.code == RESUME || instr->op.code == INSTRUMENTED_RESUME;
|
||||
return (
|
||||
instr->op.code == RESUME ||
|
||||
instr->op.code == RESUME_CHECK ||
|
||||
instr->op.code == INSTRUMENTED_RESUME
|
||||
);
|
||||
}
|
||||
|
||||
static inline bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue