[pypy-commit] pypy core-only-tracing: (antocuni, arigo): mark more modules as is_core, because they really contain extensions to pyopcode.py

antocuni noreply at buildbot.pypy.org
Fri Mar 2 11:37:57 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
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')


More information about the pypy-commit mailing list