[pypy-svn] r23065 - in pypy/dist/pypy/rpython/memory: . test

cfbolz at codespeak.net cfbolz at codespeak.net
Mon Feb 6 11:51:16 CET 2006


Author: cfbolz
Date: Mon Feb  6 11:51:15 2006
New Revision: 23065

Modified:
   pypy/dist/pypy/rpython/memory/gctransform.py
   pypy/dist/pypy/rpython/memory/test/test_gctransform.py
Log:
remove superfluous argument to static_deallocation_graph_for_type


Modified: pypy/dist/pypy/rpython/memory/gctransform.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/gctransform.py	(original)
+++ pypy/dist/pypy/rpython/memory/gctransform.py	Mon Feb  6 11:51:15 2006
@@ -228,7 +228,7 @@
         elif isinstance(TYPE, lltype.Ptr):
             yield '    '*depth + 'pop_alive(%s)'%v
 
-    def static_deallocation_graph_for_type(self, TYPE, var):
+    def static_deallocation_graph_for_type(self, TYPE):
         def compute_pop_alive_ll_ops(hop):
             hop.llops.extend(self.pop_alive(hop.args_v[1]))
             return hop.inputconst(hop.r_result.lowleveltype, hop.s_result.const)

Modified: pypy/dist/pypy/rpython/memory/test/test_gctransform.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/test/test_gctransform.py	(original)
+++ pypy/dist/pypy/rpython/memory/test/test_gctransform.py	Mon Feb  6 11:51:15 2006
@@ -306,18 +306,15 @@
 # ----------------------------------------------------------------------
 # test deallocators
 
-def make_deallocator(TYPE, view=False):
+def make_deallocator(TYPE):
     def f():
         pass
     t = TranslationContext()
     t.buildannotator().build_types(f, [])
     t.buildrtyper().specialize(t)
-    
     transformer = gctransform.GCTransformer(t)
-    v = Variable()
-    v.concretetype = TYPE
-    graph = transformer.static_deallocation_graph_for_type(TYPE, v)
-    if view:
+    graph = transformer.static_deallocation_graph_for_type(TYPE)
+    if conftest.option.view:
         t.view()
     return graph
 



More information about the Pypy-commit mailing list