[pypy-svn] r21080 - pypy/dist/pypy/jit/test
arigo at codespeak.net
arigo at codespeak.net
Mon Dec 12 15:58:44 CET 2005
Author: arigo
Date: Mon Dec 12 15:58:43 2005
New Revision: 21080
Modified:
pypy/dist/pypy/jit/test/test_jit_tl.py
Log:
Use the LLAbstractInterp inlining instead of the backendopt one in this test.
Modified: pypy/dist/pypy/jit/test/test_jit_tl.py
==============================================================================
--- pypy/dist/pypy/jit/test/test_jit_tl.py (original)
+++ pypy/dist/pypy/jit/test/test_jit_tl.py Mon Dec 12 15:58:43 2005
@@ -3,10 +3,10 @@
import py
from pypy.translator.translator import TranslationContext
from pypy.jit import tl
-from pypy.jit.llabstractinterp import LLAbstractInterp
+from pypy.jit.llabstractinterp import LLAbstractInterp, Policy
from pypy.rpython.rstr import string_repr
from pypy.rpython.llinterp import LLInterpreter
-from pypy.translator.backendopt import inline
+#from pypy.translator.backendopt import inline
#py.test.skip("in-progress")
@@ -15,14 +15,14 @@
t.buildannotator().build_types(tl.interp, [str, int])
rtyper = t.buildrtyper()
rtyper.specialize()
- inline.auto_inlining(t, 0.3)
+ #inline.auto_inlining(t, 0.3)
mod.graph1 = t.graphs[0]
mod.llinterp = LLInterpreter(rtyper)
def jit_tl(code):
- interp = LLAbstractInterp()
+ interp = LLAbstractInterp(Policy(inlining=True))
hints = {0: string_repr.convert_const(code),
1: 0}
graph2 = interp.eval(graph1, hints)
More information about the Pypy-commit
mailing list