summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-08-13 13:22:57 (GMT)
committerGitHub <noreply@github.com>2024-08-13 13:22:57 (GMT)
commit7a65439b93d6ee4d4e32757b55909b882f9a2056 (patch)
tree0df6d926c920125cf98e02ab7d8c0612565b055e /Tools
parentfe23f8ed970425828de20fb48750fa89da914886 (diff)
downloadcpython-7a65439b93d6ee4d4e32757b55909b882f9a2056.zip
cpython-7a65439b93d6ee4d4e32757b55909b882f9a2056.tar.gz
cpython-7a65439b93d6ee4d4e32757b55909b882f9a2056.tar.bz2
GH-122390: Replace `_Py_GetbaseOpcode` with `_Py_GetBaseCodeUnit` (GH-122942)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/cases_generator/analyzer.py1
-rw-r--r--Tools/cases_generator/opcode_id_generator.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/Tools/cases_generator/analyzer.py b/Tools/cases_generator/analyzer.py
index db30229..8c75165 100644
--- a/Tools/cases_generator/analyzer.py
+++ b/Tools/cases_generator/analyzer.py
@@ -882,6 +882,7 @@ def assign_opcodes(
instmap["BINARY_OP_INPLACE_ADD_UNICODE"] = 3
instmap["INSTRUMENTED_LINE"] = 254
+ instmap["ENTER_EXECUTOR"] = 255
instrumented = [name for name in instructions if name.startswith("INSTRUMENTED")]
diff --git a/Tools/cases_generator/opcode_id_generator.py b/Tools/cases_generator/opcode_id_generator.py
index 7932379..888ae0f 100644
--- a/Tools/cases_generator/opcode_id_generator.py
+++ b/Tools/cases_generator/opcode_id_generator.py
@@ -37,6 +37,7 @@ def generate_opcode_header(
out.emit("\n")
write_define("HAVE_ARGUMENT", analysis.have_arg)
+ write_define("MIN_SPECIALIZED_OPCODE", analysis.opmap["RESUME"]+1)
write_define("MIN_INSTRUMENTED_OPCODE", analysis.min_instrumented)