[pypy-svn] r53504 - pypy/branch/jit-hotpath/pypy/jit/codegen/ia32

fijal at codespeak.net fijal at codespeak.net
Mon Apr 7 07:34:01 CEST 2008


Author: fijal
Date: Mon Apr  7 07:34:00 2008
New Revision: 53504

Modified:
   pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/rgenop.py
Log:
Be ultra paranoid. It seems that this one causes pypy-c to explode (there is
-1 somewhere around)


Modified: pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/rgenop.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/rgenop.py	(original)
+++ pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/rgenop.py	Mon Apr  7 07:34:00 2008
@@ -1035,9 +1035,14 @@
     if builder.stackdepth < N:
         builder.mc.SUB(esp, imm(WORD * (N - builder.stackdepth)))
         builder.stackdepth = N
-
+        
+    for pos in arg_positions:
+        assert pos >= 0
     outputargs_gv, arg_positions = _remap_bigger_values(outputargs_gv,
                                                         target.arg_positions)
+    for pos in arg_positions:
+        assert pos >= 0
+
     M = len(outputargs_gv)
     assert M == len(arg_positions)
     targetlayout = [None] * N



More information about the Pypy-commit mailing list