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

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


Author: fijal
Date: Fri Jun  5 02:04:15 2009
New Revision: 65601

Modified:
   pypy/branch/pyjitpl5-experiments/pypy/interpreter/pyopcode.py
Log:
jit should not see this attribute


Modified: pypy/branch/pyjitpl5-experiments/pypy/interpreter/pyopcode.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/interpreter/pyopcode.py	(original)
+++ pypy/branch/pyjitpl5-experiments/pypy/interpreter/pyopcode.py	Fri Jun  5 02:04:15 2009
@@ -888,10 +888,13 @@
         arguments = f.popvalues(n_arguments)
         args = Arguments(f.space, arguments, keywords, w_star, w_starstar)
         w_function  = f.popvalue()
-        if f.is_being_profiled and is_builtin_code(w_function):
-            w_result = f.space.call_args_and_c_profile(f, w_function, args)
-        else:
+        if we_are_jitted():
             w_result = f.space.call_args(w_function, args)
+        else:
+            if f.is_being_profiled and is_builtin_code(w_function):
+                w_result = f.space.call_args_and_c_profile(f, w_function, args)
+            else:
+                w_result = f.space.call_args(w_function, args)
         rstack.resume_point("call_function", f, returns=w_result)
         f.pushvalue(w_result)
         



More information about the Pypy-commit mailing list