[pypy-svn] r27505 - pypy/dist/pypy/rpython/memory

mwh at codespeak.net mwh at codespeak.net
Sat May 20 15:00:32 CEST 2006


Author: mwh
Date: Sat May 20 15:00:30 2006
New Revision: 27505

Modified:
   pypy/dist/pypy/rpython/memory/gctransform.py
Log:
allow the stacklessgctransformer to annotate additional helpers.


Modified: pypy/dist/pypy/rpython/memory/gctransform.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/gctransform.py	(original)
+++ pypy/dist/pypy/rpython/memory/gctransform.py	Sat May 20 15:00:30 2006
@@ -903,6 +903,8 @@
                                  annmodel.s_None,
                                  minimal_transform = False)
 
+        self.annotate_more_helpers(annhelper)
+
         annhelper.finish()   # at this point, annotate all mix-level helpers
         annhelper.backend_optimize()
 
@@ -919,6 +921,9 @@
             FLDTYPE = getattr(HDR, fldname)
             fields.append((fldname, FLDTYPE))
 
+    def annotate_more_helpers(self, annhelper):
+        pass
+
     def build_stack_root_iterator(self):
         gcdata = self.gcdata
         sizeofaddr = llmemory.sizeof(llmemory.Address)
@@ -1271,6 +1276,9 @@
         # nothing left to inline during code generation
         self.inline = False
 
+    def annotate_more_helpers(self, annhelper):
+        pass
+
     def replace_and_inline_malloc_already_now(self):
         for graph in self.translator.graphs:
             any_malloc = False



More information about the Pypy-commit mailing list