[pypy-commit] pypy stmgc-c4: add some debug prints to stmrewrite (print ops that use the fallback to

Raemi noreply at buildbot.pypy.org
Tue Nov 5 12:36:12 CET 2013


Author: Remi Meier <remi.meier at gmail.com>
Branch: stmgc-c4
Changeset: r67847:6823f3f7f83a
Date: 2013-11-05 09:59 +0100
http://bitbucket.org/pypy/pypy/changeset/6823f3f7f83a/

Log:	add some debug prints to stmrewrite (print ops that use the fallback
	to inevitable, intentionally or not)

diff --git a/rpython/jit/backend/llsupport/stmrewrite.py b/rpython/jit/backend/llsupport/stmrewrite.py
--- a/rpython/jit/backend/llsupport/stmrewrite.py
+++ b/rpython/jit/backend/llsupport/stmrewrite.py
@@ -5,6 +5,8 @@
 from rpython.jit.metainterp.history import BoxPtr, ConstPtr, ConstInt
 from rpython.rlib.objectmodel import specialize
 from rpython.rlib.objectmodel import we_are_translated
+from rpython.rlib.debug import (have_debug_prints, debug_start, debug_stop,
+                                debug_print)
 
 #
 # STM Support
@@ -38,6 +40,7 @@
         
 
     def rewrite(self, operations):
+        debug_start("jit-stmrewrite-ops")
         # overridden method from parent class
         #
         insert_transaction_break = False
@@ -175,10 +178,12 @@
                 continue
             # ----------  fall-back  ----------
             self.fallback_inevitable(op)
+            debug_print("fallback for", op.repr())
             #
 
         # call_XX without guard_not_forced?
         assert not insert_transaction_break
+        debug_stop("jit-stmrewrite-ops")
         return self.newops
 
     def emitting_an_operation_that_can_collect(self):


More information about the pypy-commit mailing list