示例#1
0
 def __init__(
     self,
     cpu,
     gcmap,
     faildescr,
     failargs,
     fail_locs,
     offset,
     exc,
     frame_depth,
     is_guard_not_invalidated=False,
     is_guard_not_forced=False,
     fcond=c.AL,
 ):
     GuardToken.__init__(
         self,
         cpu,
         gcmap,
         faildescr,
         failargs,
         fail_locs,
         exc,
         frame_depth,
         is_guard_not_invalidated,
         is_guard_not_forced,
     )
     self.fcond = fcond
     self.offset = offset
示例#2
0
    def build_guard_token(self,
                          op,
                          frame_depth,
                          arglocs,
                          offset,
                          fcond,
                          extra_offset=-1,
                          extra_cond=-1):
        descr = op.getdescr()
        assert isinstance(descr, AbstractFailDescr)

        gcmap = allocate_gcmap(self, frame_depth, JITFRAME_FIXED_SIZE)
        faildescrindex = self.get_gcref_from_faildescr(descr)
        token = GuardToken(self.cpu,
                           gcmap,
                           descr,
                           failargs=op.getfailargs(),
                           fail_locs=arglocs,
                           guard_opnum=op.getopnum(),
                           frame_depth=frame_depth,
                           faildescrindex=faildescrindex)
        token.fcond = fcond
        token.extra_offset = extra_offset
        token.extra_cond = extra_cond
        return token
示例#3
0
 def __init__(self,
              cpu,
              gcmap,
              descr,
              failargs,
              faillocs,
              guard_opnum,
              frame_depth,
              faildescrindex,
              fcond=c.cond_none):
     GuardToken.__init__(self, cpu, gcmap, descr, failargs, faillocs,
                         guard_opnum, frame_depth, faildescrindex)
     self.fcond = fcond
示例#4
0
文件: codebuilder.py 项目: sota/pypy
 def __init__(self, cpu, gcmap, descr, failargs, faillocs,
              guard_opnum, frame_depth, faildescrindex, fcond=c.cond_none):
     GuardToken.__init__(self, cpu, gcmap, descr, failargs, faillocs,
                         guard_opnum, frame_depth, faildescrindex)
     self.fcond = fcond
示例#5
0
 def __init__(self, cpu, gcmap, faildescr, failargs, fail_locs, offset, guard_opnum, frame_depth, fcond=c.AL):
     GuardToken.__init__(self, cpu, gcmap, faildescr, failargs, fail_locs, guard_opnum, frame_depth)
     self.fcond = fcond
     self.offset = offset