[pypy-svn] r36789 - pypy/dist/pypy/jit/codegen/llgraph

arigo at codespeak.net arigo at codespeak.net
Mon Jan 15 20:48:25 CET 2007


Author: arigo
Date: Mon Jan 15 20:48:24 2007
New Revision: 36789

Modified:
   pypy/dist/pypy/jit/codegen/llgraph/rgenop.py
Log:
Figured out what caused the failures of some of the timeshiting tests,
which the llgraph backend incorrectly identified as using a buggy open
block patterns.



Modified: pypy/dist/pypy/jit/codegen/llgraph/rgenop.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/llgraph/rgenop.py	(original)
+++ pypy/dist/pypy/jit/codegen/llgraph/rgenop.py	Mon Jan 15 20:48:24 2007
@@ -289,12 +289,13 @@
     currently_writing = None
 
     def newgraph(self, (ARGS_gv, gv_RESULT, gv_FUNCTYPE), name):
+        debug_assert(self.currently_writing is None,
+                     "newgraph: currently_writing")
         gv_func = llimpl.newgraph(gv_FUNCTYPE.v, name)
-        rgenop1 = RGenOp()
-        builder = LLBuilder(rgenop1, gv_func, llimpl.getstartblock(gv_func))
+        builder = LLBuilder(self, gv_func, llimpl.getstartblock(gv_func))
         inputargs_gv = [LLVar(llimpl.getinputarg(builder.b, i))
                         for i in range(len(ARGS_gv))]
-        rgenop1.currently_writing = builder
+        self.currently_writing = builder
         return builder, LLConst(gv_func), inputargs_gv
 
     @staticmethod



More information about the Pypy-commit mailing list