[pypy-svn] r65602 - pypy/branch/pyjitpl5-experiments/pypy/interpreter

fijal at codespeak.net fijal at codespeak.net
Fri Jun 5 02:16:22 CEST 2009


Author: fijal
Date: Fri Jun  5 02:16:21 2009
New Revision: 65602

Modified:
   pypy/branch/pyjitpl5-experiments/pypy/interpreter/baseobjspace.py
Log:
Another place which jit should not see


Modified: pypy/branch/pyjitpl5-experiments/pypy/interpreter/baseobjspace.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/interpreter/baseobjspace.py	(original)
+++ pypy/branch/pyjitpl5-experiments/pypy/interpreter/baseobjspace.py	Fri Jun  5 02:16:21 2009
@@ -9,6 +9,7 @@
 from pypy.rlib.objectmodel import we_are_translated
 from pypy.rlib.debug import make_sure_not_resized
 from pypy.rlib.timer import DummyTimer, Timer
+from pypy.rlib.jit import we_are_jitted
 import os, sys
 
 __all__ = ['ObjSpace', 'OperationError', 'Wrappable', 'W_Root']
@@ -711,7 +712,8 @@
 
     def call_valuestack(self, w_func, nargs, frame):
         from pypy.interpreter.function import Function, Method, is_builtin_code
-        if frame.is_being_profiled and is_builtin_code(w_func):
+        if (not we_are_jitted() and frame.is_being_profiled and
+            is_builtin_code(w_func)):
             # XXX: this code is copied&pasted :-( from the slow path below
             # call_valuestack().
             args = frame.make_arguments(nargs)



More information about the Pypy-commit mailing list