[pypy-svn] r62721 - pypy/trunk/pypy/jit/metainterp

arigo at codespeak.net arigo at codespeak.net
Sat Mar 7 18:28:36 CET 2009


Author: arigo
Date: Sat Mar  7 18:28:36 2009
New Revision: 62721

Modified:
   pypy/trunk/pypy/jit/metainterp/codewriter.py
Log:
Reintroduce this hack.  Needed in case there is no CALL bytecode.


Modified: pypy/trunk/pypy/jit/metainterp/codewriter.py
==============================================================================
--- pypy/trunk/pypy/jit/metainterp/codewriter.py	(original)
+++ pypy/trunk/pypy/jit/metainterp/codewriter.py	Sat Mar  7 18:28:36 2009
@@ -88,6 +88,8 @@
             graph = self.unfinished_graphs.pop()
             self.make_one_bytecode(graph, False)
         log.info("there are %d JitCode instances." % len(self.all_graphs))
+        # xxx annotation hack: make sure there is at least one ConstAddr around
+        jitcode.constants.append(history.ConstAddr(llmemory.NULL, self.cpu))
         return jitcode
 
     def make_one_bytecode(self, graph, portal):



More information about the Pypy-commit mailing list