[pypy-svn] r66622 - pypy/branch/pyjitpl5/pypy/jit/tl/spli/test
fijal at codespeak.net
fijal at codespeak.net
Sat Jul 25 12:05:07 CEST 2009
Author: fijal
Date: Sat Jul 25 12:05:06 2009
New Revision: 66622
Modified:
pypy/branch/pyjitpl5/pypy/jit/tl/spli/test/test_jit.py
Log:
Add some asserts and a comment
Modified: pypy/branch/pyjitpl5/pypy/jit/tl/spli/test/test_jit.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/tl/spli/test/test_jit.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/tl/spli/test/test_jit.py Sat Jul 25 12:05:06 2009
@@ -37,6 +37,7 @@
i = i + 1
return i
self.interpret(f, [])
+ self.check_loops(new_with_vtable=0)
def test_bridge(self):
def f(a, b):
@@ -51,6 +52,7 @@
return total
self.interpret(f, [1, 10])
+ self.check_loops(new_with_vtable=0)
def test_bridge_bad_case(self):
def f(a, b):
@@ -64,4 +66,8 @@
return a + b
self.interpret(f, [1, 10])
-
+ self.check_loops(new_with_vtable=1) # XXX should eventually be 0?
+ # I think it should be either 0 or 2, 1 makes little sense
+ # If the loop after entering goes first time to the bridge, a
+ # is rewrapped again, without preserving the identity. I'm not
+ # sure how bad it is
More information about the Pypy-commit
mailing list