[pypy-commit] pypy translation-cleanup: dispatch_bytecode(): propagate AttributeError for missing opcodes
rlamy
noreply at buildbot.pypy.org
Thu Aug 30 18:38:17 CEST 2012
Author: Ronan Lamy <ronan.lamy at gmail.com>
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
More information about the pypy-commit
mailing list