[pypy-svn] r62469 - pypy/branch/pyjitpl5/pypy/jit/metainterp/test

fijal at codespeak.net fijal at codespeak.net
Tue Mar 3 14:06:49 CET 2009


Author: fijal
Date: Tue Mar  3 14:06:48 2009
New Revision: 62469

Modified:
   pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_virtualizable.py
Log:
oops, beaten by my own optimization. this is how the test should look like


Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_virtualizable.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_virtualizable.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_virtualizable.py	Tue Mar  3 14:06:48 2009
@@ -173,12 +173,13 @@
                 x += frame.l[frame.s]
                 frame.s += 1
                 x += frame.l[frame.s]
+                frame.l[frame.s] += 1
                 frame.s -= 1
             return x
 
         res = self.meta_interp(f, [10, 1], listops=True)
         assert res == f(10, 1)
-        self.check_loops(getarrayitem_gc=2)
+        self.check_loops(setarrayitem_gc=1)
 
     def test_virtual_on_virtualizable(self):
         myjitdriver = JitDriver(greens = [], reds = ['frame', 'n'],



More information about the Pypy-commit mailing list