[pypy-svn] r67584 - pypy/branch/agressive-inlining/pypy/jit/metainterp

pedronis at codespeak.net pedronis at codespeak.net
Tue Sep 8 16:08:38 CEST 2009


Author: pedronis
Date: Tue Sep  8 16:08:37 2009
New Revision: 67584

Modified:
   pypy/branch/agressive-inlining/pypy/jit/metainterp/warmspot.py
Log:
fix :(



Modified: pypy/branch/agressive-inlining/pypy/jit/metainterp/warmspot.py
==============================================================================
--- pypy/branch/agressive-inlining/pypy/jit/metainterp/warmspot.py	(original)
+++ pypy/branch/agressive-inlining/pypy/jit/metainterp/warmspot.py	Tue Sep  8 16:08:37 2009
@@ -26,7 +26,9 @@
 # ____________________________________________________________
 # Bootstrapping
 
-def apply_jit(translator, backend_name="auto", debug_level="steps", **kwds):
+def apply_jit(translator, backend_name="auto", debug_level="steps",
+              inline=False,
+              **kwds):
     if 'CPUClass' not in kwds:
         from pypy.jit.backend.detect_cpu import getcpuclass
         kwds['CPUClass'] = getcpuclass(backend_name)
@@ -38,9 +40,9 @@
     warmrunnerdesc = WarmRunnerDesc(translator,
                                     translate_support_code=True,
                                     listops=True,
-                                    #inline=True,
                                     profile=profile,
                                     **kwds)
+    warmrunnerdesc.state.set_param_inlining(inline)    
     warmrunnerdesc.finish()
     translator.warmrunnerdesc = warmrunnerdesc    # for later debugging
 



More information about the Pypy-commit mailing list