summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_code.h
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2025-02-07 22:39:54 (GMT)
committerGitHub <noreply@github.com>2025-02-07 22:39:54 (GMT)
commita1417b211f0bb9582b00f7b82d0a43a3bcc9ed05 (patch)
tree1133960d5abf1077cbf974bcde2ecb90b9fc1b7c /Include/internal/pycore_code.h
parent2248a9c153092b920ff68b0eee009c04dbe19f61 (diff)
downloadcpython-a1417b211f0bb9582b00f7b82d0a43a3bcc9ed05.zip
cpython-a1417b211f0bb9582b00f7b82d0a43a3bcc9ed05.tar.gz
cpython-a1417b211f0bb9582b00f7b82d0a43a3bcc9ed05.tar.bz2
gh-100239: replace BINARY_SUBSCR & family by BINARY_OP with oparg NB_SUBSCR (#129700)
Diffstat (limited to 'Include/internal/pycore_code.h')
-rw-r--r--Include/internal/pycore_code.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h
index 65c3d14..6d45d5f 100644
--- a/Include/internal/pycore_code.h
+++ b/Include/internal/pycore_code.h
@@ -338,8 +338,6 @@ extern void _Py_Specialize_StoreAttr(_PyStackRef owner, _Py_CODEUNIT *instr,
PyObject *name);
extern void _Py_Specialize_LoadGlobal(PyObject *globals, PyObject *builtins,
_Py_CODEUNIT *instr, PyObject *name);
-extern void _Py_Specialize_BinarySubscr(_PyStackRef sub, _PyStackRef container,
- _Py_CODEUNIT *instr);
extern void _Py_Specialize_StoreSubscr(_PyStackRef container, _PyStackRef sub,
_Py_CODEUNIT *instr);
extern void _Py_Specialize_Call(_PyStackRef callable, _Py_CODEUNIT *instr,
@@ -586,6 +584,7 @@ typedef int (*binaryopguardfunc)(PyObject *lhs, PyObject *rhs);
typedef PyObject *(*binaryopactionfunc)(PyObject *lhs, PyObject *rhs);
typedef struct {
+ int oparg;
binaryopguardfunc guard;
binaryopactionfunc action;
} _PyBinaryOpSpecializationDescr;