summaryrefslogtreecommitdiff
path: root/Include/internal/pycore_code.h
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2023-05-11 08:08:13 -0600
committerGitHub <noreply@github.com>2023-05-11 08:08:13 -0600
commit77262458fe3fe9f3f0266bbf578675a906b1e353 (patch)
treeb066d678cfdba47c64e82ed49ecb73a1d1d8a701 /Include/internal/pycore_code.h
parentddc0e70a326180d90a45dfd8abeded9c9f911217 (diff)
downloadcpython-git-77262458fe3fe9f3f0266bbf578675a906b1e353.tar.gz
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.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h
index c1f017fdb7..75a23f3f5a 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,