mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
GH-118095: Add dynamic exit support and FOR_ITER_GEN support to tier 2 (GH-118279)
This commit is contained in:
parent
63add11704
commit
3e06c7f719
12 changed files with 315 additions and 139 deletions
13
Python/optimizer_cases.c.h
generated
13
Python/optimizer_cases.c.h
generated
|
@ -1439,7 +1439,14 @@
|
|||
break;
|
||||
}
|
||||
|
||||
/* _FOR_ITER_GEN is not a viable micro-op for tier 2 */
|
||||
case _FOR_ITER_GEN_FRAME: {
|
||||
_PyInterpreterFrame *gen_frame;
|
||||
gen_frame = sym_new_not_null(ctx);
|
||||
if (gen_frame == NULL) goto out_of_space;
|
||||
stack_pointer[0] = (_Py_UopsSymbol *)gen_frame;
|
||||
stack_pointer += 1;
|
||||
break;
|
||||
}
|
||||
|
||||
/* _BEFORE_ASYNC_WITH is not a viable micro-op for tier 2 */
|
||||
|
||||
|
@ -2109,6 +2116,10 @@
|
|||
break;
|
||||
}
|
||||
|
||||
case _DYNAMIC_EXIT: {
|
||||
break;
|
||||
}
|
||||
|
||||
case _START_EXECUTOR: {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue