summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-08-16 22:25:18 (GMT)
committerGitHub <noreply@github.com>2023-08-16 22:25:18 (GMT)
commit665a4391e10167dad1c854fb604c86f336fcd331 (patch)
treee1d55069486dd67e6857a13fafc12b6e865cacf7 /Objects
parente88eb3775ecdcb3af6c6d694a935b7fa5f41e5ce (diff)
downloadcpython-665a4391e10167dad1c854fb604c86f336fcd331.zip
cpython-665a4391e10167dad1c854fb604c86f336fcd331.tar.gz
cpython-665a4391e10167dad1c854fb604c86f336fcd331.tar.bz2
gh-105481: generate op IDs from bytecode.c instead of hard coding them in opcode.py (#107971)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/codeobject.c3
-rw-r--r--Objects/frameobject.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index 6987a23..2c9c8ce 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -6,7 +6,8 @@
#include "pycore_code.h" // _PyCodeConstructor
#include "pycore_frame.h" // FRAME_SPECIALS_SIZE
#include "pycore_interp.h" // PyInterpreterState.co_extra_freefuncs
-#include "pycore_opcode.h" // _PyOpcode_Deopt
+#include "pycore_opcode.h" // _PyOpcode_Caches
+#include "pycore_opcode_metadata.h" // _PyOpcode_Deopt
#include "pycore_pystate.h" // _PyInterpreterState_GET()
#include "pycore_setobject.h" // _PySet_NextEntry()
#include "pycore_tuple.h" // _PyTuple_ITEMS()
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index 1757153..80e118e 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -7,6 +7,8 @@
#include "pycore_moduleobject.h" // _PyModule_GetDict()
#include "pycore_object.h" // _PyObject_GC_UNTRACK()
#include "pycore_opcode.h" // _PyOpcode_Caches
+#include "pycore_opcode_metadata.h" // _PyOpcode_Deopt
+
#include "frameobject.h" // PyFrameObject
#include "pycore_frame.h"