[pypy-commit] pypy arm-backend-2: add missing not_implemented implementation

bivab noreply at buildbot.pypy.org
Tue Oct 25 12:20:53 CEST 2011


Author: David Schneider <david.schneider at picle.org>
Branch: arm-backend-2
Changeset: r48426:fccb38718397
Date: 2011-10-25 12:03 +0200
http://bitbucket.org/pypy/pypy/changeset/fccb38718397/

Log:	add missing not_implemented implementation

diff --git a/pypy/jit/backend/arm/assembler.py b/pypy/jit/backend/arm/assembler.py
--- a/pypy/jit/backend/arm/assembler.py
+++ b/pypy/jit/backend/arm/assembler.py
@@ -1,4 +1,5 @@
 from __future__ import with_statement
+import os
 from pypy.jit.backend.arm.helper.assembler import saved_registers, count_reg_args, \
                                                     decode32, encode32, \
                                                     decode64, encode64
@@ -1162,13 +1163,17 @@
         else:
             return 0
 
-def notimplemented(self, op, arglocs, regalloc, fcond):
+def not_implemented(msg):
+    os.write(2, '[ARM/asm] %s\n' % msg)
+    raise NotImplementedError(msg)
+
+def notimplemented_op(self, op, arglocs, regalloc, fcond):
     raise NotImplementedError, op
-def notimplemented_with_guard(self, op, guard_op, arglocs, regalloc, fcond):
+def notimplemented_op_with_guard(self, op, guard_op, arglocs, regalloc, fcond):
     raise NotImplementedError, op
 
-asm_operations = [notimplemented] * (rop._LAST + 1)
-asm_operations_with_guard = [notimplemented_with_guard] * (rop._LAST + 1)
+asm_operations = [notimplemented_op] * (rop._LAST + 1)
+asm_operations_with_guard = [notimplemented_op_with_guard] * (rop._LAST + 1)
 
 for key, value in rop.__dict__.items():
     key = key.lower()


More information about the pypy-commit mailing list