/external/v8/test/mjsunit/ |
D | array-splice.js | 32 var spliced = array.splice(1, 1, 'one', 'two'); 48 assertEquals([], [].splice(0, 0)); 49 assertEquals([], [].splice(1, 0)); 50 assertEquals([], [].splice(0, 1)); 51 assertEquals([], [].splice(-1, 0)); 60 assertEquals([], a.splice(1, 0, 'a', 'b', 'c')); 71 assertEquals([], array.splice()); 79 assertEquals([1, 2, 3], array.splice(0)); 83 assertEquals([1, 2, 3], array.splice(undefined)); 87 assertEquals([1, 2, 3], array.splice("foobar")); [all …]
|
D | array-methods-read-only-length.js | 39 function splice(a) { function 40 a.splice(0, 0, 3); 43 check(splice); 44 check(splice); 45 check(splice); 46 %OptimizeFunctionOnNextCall(splice); 47 check(splice); 84 function splice(a) { function 85 a.splice(0, 1); 88 check(splice); [all …]
|
D | array-natives-elements.js | 131 a3r = a3.splice(0, 0); 137 a3r = a3.splice(0, 1); 143 a3r = a3.splice(0, 0, 2); 149 a3r = a3.splice(0, 1, 2); 155 a3r = a3.splice(0, 0); 161 a3r = a3.splice(0, 1); 167 a3r = a3.splice(0, 0, 2); 174 a3r = a3.splice(0, 1, 2); 180 a3r = a3.splice(0, 0, 2.1); 186 a3r = a3.splice(0, 1, 2.2); [all …]
|
D | array-functions-prototype-misc.js | 74 return array.splice(start, len); 77 return array.splice(start, len, elt); 108 return Array.prototype.splice.call(array, start, len); method in Array 111 return Array.prototype.splice.call(array, start, len, elt); method in Array 280 var top = a.splice(LARGE, 5); 285 a.splice(LARGE, 0, LARGE); 296 var top = a.splice(LARGE >> 1, 5); 301 a.splice(LARGE >> 1, 0, LARGE >> 1, void 0, void 0, void 0, void 0); 314 Array.prototype.push.apply([], [1].splice(0, -(-1 % 5)));
|
D | object-seal.js | 212 assertThrows(function() { obj.splice(0, 0, 100, 101, 102); }, TypeError); 213 assertDoesNotThrow(function() { obj.splice(0,0); }); 219 assertDoesNotThrow(function() { objControl.splice(0, 0, 100, 101, 102); }); 249 assertDoesNotThrow(function() { obj.splice(0,1,100); }); 251 assertDoesNotThrow(function() { obj.splice(0,2,1,2); }); 252 assertDoesNotThrow(function() { obj.splice(1,2,1,2); }); 254 assertDoesNotThrow(function() { obj.splice(1,2000,1,2); }); 255 assertThrows(function() { obj.splice(0,0,1); }, TypeError); 256 assertThrows(function() { obj.splice(1,2000,1,2,3); }, TypeError);
|
D | array-functions-prototype.js | 124 assertArrayEquals(['zero'], array.splice(0, 1)); 125 assertArrayEquals(['zero'], Array.prototype.splice.call(nonArray, 0, 1));
|
/external/libcxx/test/std/containers/sequences/list/list.ops/ |
D | splice_pos_list_iter.pass.cpp | 30 l1.splice(l1.end(), l2, l2.begin()); in main() 41 l1.splice(l1.end(), l2, l2.begin()); in main() 54 l1.splice(l1.end(), l2, next(l2.begin())); in main() 67 l1.splice(l1.end(), l2, l2.begin()); in main() 82 l1.splice(l1.end(), l2, next(l2.begin())); in main() 97 l1.splice(l1.end(), l2, next(l2.begin(), 2)); in main() 111 l1.splice(l1.begin(), l1, l1.begin()); in main() 120 l1.splice(l1.begin(), l2, l2.begin()); in main() 133 l1.splice(next(l1.begin()), l2, l2.begin()); in main() 145 l1.splice(l1.begin(), l1, l1.begin()); in main() [all …]
|
D | splice_pos_list.pass.cpp | 30 l1.splice(l1.end(), l2); in main() 39 l1.splice(l1.end(), l2); in main() 50 l1.splice(l1.end(), l2); in main() 63 l1.splice(l1.end(), l2); in main() 78 l1.splice(l1.begin(), l2); in main() 89 l1.splice(l1.end(), l2); in main() 100 l1.splice(l1.begin(), l2); in main() 113 l1.splice(l1.end(), l2); in main() 126 l1.splice(l1.begin(), l2); in main() 141 l1.splice(l1.end(), l2); in main() [all …]
|
D | splice_pos_list_iter_iter.pass.cpp | 29 l1.splice(l1.begin(), l1, next(l1.begin()), next(l1.begin())); in main() 41 l1.splice(l1.begin(), l1, next(l1.begin()), next(l1.begin(), 2)); in main() 53 l1.splice(l1.begin(), l1, next(l1.begin()), next(l1.begin(), 3)); in main() 66 l1.splice(l1.begin(), l2, next(l2.begin()), l2.end()); in main() 86 l1.splice(next(l1.begin()), l2, next(l2.begin()), l2.end()); in main() 106 l1.splice(l1.end(), l2, next(l2.begin()), l2.end()); in main() 127 v1.splice(v1.begin(), v2, v2.begin(), v1.end()); in main() 134 l1.splice(l1.begin(), l1, next(l1.begin()), next(l1.begin())); in main() 146 l1.splice(l1.begin(), l1, next(l1.begin()), next(l1.begin(), 2)); in main() 158 l1.splice(l1.begin(), l1, next(l1.begin()), next(l1.begin(), 3)); in main() [all …]
|
/external/v8/test/webkit/ |
D | array-splice-expected.txt | 24 This tests array.splice behavior. 30 PASS arr.splice(2) is ['c','d'] 32 PASS arr.splice(0) is ['a','b'] 34 PASS arr.splice() is [] 36 PASS arr.splice(undefined) is ['a','b','c','d'] 38 PASS arr.splice(null) is ['a','b','c','d'] 40 PASS arr.splice(100) is [] 42 PASS arr.splice(-1) is ['d'] 44 PASS arr.splice(2, undefined) is [] 45 PASS arr.splice(2, null) is [] [all …]
|
/external/v8/test/mjsunit/harmony/ |
D | array-species.js | 18 assertEquals(MyArray, new MyArray().splice().constructor); 29 assertEquals(MyArray, new MyOtherArray().splice().constructor); 46 Array.prototype.splice.call(new MyNonArray()).constructor); 54 assertEquals(0, Array.prototype.splice.call(new MyNonArray()).length); 102 assertThrows(() => new FrozenArray([1]).splice(0, 1), TypeError); 144 new MyObservedArray().splice().constructor);
|
/external/bison/src/ |
D | scan-gram.l | 118 splice (\\[ \f\t\v]*\n)* 423 "*"{splice}"/" STRING_GROW; BEGIN context_state; 435 {splice} STRING_GROW; 583 {splice}|\\{splice}[^\n\[\]] STRING_GROW; 619 "/"{splice}"*" { 625 "/"{splice}"/" { 641 "{"|"<"{splice}"%" STRING_GROW; braces_level++; 642 "%"{splice}">" STRING_GROW; braces_level--; 659 "<"{splice}"<" STRING_GROW;
|
D | scan-code.l | 85 splice (\\[ \f\t\v]*\n)* 132 "*"{splice}"/" STRING_GROW; BEGIN sc_context; 143 {splice} STRING_GROW; 153 {splice}|\\{splice}. STRING_GROW; 179 "/"{splice}"*" { 183 "/"{splice}"/" { 246 {splice} STRING_GROW;
|
/external/chromium-trace/catapult/third_party/vinn/third_party/parse5/lib/tree_construction/ |
D | formatting_element_list.js | 70 candidates.splice(j, 1); 81 this.entries.splice(candidates[i].idx, 1); 113 this.entries.splice(bookmarkIdx + 1, 0, { 125 this.entries.splice(i, 1);
|
/external/v8/test/mjsunit/regress/ |
D | regress-423633.js | 10 assertEquals([3], a.splice(2, 1)); 18 assertEquals([3], Array.prototype.splice.call(a, 2, 1));
|
/external/opencv3/modules/imgproc/src/ |
D | subdivision2d.cpp | 167 void Subdiv2D::splice( int edgeA, int edgeB ) in splice() function in cv::Subdiv2D 191 splice(edge, getEdge(edgeA, NEXT_AROUND_LEFT)); in connectEdges() 192 splice(symEdge(edge), edgeB); in connectEdges() 204 splice(edge, a); in swapEdges() 205 splice(sedge, b); in swapEdges() 209 splice(edge, getEdge(a, NEXT_AROUND_LEFT)); in swapEdges() 210 splice(sedge, getEdge(b, NEXT_AROUND_LEFT)); in swapEdges() 244 splice( edge, getEdge(edge, PREV_AROUND_ORG) ); in deleteEdge() 246 splice(sedge, getEdge(sedge, PREV_AROUND_ORG) ); in deleteEdge() 442 splice(base_edge, curr_edge); in insert() [all …]
|
/external/llvm/include/llvm/CodeGen/ |
D | MachineFunction.h | 380 void splice(iterator InsertPt, iterator MBBI) { 381 BasicBlocks.splice(InsertPt, BasicBlocks, MBBI); 383 void splice(iterator InsertPt, MachineBasicBlock *MBB) { 384 BasicBlocks.splice(InsertPt, BasicBlocks, MBB); 386 void splice(iterator InsertPt, iterator MBBI, iterator MBBE) { 387 BasicBlocks.splice(InsertPt, BasicBlocks, MBBI, MBBE);
|
/external/v8/test/mjsunit/es6/ |
D | array-length.js | 90 Array.prototype.splice.call(o); method in Array 94 Array.prototype.splice.call(o, 0, 10, ['foo']); method in Array 99 Array.prototype.splice.call(o, -1); method in Array 103 Array.prototype.splice.call(o, -1); method in Array
|
/external/chromium-trace/catapult/third_party/polymer/components/polymer/ |
D | polymer.js | 452 this.keys.splice(i, 1); 453 this.values.splice(i, 1); 1368 lts.splice(i, 1); 5127 splices.forEach(function(splice) { argument 5128 var spliceArgs = [splice.index, splice.removed.length]; 5129 var addIndex = splice.index; 5130 while (addIndex < splice.index + splice.addedCount) { 5135 Array.prototype.splice.apply(previous, spliceArgs); method in Array 5607 var splice = newSplice(currentStart, [], 0); 5609 splice.removed.push(old[oldStart++]); [all …]
|
/external/chromium-trace/catapult/tracing/third_party/components/polymer/ |
D | polymer.js | 452 this.keys.splice(i, 1); 453 this.values.splice(i, 1); 1368 lts.splice(i, 1); 5127 splices.forEach(function(splice) { argument 5128 var spliceArgs = [splice.index, splice.removed.length]; 5129 var addIndex = splice.index; 5130 while (addIndex < splice.index + splice.addedCount) { 5135 Array.prototype.splice.apply(previous, spliceArgs); method in Array 5607 var splice = newSplice(currentStart, [], 0); 5609 splice.removed.push(old[oldStart++]); [all …]
|
/external/v8/test/webkit/fast/js/ |
D | array-functions-non-arrays-expected.txt | 95 PASS Array.prototype.splice.call({}, 0, 1) is [] 96 PASS Array.prototype.splice.call(['b', 'a'], 0, 1) is ['b'] 97 PASS Array.prototype.splice.call({ length:2, 0:'b', 1:'a' }, 0, 1) is ['b'] 98 PASS Array.prototype.splice.call(new TwoItemConstructor, 0, 1) is ['b'] 99 PASS Array.prototype.splice.call(x = {}, 0, 1); properties(x) is 'length:0' 100 PASS Array.prototype.splice.call(x = ['b', 'a'], 0, 1); properties(x) is '0:a, length:1(DontDelete,… 101 PASS Array.prototype.splice.call(x = { length:2, 0:'b', 1:'a' }, 0, 1); properties(x) is '0:a, leng… 102 PASS Array.prototype.splice.call(x = new TwoItemConstructor, 0, 1); properties(x) is '0:a, 1:a(From…
|
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/tree/ |
D | BaseTree.js | 120 var killed = this.children.splice(i, 1)[0]; 170 killed = this.children.splice(indexToDelete, 1)[0]; 181 this.children.splice(startChildIndex+j, 0, newChildren[j]);
|
/external/llvm/include/llvm/ADT/ |
D | ilist.h | 625 void splice(iterator where, iplist &L2) { 629 void splice(iterator where, iplist &L2, iterator first) { 634 void splice(iterator where, iplist &L2, iterator first, iterator last) { 637 void splice(iterator where, iplist &L2, NodeTy &N) { 638 splice(where, L2, iterator(N)); 640 void splice(iterator where, iplist &L2, NodeTy *N) { 641 splice(where, L2, iterator(N)); 680 RightHalf.splice(RightHalf.begin(), *this, Center, end());
|
/external/v8/test/mjsunit/es7/ |
D | object-observe.js | 755 var cut = self.splice(0, 6); 759 var cut = self.splice(0, 6); 1257 var splice = spliceRecords[0]; variable 1258 assertSame(splice.object, slow_arr); 1259 assertEquals(splice.type, 'splice'); 1260 assertEquals(splice.index, 100); 1261 assertEquals(splice.addedCount, 0); 1262 var array_keys = %GetArrayKeys(splice.removed, splice.removed.length); 1265 assertEquals(splice.removed[499999900], 'hello'); 1266 assertEquals(splice.removed.length, 999999900); [all …]
|
/external/llvm/unittests/ADT/ |
D | ilistTest.cpp | 52 List.splice(List.begin(), List, List.begin()); in TEST() 60 List.splice(std::next(List.begin()), List, List.begin()); in TEST()
|