mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
GH-118095: Add tier two support for BINARY_SUBSCR_GETITEM (GH-120793)
This commit is contained in:
parent
fda6bd842a
commit
df13a1821a
10 changed files with 317 additions and 207 deletions
13
Python/optimizer_cases.c.h
generated
13
Python/optimizer_cases.c.h
generated
|
@ -539,7 +539,18 @@
|
|||
break;
|
||||
}
|
||||
|
||||
/* _BINARY_SUBSCR_GETITEM is not a viable micro-op for tier 2 */
|
||||
case _BINARY_SUBSCR_CHECK_FUNC: {
|
||||
break;
|
||||
}
|
||||
|
||||
case _BINARY_SUBSCR_INIT_CALL: {
|
||||
_PyInterpreterFrame *new_frame;
|
||||
new_frame = sym_new_not_null(ctx);
|
||||
stack_pointer[-2] = (_Py_UopsSymbol *)new_frame;
|
||||
stack_pointer += -1;
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
break;
|
||||
}
|
||||
|
||||
case _LIST_APPEND: {
|
||||
stack_pointer += -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue