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
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
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
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