def done(self): from rpython.rlib.debug import debug_start, debug_stop, debug_print self._bigints_dict = {} self._refs_dict = llhelper.new_ref_dict_3() debug_start("jit-trace-done") debug_print("trace length: " + str(self._pos)) debug_print(" total snapshots: " + str(self._total_snapshots)) debug_print(" bigint consts: " + str(self._consts_bigint) + " " + str(len(self._bigints))) debug_print(" float consts: " + str(self._consts_float) + " " + str(len(self._floats))) debug_print(" ref consts: " + str(self._consts_ptr) + " " + str(len(self._refs))) debug_print(" descrs: " + str(len(self._descrs))) debug_stop("jit-trace-done") return 0 # completely different than TraceIter.done, but we have to
def tracing_done(self): from rpython.rlib.debug import debug_start, debug_stop, debug_print assert not self.tag_overflow self._bigints_dict = {} self._refs_dict = llhelper.new_ref_dict_3() debug_start("jit-trace-done") debug_print("trace length: " + str(self._pos)) debug_print(" total snapshots: " + str(self._total_snapshots)) debug_print(" bigint consts: " + str(self._consts_bigint) + " " + str(len(self._bigints))) debug_print(" float consts: " + str(self._consts_float) + " " + str(len(self._floats))) debug_print(" ref consts: " + str(self._consts_ptr) + " " + str(len(self._refs))) debug_print(" descrs: " + str(len(self._descrs))) debug_stop("jit-trace-done")
def __init__(self, inputargs, metainterp_sd): self.metainterp_sd = metainterp_sd self._ops = [rffi.cast(get_model(self).STORAGE_TP, 0)] * get_model(self).INIT_SIZE self._pos = 0 self._consts_bigint = 0 self._consts_float = 0 self._total_snapshots = 0 self._consts_ptr = 0 self._descrs = [None] self._refs = [lltype.nullptr(llmemory.GCREF.TO)] self._refs_dict = llhelper.new_ref_dict_3() self._bigints = [] self._bigints_dict = {} self._floats = [] self._snapshots = [] for i, inparg in enumerate(inputargs): inparg.set_position(i) self._count = len(inputargs) # total count self._index = len(inputargs) # "position" of resulting resops self._start = len(inputargs) self._pos = self._start self.inputargs = inputargs