[pypy-svn] r34130 - pypy/dist/pypy/jit/hintannotator/test
rxe at codespeak.net
rxe at codespeak.net
Fri Nov 3 17:22:40 CET 2006
Author: rxe
Date: Fri Nov 3 17:22:37 2006
New Revision: 34130
Modified:
pypy/dist/pypy/jit/hintannotator/test/test_annotator.py
Log:
ensure we specialize by adding another call case. - (arre, rxe)
Modified: pypy/dist/pypy/jit/hintannotator/test/test_annotator.py
==============================================================================
--- pypy/dist/pypy/jit/hintannotator/test/test_annotator.py (original)
+++ pypy/dist/pypy/jit/hintannotator/test/test_annotator.py Fri Nov 3 17:22:37 2006
@@ -480,8 +480,10 @@
def ll_function(n, i):
l = getlist(n)
- l = hint(l, deepfreeze=True)
+ l2 = ll_get(l, 0)
+
+ l = hint(l, deepfreeze=True)
res = ll_get(l, i)
return res
@@ -490,14 +492,13 @@
assert hs.concretetype == lltype.Signed
ll_get_graph = graphof(ha.base_translator, ll_get)
gdesc = ha.bookkeeper.getdesc(ll_get_graph)
- assert len(gdesc._cache) == 1
+ assert len(gdesc._cache) == 2
assert 'xDxx' in gdesc._cache
v1, v2 = gdesc._cache['xDxx'].getargs()
assert isinstance(ha.binding(v1), SomeLLAbstractConstant)
assert isinstance(ha.binding(v2), SomeLLAbstractConstant)
assert ha.binding(v1).deepfrozen
- assert not ha.binding(v2).is_fixed()
def test_propagate_fixing_across_func_arguments():
def ll_func2(z):
More information about the Pypy-commit
mailing list