[pypy-svn] r63667 - pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp

fijal at codespeak.net fijal at codespeak.net
Sun Apr 5 06:14:37 CEST 2009


Author: fijal
Date: Sun Apr  5 06:14:36 2009
New Revision: 63667

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/warmspot.py
Log:
grrr. fix translation (armin: guess why)


Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/warmspot.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/warmspot.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/warmspot.py	Sun Apr  5 06:14:36 2009
@@ -22,11 +22,14 @@
 # ____________________________________________________________
 # Bootstrapping
 
+from pypy.jit.metainterp.simple_optimize import Optimizer
+
 def apply_jit(translator, **kwds):
     from pypy.jit.backend.detect_cpu import getcpuclass
     warmrunnerdesc = WarmRunnerDesc(translator, CPUClass=getcpuclass(),
                                     translate_support_code=True,
                                     listops=True,
+                                    optimizer=Optimizer,
                                     **kwds)
     warmrunnerdesc.finish()
 
@@ -409,13 +412,13 @@
             i = 0
             for name in green_args_names:
                 setattr(self, 'green_' + name, greenargs[i])
-                i += 1
+                i = i + 1
         def equalkey(self, *greenargs):
             i = 0
             for name in green_args_names:
                 if getattr(self, 'green_' + name) != greenargs[i]:
                     return False
-                i += 1
+                i = i + 1
             return True
         def fill_boxes(self, *redargs):
             boxes = self.bridge.inputargs



More information about the Pypy-commit mailing list