[pypy-svn] r70553 - pypy/branch/jit-profiling/pypy/jit/backend/x86

fijal at codespeak.net fijal at codespeak.net
Wed Jan 13 12:19:08 CET 2010


Author: fijal
Date: Wed Jan 13 12:19:08 2010
New Revision: 70553

Modified:
   pypy/branch/jit-profiling/pypy/jit/backend/x86/assembler.py
Log:
Improve debugging


Modified: pypy/branch/jit-profiling/pypy/jit/backend/x86/assembler.py
==============================================================================
--- pypy/branch/jit-profiling/pypy/jit/backend/x86/assembler.py	(original)
+++ pypy/branch/jit-profiling/pypy/jit/backend/x86/assembler.py	Wed Jan 13 12:19:08 2010
@@ -171,6 +171,7 @@
         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)
 
     def assemble_bridge(self, faildescr, inputargs, operations):
         self.make_sure_mc_exists()
@@ -193,6 +194,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)
 
     def patch_jump(self, faildescr, adr_new_target):
         adr_jump_offset = faildescr._x86_adr_jump_offset



More information about the Pypy-commit mailing list