[pypy-svn] r26239 - pypy/dist/pypy/translator/stackless

mwh at codespeak.net mwh at codespeak.net
Mon Apr 24 10:34:39 CEST 2006


Author: mwh
Date: Mon Apr 24 10:34:38 2006
New Revision: 26239

Modified:
   pypy/dist/pypy/translator/stackless/transform.py
Log:
don't make a functionptr out of add_frame_state's graph until i'm sure it's
been rtyped.  this fixes the failures in test_transform.py.


Modified: pypy/dist/pypy/translator/stackless/transform.py
==============================================================================
--- pypy/dist/pypy/translator/stackless/transform.py	(original)
+++ pypy/dist/pypy/translator/stackless/transform.py	Mon Apr 24 10:34:38 2006
@@ -100,9 +100,6 @@
         ADD_FRAME_STATE_TYPE = lltype.FuncType(
             [self.unwind_exception_type, lltype.Ptr(STATE_HEADER)],
             lltype.Void)
-        self.add_frame_state_ptr = model.Constant(
-            getfunctionptr(add_frame_state_graph),
-            lltype.Ptr(ADD_FRAME_STATE_TYPE))
 
         RESUME_STATE_TYPE = lltype.FuncType([], lltype.Signed)
         resume_state_graph = mixlevelannotator.getgraph(
@@ -154,6 +151,10 @@
 
         mixlevelannotator.finish()
 
+        self.add_frame_state_ptr = model.Constant(
+            getfunctionptr(add_frame_state_graph),
+            lltype.Ptr(ADD_FRAME_STATE_TYPE))
+
         s_global_state = bk.immutablevalue(code.global_state)
         r_global_state = translator.rtyper.getrepr(s_global_state)
         self.ll_global_state = model.Constant(



More information about the Pypy-commit mailing list