[pypy-svn] r69032 - pypy/branch/jit-less-inlining/pypy/jit/metainterp

cfbolz at codespeak.net cfbolz at codespeak.net
Fri Nov 6 14:07:06 CET 2009


Author: cfbolz
Date: Fri Nov  6 14:07:06 2009
New Revision: 69032

Modified:
   pypy/branch/jit-less-inlining/pypy/jit/metainterp/warmspot.py
Log:
(pedronis, cfbolz): oops, can_inline can be None


Modified: pypy/branch/jit-less-inlining/pypy/jit/metainterp/warmspot.py
==============================================================================
--- pypy/branch/jit-less-inlining/pypy/jit/metainterp/warmspot.py	(original)
+++ pypy/branch/jit-less-inlining/pypy/jit/metainterp/warmspot.py	Fri Nov  6 14:07:06 2009
@@ -296,8 +296,9 @@
             maybe_enter_jit._always_inline_ = True
         self.maybe_enter_jit_fn = maybe_enter_jit
 
+        can_inline = self.jitdriver.can_inline
         def maybe_enter_from_start(*args):
-            if not self.jitdriver.can_inline(*args[:self.num_green_args]):
+            if can_inline is not None and not can_inline(*args[:self.num_green_args]):
                 maybe_compile_and_run(*args)
         maybe_enter_from_start._always_inline_ = True
         self.maybe_enter_from_start_fn = maybe_enter_from_start



More information about the Pypy-commit mailing list