mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
GH-100288: Remove LOAD_ATTR_METHOD_WITH_DICT instruction. (GH-100753)
This commit is contained in:
parent
105e37395d
commit
f20c553a45
8 changed files with 40 additions and 95 deletions
|
@ -1091,9 +1091,8 @@ PyObject *descr, DescriptorClassification kind)
|
|||
SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_HAS_MANAGED_DICT);
|
||||
goto fail;
|
||||
case OFFSET_DICT:
|
||||
assert(owner_cls->tp_dictoffset > 0 && owner_cls->tp_dictoffset <= INT16_MAX);
|
||||
_py_set_opcode(instr, LOAD_ATTR_METHOD_WITH_DICT);
|
||||
break;
|
||||
SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_NOT_MANAGED_DICT);
|
||||
goto fail;
|
||||
case LAZY_DICT:
|
||||
assert(owner_cls->tp_dictoffset > 0 && owner_cls->tp_dictoffset <= INT16_MAX);
|
||||
_py_set_opcode(instr, LOAD_ATTR_METHOD_LAZY_DICT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue