def __init__(self, rtyper, methdescs): samplemdesc = iter(methdescs).next() concretetable, uniquerows = get_concrete_calltable( rtyper, samplemdesc.funcdesc.getcallfamily()) self.row_mapping = {} for row in uniquerows: sample_as_static_meth = row.itervalues().next() SM = ootype.typeOf(sample_as_static_meth) M = ootype.Meth(SM.ARGS[1:], SM.RESULT) # cut self self.row_mapping[row.attrname] = row, M
def __init__(self, rtyper, methdescs): samplemdesc = iter(methdescs).next() concretetable, uniquerows = get_concrete_calltable(rtyper, samplemdesc.funcdesc.getcallfamily()) self.row_mapping = {} for row in uniquerows: sample_as_static_meth = row.itervalues().next() SM = ootype.typeOf(sample_as_static_meth) M = ootype.Meth(SM.ARGS[1:], SM.RESULT) # cut self self.row_mapping[row.attrname] = row, M
def __init__(self, rtyper, s_pbc): self.rtyper = rtyper self.s_pbc = s_pbc self.callfamily = s_pbc.any_description().getcallfamily() concretetable, uniquerows = get_concrete_calltable(self.rtyper, self.callfamily) assert len(uniquerows) == 1 self.lowleveltype = Char self.pointer_repr = FunctionsPBCRepr(rtyper, s_pbc) self._conversion_tables = {} self._compression_function = None self._dispatch_cache = {}
def _setup_repr_final(self): sampledesc = self.s_pbc.any_description() self.concretetable, _ = get_concrete_calltable( self.rtyper, sampledesc.funcdesc.getcallfamily())
def _setup_repr_final(self): sampledesc = self.s_pbc.any_description() self.concretetable, _ = get_concrete_calltable(self.rtyper, sampledesc.funcdesc.getcallfamily())