[pypy-svn] r72101 - pypy/branch/multijit/pypy/rpython/memory/gctransform

arigo at codespeak.net arigo at codespeak.net
Thu Mar 11 14:30:52 CET 2010


Author: arigo
Date: Thu Mar 11 14:30:51 2010
New Revision: 72101

Modified:
   pypy/branch/multijit/pypy/rpython/memory/gctransform/framework.py
Log:
Old stuff.


Modified: pypy/branch/multijit/pypy/rpython/memory/gctransform/framework.py
==============================================================================
--- pypy/branch/multijit/pypy/rpython/memory/gctransform/framework.py	(original)
+++ pypy/branch/multijit/pypy/rpython/memory/gctransform/framework.py	Thu Mar 11 14:30:51 2010
@@ -775,7 +775,9 @@
     def gct_gc_writebarrier_before_copy(self, hop):
         if not hasattr(self, 'wb_before_copy_ptr'):
             # no write barrier needed in that case
-            return rmodel.inputconst(lltype.Bool, True)
+            hop.genop('same_as', [rmodel.inputconst(lltype.Bool, True)],
+                      resultvar=op.result)
+            return
         op = hop.spaceop
         source_addr = hop.genop('cast_ptr_to_adr', [op.args[0]],
                                 resulttype=llmemory.Address)



More information about the Pypy-commit mailing list