mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-100239: specialize BINARY_OP/SUBSCR for list-slice (#132626)
This commit is contained in:
parent
3831752689
commit
5529213d4e
15 changed files with 552 additions and 354 deletions
13
Python/optimizer_cases.c.h
generated
13
Python/optimizer_cases.c.h
generated
|
@ -215,6 +215,10 @@
|
|||
break;
|
||||
}
|
||||
|
||||
case _GUARD_TOS_SLICE: {
|
||||
break;
|
||||
}
|
||||
|
||||
case _TO_BOOL_LIST: {
|
||||
JitOptSymbol *value;
|
||||
JitOptSymbol *res;
|
||||
|
@ -587,6 +591,15 @@
|
|||
break;
|
||||
}
|
||||
|
||||
case _BINARY_OP_SUBSCR_LIST_SLICE: {
|
||||
JitOptSymbol *res;
|
||||
res = sym_new_not_null(ctx);
|
||||
stack_pointer[-2] = res;
|
||||
stack_pointer += -1;
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
break;
|
||||
}
|
||||
|
||||
case _BINARY_OP_SUBSCR_STR_INT: {
|
||||
JitOptSymbol *res;
|
||||
res = sym_new_type(ctx, &PyUnicode_Type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue