[pypy-svn] r20542 - pypy/branch/somepbc-refactoring/pypy/translator/goal

arigo at codespeak.net arigo at codespeak.net
Thu Dec 1 22:58:07 CET 2005


Author: arigo
Date: Thu Dec  1 22:58:06 2005
New Revision: 20542

Modified:
   pypy/branch/somepbc-refactoring/pypy/translator/goal/driver.py
Log:
(pedronis, arigo)

fixed the --llinterp option of translate_pypy.



Modified: pypy/branch/somepbc-refactoring/pypy/translator/goal/driver.py
==============================================================================
--- pypy/branch/somepbc-refactoring/pypy/translator/goal/driver.py	(original)
+++ pypy/branch/somepbc-refactoring/pypy/translator/goal/driver.py	Thu Dec  1 22:58:06 2005
@@ -262,10 +262,12 @@
         py.log.setconsumer("llinterp operation", None)
         
         translator = self.translator
-        interp = LLInterpreter(translator.flowgraphs, translator.rtyper)
-        v = interp.eval_function(translator.entrypoint,
-                                 self.extra.get('get_llinterp_args',
-                                                lambda: [])())
+        interp = LLInterpreter(translator.rtyper)
+        bk = translator.annotator.bookkeeper
+        graph = bk.getdesc(self.entry_point).cachedgraph(None)
+        v = interp.eval_graph(graph,
+                              self.extra.get('get_llinterp_args',
+                                             lambda: [])())
 
         log.llinterpret.event("result -> %s" % v)
     #



More information about the Pypy-commit mailing list