Commits

Antonio Cuni  committed 46d4d36 Draft

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

  • Participants
  • Parent commits 5ecd8a0
  • Branches core-only-tracing

Comments (0)

Files changed (1)

File pypy/module/pypyjit/policy.py

 
     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')