Searched defs:Array (Results 1 - 25 of 165) sorted by relevance

1234567

/external/chromium_org/v8/test/mjsunit/
H A Darray-shift.js30 var array = new Array(10);
38 var array = new Array(len); class
39 Array.prototype[3] = "@3";
40 Array.prototype[7] = "@7";
44 assertEquals(array[i], Array.prototype[i]);
51 assertEquals(array[2], Array.prototype[3]);
54 assertEquals(array[6], Array.prototype[7]);
58 Array.prototype[5] = "@5";
59 assertEquals(array[5], Array.prototype[5]);
62 assertEquals(array[3], Array
[all...]
H A Delide-double-hole-check-3.js33 Array.prototype = [1.5,1.5,1.5];
32 Array.prototype = [1.5,1.5,1.5]; class
H A Darray-elements-from-array-prototype-chain.js29 // Tests below verify that elements set on Array.prototype's proto propagate
30 // for various Array.prototype functions (like unshift, shift, etc.)
46 Array.prototype.__proto__ = {3: at3}; class
47 Array.prototype.__proto__.__proto__ = {7: at7};
49 var a = new Array(13)
58 // Side-effects: Array.prototype[3] percolates into a[2] and Array.prototype[7[
72 // Side-effects: Array.prototype[3] now percolates into a[5] and Array.prototype[7]
119 // Note: sliced[3] comes directly from Array
[all...]
H A Darray-shift3.js7 Array.prototype[1] = "element 1";
0 Array.prototype[1] = "element 1"; class
H A Darray-push4.js25 Array.prototype.push.call(array, 100);
23 Array.prototype.push.call(array, 100); class
H A Delide-double-hole-check-6.js38 Array.prototype.__proto__[1] = 1.5;
37 Array.prototype.__proto__[1] = 1.5; class
H A Delide-double-hole-check-7.js36 Array.prototype.__proto__[1] = 1.5;
35 Array.prototype.__proto__[1] = 1.5; class
H A Delide-double-hole-check-8.js38 Array.prototype.__proto__ = new Object();
39 Array.prototype.__proto__[1] = 1.5;
37 Array.prototype.__proto__ = new Object(); class
H A Darray-length.js46 var a = new Array();
61 var a = new Array();
76 var a = new Array();
82 var a = new Array();
104 var a = new Array();
110 Array.prototype.pop.apply(o);
109 Array.prototype.pop.apply(o); class
H A Darray-pop.js66 Array.prototype[1] = 1;
67 Array.prototype[3] = 3;
68 Array.prototype[5] = 5;
69 Array.prototype[7] = 7;
70 Array.prototype[9] = 9;
77 var inherited = Array.prototype.hasOwnProperty(j);
81 assertEquals(inherited, Array.prototype.hasOwnProperty(j),
84 Array.prototype.length = 0; // Clean-up.
65 Array.prototype[1] = 1; class
/external/clang/test/CXX/temp/temp.spec/temp.expl.spec/
H A Dp11.cpp4 template<class T> class Array { /* ... */ }; class
5 template<class T> void sort(Array<T>& v);
7 // explicit specialization for sort(Array<int>&)
9 template<> void sort(Array<int>&);
/external/chromium_org/chrome/common/extensions/docs/static/js/
H A Dplatform_chooser.js10 Array.prototype.forEach.call(platformChooser.getElementsByTagName('button'),
9 Array.prototype.forEach.call(platformChooser.getElementsByTagName('button'), class
H A Dpopup.js12 Array.prototype.forEach.call(document.getElementsByTagName('button'),
10 Array.prototype.forEach.call(document.getElementsByTagName('button'), class
/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-1121.js30 // Test that changing Array.prototype.__proto__ keeps Array functions working.
32 Array.prototype.__proto__ = null;
0 Array.prototype.__proto__ = null; class
H A Dregress-119925.js30 Array.prototype.__proto__ = { 77e4 : null };
0 Array.prototype.__proto__ = { 77e4 : null }; class
H A Dregress-98773.js28 // Calling Array.sort on an external array is not supposed to crash.
36 Array.prototype.sort.call(array);
34 Array.prototype.sort.call(array); class
H A Dregress-sort-arguments.js8 Array.prototype.sort.apply(a);
10 Array.prototype.sort.apply(a);
7 Array.prototype.sort.apply(a); class
H A Dstring-split-monkey-patching.js29 // monkey-patchable Array.prototype.push or PutValue.
31 Array.prototype.push = assertUnreachable;
33 Object.defineProperty(Array.prototype, "0", {
0 Array.prototype.push = assertUnreachable; class
H A Dregress-842.js28 // 842 describes a scenario where Object.prototype or Array.prototype is
32 Array.prototype.myfunc = function() {};
33 Array.prototype[10] = 42;
34 Array.prototype.length = 3000;
0 Array.prototype.myfunc = function() {}; class
H A Dregress-1160.js30 // Array.prototype.join uses a temporary array internally. Verify it
36 var array = Array(N);
40 Array.prototype.__defineSetter__(2, function() { });
39 Array.prototype.__defineSetter__(2, function() { }); class
H A Dregress-1625.js28 // Test that overwriting Array.prototype.push does not make
31 Array.prototype.push = 1;
0 Array.prototype.push = 1; class
H A Dregress-builtin-array-op.js32 Array.prototype.sort = function(fn) { foo = "fisk"; };
31 Array.prototype.sort = function(fn) { foo = "fisk"; }; class
H A Dregress-builtinbust-6.js5 // Test that Array builtins can be called on primitive values.
9 Array.prototype.join.call(v);
10 Array.prototype.pop.call(v);
11 Array.prototype.push.call(v);
12 Array.prototype.reverse.call(v);
13 Array.prototype.shift.call(v);
14 Array.prototype.slice.call(v);
15 Array.prototype.splice.call(v);
16 Array.prototype.unshift.call(v);
33 test_receiver(11, "Array
8 Array.prototype.join.call(v); class
[all...]
/external/chromium_org/v8/test/webkit/fast/js/
H A Darray-slow-put.js25 "Tests that defining a setter on the Array prototype works."
29 Array.prototype.__defineSetter__("3", function() { ouches++; });
28 Array.prototype.__defineSetter__("3", function() { ouches++; }); class
/external/chromium_org/v8/test/message/
H A Doverwritten-builtins.js29 Array.prototype.join = function() { return []; };
28 Array.prototype.join = function() { return []; }; class

Completed in 246 milliseconds

1234567