[pypy-svn] r67765 - pypy/trunk/pypy/translator/c

arigo at codespeak.net arigo at codespeak.net
Fri Sep 18 15:05:36 CEST 2009


Author: arigo
Date: Fri Sep 18 15:05:35 2009
New Revision: 67765

Added:
   pypy/trunk/pypy/translator/c/gc.py.merge.tmp
      - copied, changed from r67762, pypy/trunk/pypy/translator/c/gc.py
Log:
merging of svn+ssh://codespeak.net/svn/pypy/branch/asmgcroot-callback/pypy/translator/c/gc.py
revisions 67691 to 67762:

    ------------------------------------------------------------------------
    r67705 | arigo | 2009-09-15 21:33:29 +0200 (Tue, 15 Sep 2009) | 4 lines
    
    The blame goes to the 'keepalive' operation that was explicitly
    used in the test.  It did not have the correct semantic effect
    with gcrootfinder=asmgcc...
    
    ------------------------------------------------------------------------
    r67692 | arigo | 2009-09-15 15:38:22 +0200 (Tue, 15 Sep 2009) | 3 lines
    
    A branch in which to try to implement callback support
    in --gcrootfinder=asmgcc.
    
    ------------------------------------------------------------------------


Copied: pypy/trunk/pypy/translator/c/gc.py.merge.tmp (from r67762, pypy/trunk/pypy/translator/c/gc.py)
==============================================================================
--- pypy/trunk/pypy/translator/c/gc.py	(original)
+++ pypy/trunk/pypy/translator/c/gc.py.merge.tmp	Fri Sep 18 15:05:35 2009
@@ -322,6 +322,9 @@
 class AsmGcRootFrameworkGcPolicy(FrameworkGcPolicy):
     transformerclass = asmgcroot.AsmGcRootFrameworkGCTransformer
 
+    def GC_KEEPALIVE(self, funcgen, v):
+        return 'pypy_asm_keepalive(%s);' % funcgen.expr(v)
+
 
 name_to_gcpolicy = {
     'boehm': BoehmGcPolicy,



More information about the Pypy-commit mailing list