[pypy-commit] pypy jitframe-on-heap: remove those debug prints

fijal noreply at buildbot.pypy.org
Sat Feb 23 14:58:02 CET 2013


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: jitframe-on-heap
Changeset: r61679:1f412de06308
Date: 2013-02-23 15:57 +0200
http://bitbucket.org/pypy/pypy/changeset/1f412de06308/

Log:	remove those debug prints

diff --git a/rpython/jit/backend/llsupport/gcmap.py b/rpython/jit/backend/llsupport/gcmap.py
--- a/rpython/jit/backend/llsupport/gcmap.py
+++ b/rpython/jit/backend/llsupport/gcmap.py
@@ -3,14 +3,12 @@
 from rpython.jit.backend.llsupport import jitframe
 from rpython.rlib.rarithmetic import r_uint
 from rpython.jit.backend.llsupport.symbolic import WORD
-from rpython.rlib.debug import debug_print
 
 def allocate_gcmap(assembler, frame_depth, fixed_size):
     size = frame_depth + fixed_size
     malloc_size = (size // WORD // 8 + 1) + 1
     rawgcmap = assembler.datablockwrapper.malloc_aligned(WORD * malloc_size,
                                                     WORD)
-    debug_print("gcmap: %x, len %d" % (rawgcmap, malloc_size - 1))
     # set the length field
     rffi.cast(rffi.CArrayPtr(lltype.Signed), rawgcmap)[0] = malloc_size - 1
     gcmap = rffi.cast(lltype.Ptr(jitframe.GCMAP), rawgcmap)
diff --git a/rpython/jit/backend/x86/regalloc.py b/rpython/jit/backend/x86/regalloc.py
--- a/rpython/jit/backend/x86/regalloc.py
+++ b/rpython/jit/backend/x86/regalloc.py
@@ -29,7 +29,6 @@
 from rpython.jit.backend.x86.arch import IS_X86_32, IS_X86_64
 from rpython.jit.backend.x86 import rx86
 from rpython.rlib.rarithmetic import r_longlong, r_uint
-from rpython.rlib.debug import debug_print, debug_start, debug_stop
 
 class X86RegisterManager(RegisterManager):
 
@@ -863,7 +862,6 @@
     def get_gcmap(self, forbidden_regs=[], noregs=False):
         frame_depth = self.fm.get_frame_depth()
         gcmap = allocate_gcmap(self.assembler, frame_depth, JITFRAME_FIXED_SIZE)
-        debug_start("jit-backend-gcmap")
         for box, loc in self.rm.reg_bindings.iteritems():
             if loc in forbidden_regs:
                 continue
@@ -877,9 +875,6 @@
                 assert isinstance(loc, FrameLoc)
                 val = loc.position + JITFRAME_FIXED_SIZE
                 gcmap[val // WORD // 8] |= r_uint(1) << (val % (WORD * 8))
-        for i in range(len(gcmap)):
-            debug_print(str(gcmap[i]))
-        debug_stop('jit-backend-gcmap')
         return gcmap
 
 


More information about the pypy-commit mailing list