Author: Hakan Ardo <[email protected]>
Branch: jit-usable_retrace_3
Changeset: r59631:646719fca9fc
Date: 2012-12-30 15:59 +0100
http://bitbucket.org/pypy/pypy/changeset/646719fca9fc/
Log: fix?
diff --git a/pypy/jit/metainterp/test/support.py
b/pypy/jit/metainterp/test/support.py
--- a/pypy/jit/metainterp/test/support.py
+++ b/pypy/jit/metainterp/test/support.py
@@ -180,7 +180,8 @@
def check_target_token_count(self, count):
tokens = get_stats().get_all_jitcell_tokens()
- n = sum ([len(t.target_tokens) for t in tokens])
+ n = sum ([len(t.target_tokens) for t in tokens if t.target_tokens is
not None])
+ # XXX: is target_tokens == None a good idea?
assert n == count
def check_enter_count(self, count):
diff --git a/pypy/jit/metainterp/test/test_virtual.py
b/pypy/jit/metainterp/test/test_virtual.py
--- a/pypy/jit/metainterp/test/test_virtual.py
+++ b/pypy/jit/metainterp/test/test_virtual.py
@@ -909,6 +909,7 @@
def __init__(self, val):
self.val = val
myjitdriver = JitDriver(greens = ['pc'], reds = ['n', 'sa', 'i', 'j'])
+ # 0123456
bytecode = "iajb+JI"
def f(n):
pc = sa = 0
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit