Author: Maciej Fijalkowski <fij...@gmail.com>
Branch: jitframe-on-heap
Changeset: r60670:9d96565a36db
Date: 2013-01-29 14:14 +0200
http://bitbucket.org/pypy/pypy/changeset/9d96565a36db/

Log:    make sure we don't annotate unpack_arraydescr too early. RPython is
        weird like that

diff --git a/rpython/jit/backend/llsupport/llmodel.py 
b/rpython/jit/backend/llsupport/llmodel.py
--- a/rpython/jit/backend/llsupport/llmodel.py
+++ b/rpython/jit/backend/llsupport/llmodel.py
@@ -54,13 +54,13 @@
     def _setup_frame_realloc(self, translate_support_code):
         FUNC_TP = lltype.Ptr(lltype.FuncType([llmemory.GCREF, lltype.Signed],
                                              llmemory.GCREF))
+        base_ofs = self.get_baseofs_of_frame_field()
 
         def realloc_frame(frame, size):
             frame = lltype.cast_opaque_ptr(jitframe.JITFRAMEPTR, frame)
             if size > frame.jf_frame_info.jfi_frame_depth:
                 # update the frame_info size, which is for whatever reason
                 # not up to date
-                base_ofs = self.get_baseofs_of_frame_field()
                 frame.jf_frame_info.set_frame_depth(base_ofs, size)
             new_frame = jitframe.JITFRAME.allocate(frame.jf_frame_info)
             i = 0
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to