mirror of
https://github.com/python/cpython.git
synced 2026-05-09 14:11:28 -04:00
GH-111485: Factor out tier 2 code generation from the rest of the interpreter code generator (GH-112968)
This commit is contained in:
@@ -3967,6 +3967,7 @@ dummy_func(
|
||||
}
|
||||
|
||||
inst(EXTENDED_ARG, ( -- )) {
|
||||
TIER_ONE_ONLY
|
||||
assert(oparg);
|
||||
opcode = next_instr->op.code;
|
||||
oparg = oparg << 8 | next_instr->op.arg;
|
||||
@@ -3975,11 +3976,13 @@ dummy_func(
|
||||
}
|
||||
|
||||
inst(CACHE, (--)) {
|
||||
TIER_ONE_ONLY
|
||||
assert(0 && "Executing a cache.");
|
||||
Py_UNREACHABLE();
|
||||
}
|
||||
|
||||
inst(RESERVED, (--)) {
|
||||
TIER_ONE_ONLY
|
||||
assert(0 && "Executing RESERVED instruction.");
|
||||
Py_UNREACHABLE();
|
||||
}
|
||||
|
||||
Generated
+886
-730
File diff suppressed because it is too large
Load Diff
Generated
+4
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user