[pypy-svn] r23115 - pypy/branch/genc-gc-refactoring

cfbolz at codespeak.net cfbolz at codespeak.net
Tue Feb 7 18:01:04 CET 2006


Author: cfbolz
Date: Tue Feb  7 18:01:01 2006
New Revision: 23115

Modified:
   pypy/branch/genc-gc-refactoring/primitive.py
Log:
the GCHeaderOffset is 0 too


Modified: pypy/branch/genc-gc-refactoring/primitive.py
==============================================================================
--- pypy/branch/genc-gc-refactoring/primitive.py	(original)
+++ pypy/branch/genc-gc-refactoring/primitive.py	Tue Feb  7 18:01:01 2006
@@ -2,6 +2,7 @@
 from pypy.rpython.lltypesystem.lltype import *
 from pypy.rpython.lltypesystem.llmemory import Address, fakeaddress, \
      AddressOffset, ItemOffset, ArrayItemsOffset, FieldOffset
+from pypy.rpython.memory.gc import GCHeaderOffset
 from pypy.rpython.memory.lladdress import NULL
 
 # ____________________________________________________________
@@ -23,6 +24,8 @@
                 db.gettype(value.TYPE.TO).replace('@', ''))
         elif type(value) == AddressOffset:
             return '0'
+        elif type(value) == GCHeaderOffset:
+            return '0'
         else:
             raise Exception("unimplemented symbolic %r"%value)
     if value == -sys.maxint-1:   # blame C



More information about the Pypy-commit mailing list