diff options
| author | Carl Meyer <carl@oddbird.net> | 2023-05-11 14:08:13 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-11 14:08:13 (GMT) |
| commit | 77262458fe3fe9f3f0266bbf578675a906b1e353 (patch) | |
| tree | b066d678cfdba47c64e82ed49ecb73a1d1d8a701 /Include/internal/pycore_code.h | |
| parent | ddc0e70a326180d90a45dfd8abeded9c9f911217 (diff) | |
| download | cpython-77262458fe3fe9f3f0266bbf578675a906b1e353.zip cpython-77262458fe3fe9f3f0266bbf578675a906b1e353.tar.gz cpython-77262458fe3fe9f3f0266bbf578675a906b1e353.tar.bz2 | |
gh-87729: improve hit rate of LOAD_SUPER_ATTR specialization (#104270)
Diffstat (limited to 'Include/internal/pycore_code.h')
| -rw-r--r-- | Include/internal/pycore_code.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h index c1f017f..75a23f3 100644 --- a/Include/internal/pycore_code.h +++ b/Include/internal/pycore_code.h @@ -53,9 +53,6 @@ typedef struct { typedef struct { uint16_t counter; - uint16_t class_version[2]; - uint16_t self_type_version[2]; - uint16_t method[4]; } _PySuperAttrCache; #define INLINE_CACHE_ENTRIES_LOAD_SUPER_ATTR CACHE_ENTRIES(_PySuperAttrCache) @@ -227,8 +224,8 @@ extern int _PyLineTable_PreviousAddressRange(PyCodeAddressRange *range); /* Specialization functions */ -extern void _Py_Specialize_LoadSuperAttr(PyObject *global_super, PyObject *cls, PyObject *self, - _Py_CODEUNIT *instr, PyObject *name, int load_method); +extern void _Py_Specialize_LoadSuperAttr(PyObject *global_super, PyObject *cls, + _Py_CODEUNIT *instr, int load_method); extern void _Py_Specialize_LoadAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name); extern void _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNIT *instr, |
