[pypy-svn] r22190 - in pypy/dist/pypy/jit: . test

pedronis at codespeak.net pedronis at codespeak.net
Sun Jan 15 00:51:11 CET 2006


Author: pedronis
Date: Sun Jan 15 00:51:10 2006
New Revision: 22190

Modified:
   pypy/dist/pypy/jit/llabstractinterp.py
   pypy/dist/pypy/jit/test/test_jit_tl.py
Log:
test_jit_tl passes with oopspecs



Modified: pypy/dist/pypy/jit/llabstractinterp.py
==============================================================================
--- pypy/dist/pypy/jit/llabstractinterp.py	(original)
+++ pypy/dist/pypy/jit/llabstractinterp.py	Sun Jan 15 00:51:10 2006
@@ -153,6 +153,8 @@
 
 # hint-driven policy
 best_policy = Policy(inlining=True, const_propagate=True, concrete_args=False)
+best_policy_oopspec = Policy(inlining=True, const_propagate=True, concrete_args=False,
+                             oopspec=True)
 
 
 class LLAbstractInterp(object):

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	Sun Jan 15 00:51:10 2006
@@ -3,7 +3,7 @@
 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, best_policy_oopspec
 from pypy.rpython.rstr import string_repr
 from pypy.rpython.llinterp import LLInterpreter
 #from pypy.translator.backendopt import inline
@@ -22,7 +22,7 @@
     
 
 def jit_tl(code):
-    interp = LLAbstractInterp()
+    interp = LLAbstractInterp(policy=best_policy_oopspec)
     hints = {0: string_repr.convert_const(code),
              1: 0}
     graph2 = interp.eval(graph1, hints)



More information about the Pypy-commit mailing list