Author: David Schneider <[email protected]>
Branch: arm-backed-float
Changeset: r44926:aeb887f90e10
Date: 2011-06-10 20:37 +0200
http://bitbucket.org/pypy/pypy/changeset/aeb887f90e10/

Log:    use none as an alignement marker when calculating the list of
        arguments to a call that go on the stack

diff --git a/pypy/jit/backend/arm/opassembler.py 
b/pypy/jit/backend/arm/opassembler.py
--- a/pypy/jit/backend/arm/opassembler.py
+++ b/pypy/jit/backend/arm/opassembler.py
@@ -317,18 +317,18 @@
                 else:
                     n += 2 * WORD
                     if count % 2 != 0:
-                        stack_args.append(ConstInt(0))
+                        stack_args.append(None)
                         n += WORD
                         count = 0
                 stack_args.append(arg)
             if count % 2 != 0:
                 n += WORD
-                stack_args.append(ConstInt(0))
+                stack_args.append(None)
 
             #then we push every thing on the stack
             for i in range(len(stack_args) -1, -1, -1):
                 arg = stack_args[i]
-                if isinstance(arg, ConstInt) and arg.value == 0:
+                if arg is None:
                     self.mc.PUSH([r.ip.value])
                 else:
                     self.regalloc_push(regalloc.loc(arg))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to