예제 #1
0
 def op_length_of_simple_gcarray_from_opaque(self, obj):
     checkptr(obj)
     return lltype.length_of_simple_gcarray_from_opaque(obj)
예제 #2
0
def _ll_len_of_d_indexes(d):
    # xxx Haaaack: returns len(d.indexes).  Works independently of
    # the exact type pointed to by d, using a forced cast...
    # Must only be called by @jit.dont_look_inside functions.
    return lltype.length_of_simple_gcarray_from_opaque(d.indexes)
예제 #3
0
파일: llinterp.py 프로젝트: pypyjs/pypy
 def op_length_of_simple_gcarray_from_opaque(self, obj):
     checkptr(obj)
     return lltype.length_of_simple_gcarray_from_opaque(obj)
예제 #4
0
def _ll_len_of_d_indexes(d):
    # xxx Haaaack: returns len(d.indexes).  Works independently of
    # the exact type pointed to by d, using a forced cast...
    # Must only be called by @jit.dont_look_inside functions.
    return lltype.length_of_simple_gcarray_from_opaque(d.indexes)