Author: Antonio Cuni <[email protected]>
Branch: core-only-tracing
Changeset: r53101:46d4d363c415
Date: 2012-01-20 17:26 +0100
http://bitbucket.org/pypy/pypy/changeset/46d4d363c415/

Log:    (antocuni, arigo): mark more modules as is_core, because they really
        contain extensions to pyopcode.py

diff --git a/pypy/module/pypyjit/policy.py b/pypy/module/pypyjit/policy.py
--- a/pypy/module/pypyjit/policy.py
+++ b/pypy/module/pypyjit/policy.py
@@ -153,5 +153,10 @@
 
     def is_core_function(self, func):
         mod = func.__module__ or '?'
-        is_interpreter = mod.startswith('pypy.interpreter.')
-        return is_interpreter or mod.startswith('pypy.module.pypyjit.')
+        fname = func.func_name
+        is_interpreter = (mod.startswith('pypy.interpreter.') or
+                          mod.startswith('pypy.objspace.std.frame') or
+                          mod.startswith('pypy.objspace.std.callmethod') or
+                          (mod.startswith('pypy.objspace.std.mapdict') and
+                           (fname.startswith('LOOKUP') or 
fname.startswith('LOAD'))))
+        return is_interpreter or mod.startswith('pypy.module.pypyjit')
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to