Commits

Ronan Lamy  committed 6dcf745

dispatch_bytecode(): propagate AttributeError for missing opcodes

  • Participants
  • Parent commits 35a503e
  • Branches translation-cleanup

Comments (0)

Files changed (1)

File pypy/objspace/flow/flowcontext.py

             self.last_instr = next_instr
             ec.bytecode_trace(self)
             next_instr, methodname, oparg = code.read(next_instr)
-            try:
-                meth = getattr(self, methodname)
-            except AttributeError:
-                raise BytecodeCorruption("unimplemented opcode, ofs=%d, "
-                        "code=%d, name=%s" %
-                        (self.last_instr, opcode, methodname))
+            meth = getattr(self, methodname)
             res = meth(oparg, next_instr)
             if res is not None:
                 next_instr = res