mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
GH-118095: Add tier 2 support for YIELD_VALUE (GH-118380)
This commit is contained in:
parent
0f797402bc
commit
5b05d452cd
9 changed files with 92 additions and 16 deletions
|
@ -673,6 +673,15 @@ dummy_func(void) {
|
|||
}
|
||||
}
|
||||
|
||||
op(_YIELD_VALUE, (unused -- res)) {
|
||||
OUT_OF_SPACE_IF_NULL(res = sym_new_unknown(ctx));
|
||||
}
|
||||
|
||||
op(_FOR_ITER_GEN_FRAME, ( -- )) {
|
||||
/* We are about to hit the end of the trace */
|
||||
goto done;
|
||||
}
|
||||
|
||||
op(_CHECK_STACK_SPACE, ( --)) {
|
||||
assert(corresponding_check_stack == NULL);
|
||||
corresponding_check_stack = this_instr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue