[pypy-svn] pypy arm-backend-2: Pass condition around when generation function epilog

bivab commits-noreply at bitbucket.org
Thu Dec 30 19:45:12 CET 2010


Author: David Schneider <david.schneider at picle.org>
Branch: arm-backend-2
Changeset: r40291:589106b81a9e
Date: 2010-12-29 21:49 +0100
http://bitbucket.org/pypy/pypy/changeset/589106b81a9e/

Log:	Pass condition around when generation function epilog

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
@@ -272,8 +272,8 @@
     def gen_func_epilog(self, mc=None, cond=c.AL):
         if mc is None:
             mc = self.mc
-        mc.MOV_rr(r.sp.value, r.fp.value)
-        mc.ADD_ri(r.sp.value, r.sp.value, WORD)
+        mc.MOV_rr(r.sp.value, r.fp.value, cond=cond)
+        mc.ADD_ri(r.sp.value, r.sp.value, WORD, cond=cond)
         mc.POP([reg.value for reg in r.callee_restored_registers], cond=cond)
 
     def gen_func_prolog(self):


More information about the Pypy-commit mailing list