[pypy-svn] r60692 - pypy/branch/oo-jit/pypy/jit/rainbow/test
arigo at codespeak.net
arigo at codespeak.net
Tue Dec 23 13:46:43 CET 2008
Author: arigo
Date: Tue Dec 23 13:46:42 2008
New Revision: 60692
Modified:
pypy/branch/oo-jit/pypy/jit/rainbow/test/test_interpreter.py
Log:
Add support for extended 'view' attribute from the tests.
Modified: pypy/branch/oo-jit/pypy/jit/rainbow/test/test_interpreter.py
==============================================================================
--- pypy/branch/oo-jit/pypy/jit/rainbow/test/test_interpreter.py (original)
+++ pypy/branch/oo-jit/pypy/jit/rainbow/test/test_interpreter.py Tue Dec 23 13:46:42 2008
@@ -48,7 +48,7 @@
def hannotate(func, values, policy=None, inline=None, backendoptimize=False,
- portal=None, type_system="lltype"):
+ portal=None, type_system="lltype", view="auto"):
# build the normal ll graphs for ll_function
t = TranslationContext()
annpolicy = AnnotatorPolicy()
@@ -80,7 +80,7 @@
[SomeLLAbstractConstant(v.concretetype, {OriginFlags(): True})
for v in graph1.getargs()])
hannotator.simplify()
- if conftest.option.view:
+ if (view == "auto" and conftest.option.view) or view == True:
hannotator.translator.view()
return hs, hannotator, rtyper
More information about the Pypy-commit
mailing list