Author: David Schneider <[email protected]>
Branch: arm-backed-float
Changeset: r44542:14dafdf29372
Date: 2011-05-27 13:23 +0200
http://bitbucket.org/pypy/pypy/changeset/14dafdf29372/

Log:    (arigo, bivab) correctly calculate the offset of the variables
        spilled on the stack

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
@@ -898,7 +898,7 @@
         for v, val in self.frame_manager.frame_bindings.items():
             if (isinstance(v, BoxPtr) and self.rm.stays_alive(v)):
                 assert val.is_stack()
-                gcrootmap.add_frame_offset(shape, val.position)
+                gcrootmap.add_frame_offset(shape, val.position*-WORD)
         for v, reg in self.rm.reg_bindings.items():
             if reg is r.r0:
                 continue
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to