示例#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)