1. jonathanslenders
  2. pypy

Commits

Maciej Fijalkowski  committed de21712

rpythonize

  • Participants
  • Parent commits 95aaf16
  • Branches jitframe-on-heap

Comments (0)

Files changed (1)

File rpython/jit/backend/llsupport/rewrite.py

View file
  • Ignore whitespace
 from rpython.jit.codewriter import heaptracker
 from rpython.jit.backend.llsupport.symbolic import WORD
 from rpython.jit.backend.llsupport.descr import SizeDescr, ArrayDescr
+from rpython.jit.metainterp.history import JitCellToken
 
 class GcRewriterAssembler(object):
     # This class performs the following rewrites on the list of operations:
             self.newops.append(ResOperation(rop.SETARRAYITEM_GC,
                                             [frame, ConstInt(index), arg],
                                             None, descr))
-        jd = op.getdescr().outermost_jitdriver_sd
+        descr = op.getdescr()
+        assert isinstance(descr, JitCellToken)
+        jd = descr.outermost_jitdriver_sd
         args = [frame]
         if jd.index_of_virtualizable >= 0:
             args = [frame, arglist[jd.index_of_virtualizable]]