diff options
author | Mark Shannon <mark@hotpy.org> | 2021-11-18 11:02:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 11:02:14 (GMT) |
commit | 21fa7a3e8f99a1a32467f85c877e40cbdafa9da7 (patch) | |
tree | 55d139caef014d3875f2cd65de98f52f8669d78d /Include/internal/pycore_code.h | |
parent | 5275e59c0c1b26226608e6c7c2548c26192d6575 (diff) | |
download | cpython-21fa7a3e8f99a1a32467f85c877e40cbdafa9da7.zip cpython-21fa7a3e8f99a1a32467f85c877e40cbdafa9da7.tar.gz cpython-21fa7a3e8f99a1a32467f85c877e40cbdafa9da7.tar.bz2 |
bpo-45829: Specialize BINARY_SUBSCR for __getitem__ implemented in Python. (GH-29592)
Diffstat (limited to 'Include/internal/pycore_code.h')
-rw-r--r-- | Include/internal/pycore_code.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h index 7fe9e74..6563f7b 100644 --- a/Include/internal/pycore_code.h +++ b/Include/internal/pycore_code.h @@ -17,6 +17,7 @@ typedef struct { uint8_t original_oparg; uint8_t counter; uint16_t index; + uint32_t version; } _PyAdaptiveEntry; @@ -266,7 +267,7 @@ int _Py_Specialize_LoadAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name int _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name, SpecializedCacheEntry *cache); int _Py_Specialize_LoadGlobal(PyObject *globals, PyObject *builtins, _Py_CODEUNIT *instr, PyObject *name, SpecializedCacheEntry *cache); int _Py_Specialize_LoadMethod(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name, SpecializedCacheEntry *cache); -int _Py_Specialize_BinarySubscr(PyObject *sub, PyObject *container, _Py_CODEUNIT *instr); +int _Py_Specialize_BinarySubscr(PyObject *sub, PyObject *container, _Py_CODEUNIT *instr, SpecializedCacheEntry *cache); int _Py_Specialize_CallFunction(PyObject *callable, _Py_CODEUNIT *instr, int nargs, SpecializedCacheEntry *cache, PyObject *builtins); void _Py_Specialize_BinaryOp(PyObject *lhs, PyObject *rhs, _Py_CODEUNIT *instr, SpecializedCacheEntry *cache); |