mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
gh-116381: Specialize CONTAINS_OP (GH-116385)
* Specialize CONTAINS_OP * 📜🤖 Added by blurb_it. * Add PyAPI_FUNC for JIT --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
This commit is contained in:
parent
73807eb634
commit
7114cf20c0
21 changed files with 645 additions and 194 deletions
45
Python/optimizer_cases.c.h
generated
45
Python/optimizer_cases.c.h
generated
|
@ -1206,6 +1206,51 @@
|
|||
break;
|
||||
}
|
||||
|
||||
case _CONTAINS_OP_LIST: {
|
||||
_Py_UopsSymbol *b;
|
||||
b = sym_new_unknown(ctx);
|
||||
if (b == NULL) goto out_of_space;
|
||||
stack_pointer[-2] = b;
|
||||
stack_pointer += -1;
|
||||
break;
|
||||
}
|
||||
|
||||
case _CONTAINS_OP_SET: {
|
||||
_Py_UopsSymbol *b;
|
||||
b = sym_new_unknown(ctx);
|
||||
if (b == NULL) goto out_of_space;
|
||||
stack_pointer[-2] = b;
|
||||
stack_pointer += -1;
|
||||
break;
|
||||
}
|
||||
|
||||
case _CONTAINS_OP_TUPLE: {
|
||||
_Py_UopsSymbol *b;
|
||||
b = sym_new_unknown(ctx);
|
||||
if (b == NULL) goto out_of_space;
|
||||
stack_pointer[-2] = b;
|
||||
stack_pointer += -1;
|
||||
break;
|
||||
}
|
||||
|
||||
case _CONTAINS_OP_DICT: {
|
||||
_Py_UopsSymbol *b;
|
||||
b = sym_new_unknown(ctx);
|
||||
if (b == NULL) goto out_of_space;
|
||||
stack_pointer[-2] = b;
|
||||
stack_pointer += -1;
|
||||
break;
|
||||
}
|
||||
|
||||
case _CONTAINS_OP_STR: {
|
||||
_Py_UopsSymbol *b;
|
||||
b = sym_new_unknown(ctx);
|
||||
if (b == NULL) goto out_of_space;
|
||||
stack_pointer[-2] = b;
|
||||
stack_pointer += -1;
|
||||
break;
|
||||
}
|
||||
|
||||
case _CHECK_EG_MATCH: {
|
||||
_Py_UopsSymbol *rest;
|
||||
_Py_UopsSymbol *match;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue