mirror of
https://github.com/python/cpython.git
synced 2025-08-25 11:15:02 +00:00
gh-115999: Enable BINARY_SUBSCR_GETITEM for free-threaded build (gh-127737)
This commit is contained in:
parent
f802c8bf87
commit
48c70b8f7d
12 changed files with 118 additions and 62 deletions
16
Python/optimizer_cases.c.h
generated
16
Python/optimizer_cases.c.h
generated
|
@ -592,21 +592,29 @@
|
|||
}
|
||||
|
||||
case _BINARY_SUBSCR_CHECK_FUNC: {
|
||||
_Py_UopsSymbol *getitem;
|
||||
getitem = sym_new_not_null(ctx);
|
||||
stack_pointer[0] = getitem;
|
||||
stack_pointer += 1;
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
break;
|
||||
}
|
||||
|
||||
case _BINARY_SUBSCR_INIT_CALL: {
|
||||
_Py_UopsSymbol *getitem;
|
||||
_Py_UopsSymbol *sub;
|
||||
_Py_UopsSymbol *container;
|
||||
_Py_UOpsAbstractFrame *new_frame;
|
||||
sub = stack_pointer[-1];
|
||||
container = stack_pointer[-2];
|
||||
getitem = stack_pointer[-1];
|
||||
sub = stack_pointer[-2];
|
||||
container = stack_pointer[-3];
|
||||
(void)container;
|
||||
(void)sub;
|
||||
(void)getitem;
|
||||
new_frame = NULL;
|
||||
ctx->done = true;
|
||||
stack_pointer[-2] = (_Py_UopsSymbol *)new_frame;
|
||||
stack_pointer += -1;
|
||||
stack_pointer[-3] = (_Py_UopsSymbol *)new_frame;
|
||||
stack_pointer += -2;
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue