Skip to content

Commit

Permalink
remove oplists
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Jul 17, 2023
1 parent 0f5ae32 commit 289fad1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Lib/opcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
def is_pseudo(op):
return op >= MIN_PSEUDO_OPCODE and op <= MAX_PSEUDO_OPCODE

oplists = [hascompare]

opmap = {}

## pseudo opcodes (used in the compiler) mapped to the values
Expand All @@ -39,12 +37,6 @@ def def_op(name, op):
def pseudo_op(name, op, real_ops):
def_op(name, op)
_pseudo_ops[name] = real_ops
# add the pseudo opcode to the lists its targets are in
for oplist in oplists:
res = [opmap[rop] in oplist for rop in real_ops]
if any(res):
assert all(res)
oplist.append(op)


# Instruction opcodes for compiled code
Expand Down

0 comments on commit 289fad1

Please sign in to comment.