[pypy-commit] pypy jitframe-on-heap: fix the stack wasting (does not fix the stack issue I believe)

fijal noreply at buildbot.pypy.org
Wed Mar 13 22:51:54 CET 2013


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: jitframe-on-heap
Changeset: r62331:3b3c923bd6f6
Date: 2013-03-13 14:50 -0700
http://bitbucket.org/pypy/pypy/changeset/3b3c923bd6f6/

Log:	fix the stack wasting (does not fix the stack issue I believe)

diff --git a/rpython/jit/backend/x86/assembler.py b/rpython/jit/backend/x86/assembler.py
--- a/rpython/jit/backend/x86/assembler.py
+++ b/rpython/jit/backend/x86/assembler.py
@@ -1118,11 +1118,6 @@
         n = len(arglocs)
         for i in range(start, n):
             loc = arglocs[i]
-            if isinstance(loc, RegLoc):
-                if loc.is_xmm:
-                    stack_depth += 2
-                else:
-                    stack_depth += 1
             stack_depth += loc.get_width() // WORD
         if stack_depth > stack_max:
             align = align_stack_words(stack_depth - stack_max)


More information about the pypy-commit mailing list