[pypy-commit] pypy jit-usable_retrace_2: fix test (see comment)
hakanardo
noreply at buildbot.pypy.org
Thu Jan 5 18:26:37 CET 2012
Author: Hakan Ardo <hakan at debian.org>
Branch: jit-usable_retrace_2
Changeset: r51033:ed9ad0e9eacc
Date: 2012-01-04 20:25 +0100
http://bitbucket.org/pypy/pypy/changeset/ed9ad0e9eacc/
Log: fix test (see comment)
diff --git a/pypy/jit/metainterp/test/test_send.py b/pypy/jit/metainterp/test/test_send.py
--- a/pypy/jit/metainterp/test/test_send.py
+++ b/pypy/jit/metainterp/test/test_send.py
@@ -377,10 +377,11 @@
res = self.meta_interp(f, [198],
policy=StopAtXPolicy(State.externfn.im_func))
assert res == f(198)
- # we get four TargetTokens: one for each of the 3 getvalue functions,
- # and one entering from the interpreter (the preamble)
+ # We get three TargetTokens: preamble, first loop specizlized to z=25
+ # and retraced loop not specialized. The retraced loop can be used for
+ # both z=2 and z=1001 as retraces are not specialized to constants.
self.check_jitcell_token_count(1)
- self.check_target_token_count(4)
+ self.check_target_token_count(3)
def test_two_behaviors(self):
py.test.skip("XXX fix me!!!!!!! problem in optimize.py")
More information about the pypy-commit
mailing list