[pypy-svn] r71432 - in pypy/trunk/pypy/module/pypyjit: . test

fijal at codespeak.net fijal at codespeak.net
Tue Feb 23 16:54:20 CET 2010


Author: fijal
Date: Tue Feb 23 16:54:19 2010
New Revision: 71432

Modified:
   pypy/trunk/pypy/module/pypyjit/interp_jit.py
   pypy/trunk/pypy/module/pypyjit/test/test_pypy_c.py
Log:
Don't allocate lastblock if not needed. Unskip the test


Modified: pypy/trunk/pypy/module/pypyjit/interp_jit.py
==============================================================================
--- pypy/trunk/pypy/module/pypyjit/interp_jit.py	(original)
+++ pypy/trunk/pypy/module/pypyjit/interp_jit.py	Tue Feb 23 16:54:19 2010
@@ -2,6 +2,7 @@
 
 This is transformed to become a JIT by code elsewhere: pypy/jit/*
 """
+
 from pypy.tool.pairtype import extendabletype
 from pypy.rlib.rarithmetic import r_uint, intmask
 from pypy.rlib.jit import JitDriver, hint, we_are_jitted
@@ -18,6 +19,7 @@
                             'valuestackdepth', 'valuestack_w[*]',
                             'fastlocals_w[*]',
                             'last_exception',
+                            'lastblock',
                             ]
 
 JUMP_ABSOLUTE = opmap['JUMP_ABSOLUTE']

Modified: pypy/trunk/pypy/module/pypyjit/test/test_pypy_c.py
==============================================================================
--- pypy/trunk/pypy/module/pypyjit/test/test_pypy_c.py	(original)
+++ pypy/trunk/pypy/module/pypyjit/test/test_pypy_c.py	Tue Feb 23 16:54:19 2010
@@ -552,7 +552,6 @@
         assert len(self.loops) == 1
 
     def test_blockstack_virtualizable(self):
-        py.test.skip("Fails for now")
         self.run_source('''
         def g(k):
             s = 0



More information about the Pypy-commit mailing list