mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
GH-98831: Support cache effects in super- and macro instructions (#99601)
This commit is contained in:
parent
0547a981ae
commit
acf9184e6b
4 changed files with 474 additions and 264 deletions
4
Python/generated_cases.c.h
generated
4
Python/generated_cases.c.h
generated
|
@ -436,10 +436,10 @@
|
|||
}
|
||||
|
||||
TARGET(BINARY_SUBSCR_GETITEM) {
|
||||
uint32_t type_version = read_u32(next_instr + 1);
|
||||
uint16_t func_version = read_u16(next_instr + 3);
|
||||
PyObject *sub = PEEK(1);
|
||||
PyObject *container = PEEK(2);
|
||||
uint32_t type_version = read_u32(next_instr + 1);
|
||||
uint16_t func_version = read_u16(next_instr + 3);
|
||||
PyTypeObject *tp = Py_TYPE(container);
|
||||
DEOPT_IF(tp->tp_version_tag != type_version, BINARY_SUBSCR);
|
||||
assert(tp->tp_flags & Py_TPFLAGS_HEAPTYPE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue