Home
last modified time | relevance | path

Searched refs:slice (Results 1 – 25 of 345) sorted by relevance

12345678910>>...14

/external/v8/test/mjsunit/
Darray-slice.js32 var sliced = array.slice();
42 assertEquals([], [].slice(0, 0));
43 assertEquals([], [].slice(1, 0));
44 assertEquals([], [].slice(0, 1));
45 assertEquals([], [].slice(-1, 0));
55 assertEquals(array, array.slice());
56 assertEquals(array, array.slice(0));
57 assertEquals(array, array.slice(undefined));
58 assertEquals(array, array.slice("foobar"));
59 assertEquals(array, array.slice(undefined, undefined));
[all …]
Dstring-slices-regexp.js36 var str = "_Avtnennan gunzvmu pubExnY nEvln vaTxh rmuhguhaTxnY_".slice(1,-1);
41 assertEquals("a.yb", "_axyb_".slice(1,-1).replace(re, "."));
43 assertEquals("ax.b", "_axyb_".slice(1,-1).replace(re, "."));
45 assertEquals(["x", "x"], re.exec("_axyb_".slice(1,-1)));
47 assertEquals(["y", "y"], re.exec("_axyb_".slice(1,-1)));
50 var a = "aaaaaaaaaaaaaaaaaaaaaaaabbaacabbabaaaaabbaaaabbac".slice(24,-1);
62 var c = "ABCDEFGHIJKLMN".slice(2,-2);
63 var d = "ABCDEF\u1234GHIJKLMN".slice(2,-2);
64 var e = "ABCDEFGHIJKLMN".slice(0,-2);
72 var e = "qui-opIasd-fghjklzx-cvbn-mqwer-tyuio-pasdf-ghIjkl-zx".slice(6,-6);
Darray-natives-elements.js107 assertTrue(%HasFastSmiElements(a2.slice()));
108 assertTrue(%HasFastSmiElements(a2.slice(1)));
109 assertTrue(%HasFastSmiElements(a2.slice(1, 2)));
110 assertEquals([1,2,3], a2.slice());
111 assertEquals([2,3], a2.slice(1));
112 assertEquals([2], a2.slice(1,2));
114 assertTrue(%HasFastDoubleElements(a2.slice()));
115 assertTrue(%HasFastDoubleElements(a2.slice(1)));
116 assertTrue(%HasFastDoubleElements(a2.slice(1, 2)));
117 assertEquals([1.1,2,3], a2.slice());
[all …]
Dstring-slices.js152 slice = "abcdefghijklmn12345".slice(1, -1);
154 f(flat, cons, slice, i);
158 slice = "abcdefghijklmn1\u20232345".slice(1, -1);
160 f(flat, cons, slice, i);
167 slice = "abcdefghijklmn12345".slice(1, -1);
170 assertEquals("cdefg", slice.substr(1, 5));
175 slice = "abc\u1234defghijklmn12345".slice(1, -1);
178 assertEquals("c\u1234def", slice.substr(1, 5));
198 assertEquals(a.slice(1,-1), b);
204 assertEquals(a.slice(1,-1), b);
[all …]
Ddebug-sourceslice.js63 var slice = script.sourceSlice(n, n + slice_size); variable
64 assertEquals(n, slice.from_line);
65 assertEquals(n + slice_size, slice.to_line);
67 var text = slice.sourceText();
Dregexp-string-methods.js30 assertEquals("f", s.slice(0,1));
31 String.prototype.slice = function() { return "x"; }; method in String
32 assertEquals("x", s.slice(0,1));
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_mipmap_tree.c533 free((*mt)->level[i].slice); in intel_miptree_release()
616 assert(mt->level[level].slice == NULL); in intel_miptree_set_level_info()
618 mt->level[level].slice = calloc(d, sizeof(*mt->level[0].slice)); in intel_miptree_set_level_info()
619 mt->level[level].slice[0].x_offset = mt->level[level].level_x; in intel_miptree_set_level_info()
620 mt->level[level].slice[0].y_offset = mt->level[level].level_y; in intel_miptree_set_level_info()
634 mt->level[level].slice[img].x_offset = mt->level[level].level_x + x; in intel_miptree_set_image_offset()
635 mt->level[level].slice[img].y_offset = mt->level[level].level_y + y; in intel_miptree_set_image_offset()
639 mt->level[level].slice[img].x_offset, in intel_miptree_set_image_offset()
640 mt->level[level].slice[img].y_offset); in intel_miptree_set_image_offset()
654 int slice; in intel_miptree_get_image_offset() local
[all …]
Dintel_tex.c169 GLuint slice, in intel_map_texture_image() argument
190 slice = tex_image->Face; in intel_map_texture_image()
192 intel_miptree_map(intel, mt, tex_image->Level, slice, x, y, w, h, mode, in intel_map_texture_image()
198 struct gl_texture_image *tex_image, GLuint slice) in intel_unmap_texture_image() argument
205 slice = tex_image->Face; in intel_unmap_texture_image()
207 intel_miptree_unmap(intel, mt, tex_image->Level, slice); in intel_unmap_texture_image()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_mipmap_tree.c533 free((*mt)->level[i].slice); in intel_miptree_release()
616 assert(mt->level[level].slice == NULL); in intel_miptree_set_level_info()
618 mt->level[level].slice = calloc(d, sizeof(*mt->level[0].slice)); in intel_miptree_set_level_info()
619 mt->level[level].slice[0].x_offset = mt->level[level].level_x; in intel_miptree_set_level_info()
620 mt->level[level].slice[0].y_offset = mt->level[level].level_y; in intel_miptree_set_level_info()
634 mt->level[level].slice[img].x_offset = mt->level[level].level_x + x; in intel_miptree_set_image_offset()
635 mt->level[level].slice[img].y_offset = mt->level[level].level_y + y; in intel_miptree_set_image_offset()
639 mt->level[level].slice[img].x_offset, in intel_miptree_set_image_offset()
640 mt->level[level].slice[img].y_offset); in intel_miptree_set_image_offset()
654 int slice; in intel_miptree_get_image_offset() local
[all …]
Dintel_tex.c169 GLuint slice, in intel_map_texture_image() argument
190 slice = tex_image->Face; in intel_map_texture_image()
192 intel_miptree_map(intel, mt, tex_image->Level, slice, x, y, w, h, mode, in intel_map_texture_image()
198 struct gl_texture_image *tex_image, GLuint slice) in intel_unmap_texture_image() argument
205 slice = tex_image->Face; in intel_unmap_texture_image()
207 intel_miptree_unmap(intel, mt, tex_image->Level, slice); in intel_unmap_texture_image()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_mipmap_tree.c533 free((*mt)->level[i].slice); in intel_miptree_release()
616 assert(mt->level[level].slice == NULL); in intel_miptree_set_level_info()
618 mt->level[level].slice = calloc(d, sizeof(*mt->level[0].slice)); in intel_miptree_set_level_info()
619 mt->level[level].slice[0].x_offset = mt->level[level].level_x; in intel_miptree_set_level_info()
620 mt->level[level].slice[0].y_offset = mt->level[level].level_y; in intel_miptree_set_level_info()
634 mt->level[level].slice[img].x_offset = mt->level[level].level_x + x; in intel_miptree_set_image_offset()
635 mt->level[level].slice[img].y_offset = mt->level[level].level_y + y; in intel_miptree_set_image_offset()
639 mt->level[level].slice[img].x_offset, in intel_miptree_set_image_offset()
640 mt->level[level].slice[img].y_offset); in intel_miptree_set_image_offset()
654 int slice; in intel_miptree_get_image_offset() local
[all …]
Dintel_tex.c169 GLuint slice, in intel_map_texture_image() argument
190 slice = tex_image->Face; in intel_map_texture_image()
192 intel_miptree_map(intel, mt, tex_image->Level, slice, x, y, w, h, mode, in intel_map_texture_image()
198 struct gl_texture_image *tex_image, GLuint slice) in intel_unmap_texture_image() argument
205 slice = tex_image->Face; in intel_unmap_texture_image()
207 intel_miptree_unmap(intel, mt, tex_image->Level, slice); in intel_unmap_texture_image()
/external/fio/profiles/
Dact.c298 struct act_slice *slice; in act_io_u_lat() local
312 slice = &apd->slices[apd->cur_slice]; in act_io_u_lat()
313 slice->total_ios++; in act_io_u_lat()
317 slice->lat_buckets[i]++; in act_io_u_lat()
327 perm = (1000.0 * slice->lat_buckets[i]) / slice->total_ios; in act_io_u_lat()
348 static int show_slice(struct act_slice *slice, unsigned int slice_num) in show_slice() argument
357 if (slice->total_ios) in show_slice()
358 perc = 100.0 * (double) slice->lat_buckets[i] / (double) slice->total_ios; in show_slice()
366 if (slice->total_ios) in show_slice()
367 perc = 100.0 * (double) slice->lat_buckets[i] / (double) slice->total_ios; in show_slice()
[all …]
/external/opencv/cv/src/
Dcvapprox.cpp523 CvSlice slice = {0, 0}, right_slice = {0, 0}; in icvApproxPolyDP_32s() local
557 slice.start_index = 0; in icvApproxPolyDP_32s()
558 slice.end_index = count - 1; in icvApproxPolyDP_32s()
559 cvSeqPush( stack, &slice ); in icvApproxPolyDP_32s()
602 slice.start_index = cvGetSeqReaderPos( &reader ); in icvApproxPolyDP_32s()
603 slice.end_index = right_slice.start_index += slice.start_index; in icvApproxPolyDP_32s()
606 right_slice.end_index = slice.start_index; in icvApproxPolyDP_32s()
611 cvSeqPush( stack, &slice ); in icvApproxPolyDP_32s()
620 cvSeqPop( stack, &slice ); in icvApproxPolyDP_32s()
622 cvSetSeqReaderPos( &reader, slice.end_index ); in icvApproxPolyDP_32s()
[all …]
/external/v8/test/mjsunit/regress/
Dregress-165637.js42 data.slice(4, 1);
54 assertFalse(%HasFastHoleyElements(holey_array.slice(6, 1)));
55 assertEquals(undefined, holey_array.slice(6, 7)[0])
56 assertFalse(%HasFastHoleyElements(holey_array.slice(2, 1)));
57 assertEquals(3, holey_array.slice(2, 3)[0])
Dregress-crbug-229923.js30 var slice = "slow path of JSON.stringify for sliced string".substring(1); variable
31 assertEquals('"' + slice + '"', JSON.stringify(slice, null, 0));
/external/icu/icu4c/source/data/lang/
Dsk.txt651 no{"Radiť číslice jednotlivo"}
678 arab{"arabsko-indické číslice"}
679 arabext{"rozšírené arabsko-indické číslice"}
680 armn{"arménske číslice"}
681 armnlow{"malé arménske číslice"}
682 beng{"bengálske číslice"}
683 deva{"číslice dévanágarí"}
684 ethi{"etiópske číslice"}
686 fullwide{"číslice s celou šírkou"}
687 geor{"gruzínske číslice"}
[all …]
Dcs.txt848 no{"Řadit číslice jednotlivě"}
849 yes{"Řadit číslice numericky"}
877 arab{"Arabsko-indické číslice"}
878 arabext{"Rozšířené arabsko-indické číslice"}
879 armn{"Arménské číslice"}
880 armnlow{"Malé arménské číslice"}
881 bali{"Balijské číslice"}
882 beng{"Bengálské číslice"}
883 deva{"Číslice písma dévanágarí"}
884 ethi{"Etiopské číslice"}
[all …]
/external/v8/test/mjsunit/tools/
Dtickprocessor.js86 shell_syms.push(Array.prototype.slice.apply(arguments, [0]));
112 libc_syms.push(Array.prototype.slice.apply(arguments, [0]));
150 shell_syms.push(Array.prototype.slice.apply(arguments, [0]));
173 stdc_syms.push(Array.prototype.slice.apply(arguments, [0]));
216 shell_syms.push(Array.prototype.slice.apply(arguments, [0]));
257 exe_exe_syms.push(Array.prototype.slice.apply(arguments, [0]));
269 exe_dll_syms.push(Array.prototype.slice.apply(arguments, [0]));
280 dll_dll_syms.push(Array.prototype.slice.apply(arguments, [0]));
292 dll_exe_syms.push(Array.prototype.slice.apply(arguments, [0]));
/external/libcxx/test/std/numerics/numarray/template.slice.array/slice.arr.assign/
Dslice_array.pass.cpp26 v1[std::slice(1, 5, 3)] = v2[std::slice(2, 5, 2)]; in main()
50 std::slice_array<int> s1 = v1[std::slice(1, 1, 1)]; in main()
51 std::slice_array<int> s2 = v1[std::slice(0, 1, 1)]; in main()
/external/llvm/include/llvm/Support/
DGCOV.h60 StringRef File = Buffer->getBuffer().slice(0, 4); in readGCNOFormat()
71 StringRef File = Buffer->getBuffer().slice(0, 4); in readGCDAFormat()
82 StringRef VersionStr = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readGCOVVersion()
100 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readFunctionTag()
112 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readBlockTag()
124 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readEdgeTag()
136 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readLineTag()
148 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readArcTag()
160 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readObjectTag()
172 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readProgramTag()
[all …]
/external/llvm/test/CodeGen/X86/
Dload-slice.ll16 ; Low slice starts at 0 (base) and is 8-bytes aligned.
17 ; High slice starts at 4 (base + 4-bytes) and is 4-bytes aligned.
22 ; Add low slice: out[out_start].real, this is base + 0.
26 ; Add high slice: out[out_start].imm, this is base + 4.
37 ; Add low slice: out[out_start].real, this is base + 0.
41 ; Add high slice: out[out_start].imm, this is base + 4.
90 ; Low slice starts at 0 (base) and is 8-bytes aligned.
91 ; High slice starts at 6 (base + 6-bytes) and is 2-bytes aligned.
98 ; For the REGULAR heuristic, this is not profitable to slice things that are not
116 ; First slice uses bytes numbered 0 to 3.
[all …]
/external/mesa3d/src/mesa/swrast/
Ds_texture.c159 GLuint slice, GLuint x, GLuint y, GLuint w, GLuint h) in _mesa_check_map_teximage() argument
186 GLuint slice, in _swrast_map_teximage() argument
197 _mesa_check_map_teximage(texImage, slice, x, y, w, h); in _swrast_map_teximage()
220 assert(slice < texImage->Depth); in _swrast_map_teximage()
221 map += slice * sliceSize; in _swrast_map_teximage()
227 assert(slice < texImage->Height); in _swrast_map_teximage()
228 map += slice * sliceSize; in _swrast_map_teximage()
241 GLuint slice) in _swrast_unmap_teximage() argument
/external/protobuf/python/google/protobuf/pyext/
Drepeated_scalar_container.cc293 static PyObject* Subscript(RepeatedScalarContainer* self, PyObject* slice) { in Subscript() argument
301 if (PyInt_Check(slice)) { in Subscript()
302 from = to = PyInt_AsLong(slice); in Subscript()
305 if (PyLong_Check(slice)) { in Subscript()
306 from = to = PyLong_AsLong(slice); in Subscript()
307 } else if (PySlice_Check(slice)) { in Subscript()
310 if (PySlice_GetIndicesEx(slice, in Subscript()
312 if (PySlice_GetIndicesEx(reinterpret_cast<PySliceObject*>(slice), in Subscript()
442 PyObject* slice, in AssSubscript() argument
457 if (PyInt_Check(slice)) { in AssSubscript()
[all …]
Drepeated_composite_container.cc353 PyObject* Subscript(RepeatedCompositeContainer* self, PyObject* slice) { in Subscript() argument
362 if (PySlice_Check(slice)) { in Subscript()
364 if (PySlice_GetIndicesEx(slice, in Subscript()
366 if (PySlice_GetIndicesEx(reinterpret_cast<PySliceObject*>(slice), in Subscript()
372 } else if (PyInt_Check(slice) || PyLong_Check(slice)) { in Subscript()
373 from = to = PyLong_AsLong(slice); in Subscript()
389 PyObject* slice, in AssignSubscript() argument
403 slice, in AssignSubscript()
413 if (PySlice_Check(slice)) { in AssignSubscript()
415 if (PySlice_GetIndicesEx(slice, in AssignSubscript()
[all …]

12345678910>>...14