[pypy-svn] r79609 - pypy/branch/jit-free-asm/pypy/jit/backend/llsupport

arigo at codespeak.net arigo at codespeak.net
Sun Nov 28 14:09:35 CET 2010


Author: arigo
Date: Sun Nov 28 14:09:33 2010
New Revision: 79609

Modified:
   pypy/branch/jit-free-asm/pypy/jit/backend/llsupport/gc.py
Log:
Write code in a style that matches directly the comment above.


Modified: pypy/branch/jit-free-asm/pypy/jit/backend/llsupport/gc.py
==============================================================================
--- pypy/branch/jit-free-asm/pypy/jit/backend/llsupport/gc.py	(original)
+++ pypy/branch/jit-free-asm/pypy/jit/backend/llsupport/gc.py	Sun Nov 28 14:09:33 2010
@@ -360,10 +360,12 @@
         # 'item' points to one of the entries.  Because the whole array
         # is sorted, we know that it points either to the first entry we
         # want to kill, or to the previous entry.
+        if item.address[0] < startaddr:
+            item += asmgcroot.arrayitemsize    # go forward one entry
+            assert item == gcmapend or item.address[0] >= startaddr
         while item != gcmapend and item.address[0] < stopaddr:
-            if item.address[0] >= startaddr:
-                item.address[1] = llmemory.NULL
-                self._gcmap_deadentries += 1
+            item.address[1] = llmemory.NULL
+            self._gcmap_deadentries += 1
             item += asmgcroot.arrayitemsize
 
     def get_basic_shape(self, is_64_bit=False):



More information about the Pypy-commit mailing list