Author: Ronan Lamy <[email protected]>
Branch: translation-cleanup
Changeset: r56997:6dcf745b3241
Date: 2012-08-12 18:44 +0100
http://bitbucket.org/pypy/pypy/changeset/6dcf745b3241/

Log:    dispatch_bytecode(): propagate AttributeError for missing opcodes

diff --git a/pypy/objspace/flow/flowcontext.py 
b/pypy/objspace/flow/flowcontext.py
--- a/pypy/objspace/flow/flowcontext.py
+++ b/pypy/objspace/flow/flowcontext.py
@@ -451,12 +451,7 @@
             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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to