mirror of
https://github.com/python/cpython.git
synced 2026-04-21 03:10:52 +00:00
gh-146393: Use recorded type instead of instance in BINARY_OP (#148569)
This commit is contained in:
parent
0012686d92
commit
5c3decad66
8 changed files with 1042 additions and 1013 deletions
8
Python/optimizer_cases.c.h
generated
8
Python/optimizer_cases.c.h
generated
|
|
@ -5482,6 +5482,14 @@
|
|||
break;
|
||||
}
|
||||
|
||||
case _RECORD_NOS_TYPE: {
|
||||
JitOptRef nos;
|
||||
nos = stack_pointer[-2];
|
||||
PyTypeObject *tp = (PyTypeObject *)this_instr->operand0;
|
||||
sym_set_recorded_type(nos, tp);
|
||||
break;
|
||||
}
|
||||
|
||||
case _RECORD_NOS_GEN_FUNC: {
|
||||
JitOptRef nos;
|
||||
nos = stack_pointer[-2];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue