Author: David Schneider <david.schnei...@picle.org>
Branch: arm-backed-float
Changeset: r44646:13c04e58563d
Date: 2011-06-02 11:56 +0200
http://bitbucket.org/pypy/pypy/changeset/13c04e58563d/

Log:    implement force_spill operation for testing

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
@@ -708,6 +708,8 @@
                                         operations[i+1], fcond)
                 fcond = self.operations_with_guard[opnum](self, op,
                                         operations[i+1], arglocs, regalloc, 
fcond)
+            elif not we_are_translated() and op.getopnum() == -124:
+                regalloc.prepare_force_spill(op, fcond)
             else:
                 arglocs = regalloc.operations[opnum](regalloc, op, fcond)
                 fcond = self.operations[opnum](self, op, arglocs, regalloc, 
fcond)
diff --git a/pypy/jit/backend/arm/regalloc.py b/pypy/jit/backend/arm/regalloc.py
--- a/pypy/jit/backend/arm/regalloc.py
+++ b/pypy/jit/backend/arm/regalloc.py
@@ -1096,6 +1096,10 @@
 
         return locs
 
+    def prepare_force_spill(self, op, fcond):
+        self.force_spill_var(op.getarg(0))
+        return []
+
 def make_operation_list():
     def notimplemented(self, op, fcond):
         raise NotImplementedError, op
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to