[pypy-svn] r64697 - pypy/branch/pyjitpl5/pypy/jit/tl

arigo at codespeak.net arigo at codespeak.net
Sun Apr 26 18:22:40 CEST 2009


Author: arigo
Date: Sun Apr 26 18:22:38 2009
New Revision: 64697

Modified:
   pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_child.py
   pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py
Log:
Updates.


Modified: pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_child.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_child.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_child.py	Sun Apr 26 18:22:38 2009
@@ -1,6 +1,7 @@
 from pypy.conftest import option
 from pypy.rpython.lltypesystem import lltype
 from pypy.jit.metainterp import warmspot
+from pypy.jit.metainterp.simple_optimize import Optimizer
 from pypy.module.pypyjit.policy import PyPyJitPolicy
 
 # Current output: http://paste.pocoo.org/show/106540/
@@ -34,7 +35,9 @@
     interp.heap.malloc_nonmovable = returns_null     # XXX
 
     print 'warmspot.jittify_and_run() started...'
+    from pypy.jit.backend.llgraph.runner import LLtypeCPU
     policy = PyPyJitPolicy(interp.typer.annotator.translator)
     option.view = True
     warmspot.jittify_and_run(interp, graph, [], policy=policy,
-                             listops=True)
+                             listops=True, CPUClass=LLtypeCPU,
+                             optimizer=Optimizer)

Modified: pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py	Sun Apr 26 18:22:38 2009
@@ -1,14 +1,10 @@
-def simple_loop():
-    print "simple loop"
-
-    i = 0
-    while i < 100:
-        i = i + 3
-    print i
-    assert i == 102
+def do():
+    import test.regrtest, sys
+    sys.argv = ['regrtest.py', 'test_builtin']
+    test.regrtest.main()
 
 try:
-    simple_loop()
+    do()
 except Exception, e:
     print '/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\'
     import sys



More information about the Pypy-commit mailing list