[pypy-svn] pypy arm-backed-float: correctly calculate stack locations for floats

bivab commits-noreply at bitbucket.org
Tue Apr 19 12:01:08 CEST 2011


Author: David Schneider <david.schneider at picle.org>
Branch: arm-backed-float
Changeset: r43471:77710502dfb3
Date: 2011-04-18 11:25 +0200
http://bitbucket.org/pypy/pypy/changeset/77710502dfb3/

Log:	correctly calculate stack locations for floats

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
@@ -47,6 +47,8 @@
     @staticmethod
     def frame_pos(loc, type):
         num_words = ARMFrameManager.frame_size(type)
+        if type == FLOAT:
+            return locations.StackLocation(loc+1, num_words=num_words, type=type)
         return locations.StackLocation(loc, num_words=num_words, type=type)
 
     @staticmethod


More information about the Pypy-commit mailing list