[pypy-svn] r65989 - pypy/branch/pyjitpl5/pypy/jit/metainterp
fijal at codespeak.net
fijal at codespeak.net
Fri Jun 26 06:24:26 CEST 2009
Author: fijal
Date: Fri Jun 26 06:24:24 2009
New Revision: 65989
Modified:
pypy/branch/pyjitpl5/pypy/jit/metainterp/warmspot.py
Log:
reuse the state's unwrap_greenkey
Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/warmspot.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/warmspot.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/warmspot.py Fri Jun 26 06:24:24 2009
@@ -32,7 +32,6 @@
def apply_jit(translator, backend_name="auto", **kwds):
from pypy.jit.metainterp import optimize4 as Optimizer
- #from pypy.jit.metainterp.simple_optimize import Optimizer
if 'CPUClass' not in kwds:
from pypy.jit.backend.detect_cpu import getcpuclass
kwds['CPUClass'] = getcpuclass(backend_name)
@@ -464,18 +463,8 @@
def can_inline_callable(greenkey):
return True
else:
- def unwrap_greenkey(greenkey):
- greenargs = ()
- i = 0
- for TYPE in self.green_args_spec:
- value = unwrap(TYPE, greenkey[i])
- greenargs += (value,)
- i = i + 1
- return greenargs
- unwrap_greenkey._always_inline_ = True
-
def can_inline_callable(greenkey):
- args = unwrap_greenkey(greenkey)
+ args = self.state.unwrap_greenkey(greenkey)
return support.maybe_on_top_of_llinterp(rtyper, self.can_inline_ptr)(*args)
self.can_inline_callable = can_inline_callable
More information about the Pypy-commit
mailing list