[pypy-svn] r70573 - pypy/trunk/pypy/jit/backend/x86

fijal at codespeak.net fijal at codespeak.net
Thu Jan 14 10:20:06 CET 2010


Author: fijal
Date: Thu Jan 14 10:20:06 2010
New Revision: 70573

Modified:
   pypy/trunk/pypy/jit/backend/x86/assembler.py
Log:
Port 70553 and 70554 from jit-profiling branch.
Improves debugging of assembler backend (associates loops with addresses)


Modified: pypy/trunk/pypy/jit/backend/x86/assembler.py
==============================================================================
--- pypy/trunk/pypy/jit/backend/x86/assembler.py	(original)
+++ pypy/trunk/pypy/jit/backend/x86/assembler.py	Thu Jan 14 10:20:06 2010
@@ -171,6 +171,8 @@
         self._patch_stackadjust(adr_stackadjust, frame_depth+param_depth)
         looptoken._x86_frame_depth = frame_depth
         looptoken._x86_param_depth = param_depth
+        debug_print("Loop #", looptoken.number, "has address",
+                    looptoken._x86_loop_code, "to", self.mc.tell())
 
     def assemble_bridge(self, faildescr, inputargs, operations):
         self.make_sure_mc_exists()
@@ -193,6 +195,9 @@
             faildescr._x86_bridge_param_depth = param_depth
         # patch the jump from original guard
         self.patch_jump(faildescr, adr_bridge)
+        debug_print("Bridge out of guard",
+                    self.cpu.get_fail_descr_number(faildescr),
+                    "has address", adr_bridge, "to", self.mc.tell())
 
     def patch_jump(self, faildescr, adr_new_target):
         adr_jump_offset = faildescr._x86_adr_jump_offset



More information about the Pypy-commit mailing list