mirror of
https://github.com/python/cpython.git
synced 2026-05-09 03:50:56 +00:00
Merge 49aa0101ab into d254d6ee49
This commit is contained in:
commit
3638f52bde
8 changed files with 89 additions and 1 deletions
16
Python/generated_cases.c.h
generated
16
Python/generated_cases.c.h
generated
|
|
@ -8359,6 +8359,14 @@
|
|||
// _LOAD_ATTR_CLASS
|
||||
{
|
||||
PyObject *descr = read_obj(&this_instr[6].cache);
|
||||
PyTypeObject *descr_type = Py_TYPE(descr);
|
||||
PyObject *owner_o = PyStackRef_AsPyObjectBorrow(owner);
|
||||
if ((descr_type->tp_flags & Py_TPFLAGS_IMMUTABLETYPE) == 0
|
||||
&& descr_type != (PyTypeObject *)owner_o) {
|
||||
UPDATE_MISS_STATS(LOAD_ATTR);
|
||||
assert(_PyOpcode_Deopt[opcode] == (LOAD_ATTR));
|
||||
JUMP_TO_PREDICTED(LOAD_ATTR);
|
||||
}
|
||||
STAT_INC(LOAD_ATTR, hit);
|
||||
assert(descr != NULL);
|
||||
attr = PyStackRef_FromPyObjectNew(descr);
|
||||
|
|
@ -8427,6 +8435,14 @@
|
|||
// _LOAD_ATTR_CLASS
|
||||
{
|
||||
PyObject *descr = read_obj(&this_instr[6].cache);
|
||||
PyTypeObject *descr_type = Py_TYPE(descr);
|
||||
PyObject *owner_o = PyStackRef_AsPyObjectBorrow(owner);
|
||||
if ((descr_type->tp_flags & Py_TPFLAGS_IMMUTABLETYPE) == 0
|
||||
&& descr_type != (PyTypeObject *)owner_o) {
|
||||
UPDATE_MISS_STATS(LOAD_ATTR);
|
||||
assert(_PyOpcode_Deopt[opcode] == (LOAD_ATTR));
|
||||
JUMP_TO_PREDICTED(LOAD_ATTR);
|
||||
}
|
||||
STAT_INC(LOAD_ATTR, hit);
|
||||
assert(descr != NULL);
|
||||
attr = PyStackRef_FromPyObjectNew(descr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue