[pypy-svn] r37893 - pypy/branch/jit-virtual-world/pypy/jit/timeshifter/test

pedronis at codespeak.net pedronis at codespeak.net
Sun Feb 4 12:33:19 CET 2007


Author: pedronis
Date: Sun Feb  4 12:33:15 2007
New Revision: 37893

Modified:
   pypy/branch/jit-virtual-world/pypy/jit/timeshifter/test/test_virtualizable.py
Log:
have a real merge, not splitting on green vars



Modified: pypy/branch/jit-virtual-world/pypy/jit/timeshifter/test/test_virtualizable.py
==============================================================================
--- pypy/branch/jit-virtual-world/pypy/jit/timeshifter/test/test_virtualizable.py	(original)
+++ pypy/branch/jit-virtual-world/pypy/jit/timeshifter/test/test_virtualizable.py	Sun Feb  4 12:33:15 2007
@@ -425,30 +425,30 @@
             y = xy_get_y(xy)
             e.w = y
 
-        def f(e):
+        def f(e, z):
             hint(None, global_merge_point=True)
             xy = e.xy
             y = xy_get_y(xy)
             newy = 2*y
             xy_set_y(xy, newy)
             if y:
-                dummy = 0
+                dummy = z*2
             else:
-                dummy = 1
+                dummy = z*3
             g(e)
             return dummy
             
-        def main(x, y):
+        def main(x, y, z):
             xy = lltype.malloc(XY)
             xy.vable_access = lltype.nullptr(XY_ACCESS)
             xy.x = x
             xy.y = y
             e = lltype.malloc(E)
             e.xy = xy
-            f(e)
+            f(e, z)
             return e.w
 
-        res = self.timeshift_from_portal(main, f, [0, 21],
+        res = self.timeshift_from_portal(main, f, [0, 21, 11],
                                          policy=StopAtXPolicy(g))
         assert res == 42
 



More information about the Pypy-commit mailing list