示例#1
0
文件: unicode.py 项目: esc/numba
 def codegen(context, builder, sig, args):
     [slicetype] = sig.args
     [sliceobj] = args
     slice = context.make_helper(builder, slicetype, sliceobj)
     result_size = slicing.get_slice_length(builder, slice)
     return result_size
示例#2
0
 def codegen(context, builder, sig, args):
     [slicetype] = sig.args
     [sliceobj] = args
     slice = context.make_helper(builder, slicetype, sliceobj)
     result_size = slicing.get_slice_length(builder, slice)
     return result_size