[pypy-svn] r53347 - pypy/branch/jit-hotpath/pypy/jit/codegen/demo

fijal at codespeak.net fijal at codespeak.net
Fri Apr 4 19:32:36 CEST 2008


Author: fijal
Date: Fri Apr  4 19:32:34 2008
New Revision: 53347

Modified:
   pypy/branch/jit-hotpath/pypy/jit/codegen/demo/conftest.py
   pypy/branch/jit-hotpath/pypy/jit/codegen/demo/support.py
Log:
adapt this to run on ia32 backend


Modified: pypy/branch/jit-hotpath/pypy/jit/codegen/demo/conftest.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/jit/codegen/demo/conftest.py	(original)
+++ pypy/branch/jit-hotpath/pypy/jit/codegen/demo/conftest.py	Fri Apr  4 19:32:34 2008
@@ -11,7 +11,8 @@
                help="choose a fixed random seed"),
         Option('--backend', action="store",
                default='llgraph',
-               choices=['llgraph', 'dump', 'ppc', 'i386', 'llvm', 'ppcfew'],
+               choices=['llgraph', 'dump', 'ppc', 'i386', 'ia32', 'llvm',
+                        'ppcfew'],
                dest="backend",
                help="select the backend to run the functions with"),
         Option('--nb-blocks', action="store", type="int",

Modified: pypy/branch/jit-hotpath/pypy/jit/codegen/demo/support.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/jit/codegen/demo/support.py	(original)
+++ pypy/branch/jit-hotpath/pypy/jit/codegen/demo/support.py	Fri Apr  4 19:32:34 2008
@@ -20,6 +20,10 @@
     from pypy.jit.codegen.i386.rgenop import RI386GenOp as RGenOp
     from pypy.jit.codegen.i386.codebuf import machine_code_dumper
     run_in_subprocess = True
+elif demo_conftest.option.backend == 'ia32':
+    from pypy.jit.codegen.ia32.rgenop import RI386GenOp as RGenOp
+    from pypy.jit.codegen.i386.codebuf import machine_code_dumper
+    run_in_subprocess = True
 elif demo_conftest.option.backend == 'ppc':
     from pypy.jit.codegen.ppc.rgenop import RPPCGenOp as RGenOp
     run_in_subprocess = True



More information about the Pypy-commit mailing list