[pypy-svn] r24528 - pypy/dist/pypy/translator/backendopt/test

cfbolz at codespeak.net cfbolz at codespeak.net
Fri Mar 17 18:23:32 CET 2006


Author: cfbolz
Date: Fri Mar 17 18:23:31 2006
New Revision: 24528

Modified:
   pypy/dist/pypy/translator/backendopt/test/test_malloc.py
Log:
add t.view if --view is given


Modified: pypy/dist/pypy/translator/backendopt/test/test_malloc.py
==============================================================================
--- pypy/dist/pypy/translator/backendopt/test/test_malloc.py	(original)
+++ pypy/dist/pypy/translator/backendopt/test/test_malloc.py	Fri Mar 17 18:23:31 2006
@@ -5,6 +5,7 @@
 from pypy.translator.translator import TranslationContext, graphof
 from pypy.objspace.flow.model import checkgraph, flatten, Block
 from pypy.rpython.llinterp import LLInterpreter
+from pypy.conftest import option
 
 def check_malloc_removed(graph):
     checkgraph(graph)
@@ -24,7 +25,11 @@
     t.buildannotator().build_types(fn, signature)
     t.buildrtyper().specialize()
     graph = graphof(t, fn)
+    if option.view:
+        t.view()
     remove_simple_mallocs(graph)
+    if option.view:
+        t.view()
     if must_be_removed:
         check_malloc_removed(graph)
     interp = LLInterpreter(t.rtyper)



More information about the Pypy-commit mailing list