summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2022-11-09 18:50:09 (GMT)
committerGitHub <noreply@github.com>2022-11-09 18:50:09 (GMT)
commitc7f57087149968e9a72f6dee73514ff18fee78e8 (patch)
tree82caebb4f6d1070192ba34da38325d5cf39398ee /Python/compile.c
parent6e3cc72afeaee2532b4327776501eb8234ac787b (diff)
downloadcpython-c7f57087149968e9a72f6dee73514ff18fee78e8.zip
cpython-c7f57087149968e9a72f6dee73514ff18fee78e8.tar.gz
cpython-c7f57087149968e9a72f6dee73514ff18fee78e8.tar.bz2
GH-98686: Get rid of "adaptive" and "quick" instructions (GH-99182)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 065d1b0..030378f 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -8062,7 +8062,6 @@ scan_block_for_locals(basicblock *b, basicblock ***sp)
for (int i = 0; i < b->b_iused; i++) {
struct instr *instr = &b->b_instr[i];
assert(instr->i_opcode != EXTENDED_ARG);
- assert(instr->i_opcode != EXTENDED_ARG_QUICK);
assert(!IS_SUPERINSTRUCTION_OPCODE(instr->i_opcode));
if (instr->i_except != NULL) {
maybe_push(instr->i_except, unsafe_mask, sp);
@@ -8119,7 +8118,6 @@ fast_scan_many_locals(basicblock *entryblock, int nlocals)
for (int i = 0; i < b->b_iused; i++) {
struct instr *instr = &b->b_instr[i];
assert(instr->i_opcode != EXTENDED_ARG);
- assert(instr->i_opcode != EXTENDED_ARG_QUICK);
assert(!IS_SUPERINSTRUCTION_OPCODE(instr->i_opcode));
int arg = instr->i_oparg;
if (arg < 64) {
@@ -8667,7 +8665,6 @@ fix_cell_offsets(struct compiler *c, basicblock *entryblock, int *fixedmap)
struct instr *inst = &b->b_instr[i];
// This is called before extended args are generated.
assert(inst->i_opcode != EXTENDED_ARG);
- assert(inst->i_opcode != EXTENDED_ARG_QUICK);
int oldoffset = inst->i_oparg;
switch(inst->i_opcode) {
case MAKE_CELL: