aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/generated_cases.c.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-12-12 12:12:17 +0000
committerGitHub <noreply@github.com>2023-12-12 12:12:17 +0000
commit0c55f270604f8541bcf43526e5cf6c6eddfff451 (patch)
treeb8d8d09ed4c37f4338e7c0186dbb41bf1f0144c3 /Python/generated_cases.c.h
parentc454e934d36193709aadba8e8e28739790086b95 (diff)
downloadcpython-0c55f270604f8541bcf43526e5cf6c6eddfff451.tar.gz
cpython-0c55f270604f8541bcf43526e5cf6c6eddfff451.zip
GH-111485: Factor out tier 2 code generation from the rest of the interpreter code generator (GH-112968)
Diffstat (limited to 'Python/generated_cases.c.h')
-rw-r--r--Python/generated_cases.c.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h
index 24243ecfb5b..8f68bc6cb5a 100644
--- a/Python/generated_cases.c.h
+++ b/Python/generated_cases.c.h
@@ -1,6 +1,6 @@
// This file is generated by Tools/cases_generator/tier1_generator.py
// from:
-// ['./Python/bytecodes.c']
+// Python/bytecodes.c
// Do not edit!
#ifdef TIER_TWO
@@ -725,6 +725,7 @@
frame->instr_ptr = next_instr;
next_instr += 1;
INSTRUCTION_STATS(CACHE);
+ TIER_ONE_ONLY
assert(0 && "Executing a cache.");
Py_UNREACHABLE();
}
@@ -2364,6 +2365,7 @@
frame->instr_ptr = next_instr;
next_instr += 1;
INSTRUCTION_STATS(EXTENDED_ARG);
+ TIER_ONE_ONLY
assert(oparg);
opcode = next_instr->op.code;
oparg = oparg << 8 | next_instr->op.arg;
@@ -4704,6 +4706,7 @@
frame->instr_ptr = next_instr;
next_instr += 1;
INSTRUCTION_STATS(RESERVED);
+ TIER_ONE_ONLY
assert(0 && "Executing RESERVED instruction.");
Py_UNREACHABLE();
}