Searched defs:array (Results 1 - 25 of 1079) sorted by relevance

1234567891011>>

/external/chromium_org/v8/test/webkit/
H A Darray-reset-large-index.js28 var array = []; variable
29 array[10001] = 0;
30 array[10001] = 5;
31 array[10002] = "a";
32 array[10002] = "b";
34 shouldBe('array[10001]', '5');
35 shouldBe('array[10002]', '"b"');
H A Dsort-with-side-effecting-comparisons.js25 "Checks that sorting an array with a side-effecting comparison function doesn't trigger assertions."
28 var array = []; variable
31 array.push(i);
33 array.sort(function(a, b) {
34 array.shift();
H A Dsparse-array.js25 'This tests some sparse array operations.'
28 var array = [ ]; variable
30 array[50000] = 100;
32 shouldBe('array[0]', 'undefined');
33 shouldBe('array[49999]', 'undefined');
34 shouldBe('array[50000]', '100');
35 shouldBe('array[50001]', 'undefined');
36 array[0]++;
37 shouldBe('array[0]', 'NaN');
38 shouldBe('array[4999
[all...]
H A Darray-index-immediate-types.js28 var array = ["Zero", "One"]; variable
30 shouldBe("array[0]", '"Zero"');
31 shouldBe("array[null]", "undefined");
32 shouldBe("array[undefined]", "undefined");
33 shouldBe("array[true]", "undefined");
34 shouldBe("array[false]", "undefined");
36 function putSelf(array, index)
39 array[index] = index;
H A Darray-sort-small-sparse-array-with-large-length.js25 "Tests that we can quickly sort a small sparse array that has a large length."
28 var array = []; variable
29 array[10000000] = 42;
30 array.sort();
32 for (var s in array) {
33 debug("array[" + s + "] = " + array[s]);
36 result += array[s];
39 shouldBe("array.length", "10000001");
40 shouldBe("array[
[all...]
H A Ddfg-ensure-array-storage-on-string.js25 "Checks that trying to arrayify a string to have array storage doesn't crash."
28 function foo(array) {
30 for (var i = 0; i < array.length; ++i)
31 result += array[i];
35 var array = [1, 2, 3]; variable
37 shouldBe("foo(array)", "6");
39 array = [1, , 3];
40 array.__defineGetter__(1, function() { return 6; });
42 shouldBe("foo(array)", "10");
H A Ddfg-ensure-array-storage-on-window.js25 "Tests that passing the global object to an array access that will arrayify to ArrayWithArrayStorage doesn't break things."
28 function foo(array) {
30 for (var i = 0; i < array.length; ++i)
31 result += array[i];
35 var array = [1, 2, 3]; variable
37 shouldBe("foo(array)", "6");
39 array = [1, , 3];
40 array.__defineGetter__(1, function() { return 6; });
42 shouldBe("foo(array)", "10");
H A Ddfg-ensure-contiguous-on-string.js28 function foo(array) {
30 for (var i = 0; i < array.length; ++i)
31 result += array[i];
35 var array = [1, 2, 3]; variable
37 shouldBe("foo(array)", "6");
39 array = [1, false, 3];
41 shouldBe("foo(array)", "4");
H A Ddfg-force-exit-then-sparse-conditional-constant-prop-in-loop.js42 var array = [54, 5432, 1234, 54, 1235, 64, 75, 532, 64, 2]; variable
45 shouldBe("foo(array)", "8746");
H A Ddfg-cfg-simplify-redundant-dead-get-local.js28 var array = []; variable
45 array.push(dist);
53 for (var i = 0; i < array.length; ++i)
54 shouldBe("array[i]", "2.23606797749979");
/external/clang/test/CodeGen/
H A D2007-11-29-ArraySizeFromInitializer.c3 int array[] = {1, 2, 3, 4, 5}; variable
/external/eigen/doc/snippets/
H A DMap_general_stride.cpp1 int array[24]; variable
2 for(int i = 0; i < 24; ++i) array[i] = i;
4 (array, 3, 3, Stride<Dynamic,2>(8, 2))
H A DMap_inner_stride.cpp1 int array[12]; variable
2 for(int i = 0; i < 12; ++i) array[i] = i;
4 (array, 6) // the inner stride has already been passed as template parameter
H A DMap_outer_stride.cpp1 int array[12]; variable
2 for(int i = 0; i < 12; ++i) array[i] = i;
3 cout << Map<MatrixXi, 0, OuterStride<> >(array, 3, 3, OuterStride<>(4)) << endl;
H A DMap_simple.cpp1 int array[9]; variable
2 for(int i = 0; i < 9; ++i) array[i] = i;
3 cout << Map<Matrix3i>(array) << endl;
H A DTutorial_Map_rowmajor.cpp1 int array[8]; variable
2 for(int i = 0; i < 8; ++i) array[i] = i;
3 cout << "Column-major:\n" << Map<Matrix<int,2,4> >(array) << endl;
4 cout << "Row-major:\n" << Map<Matrix<int,2,4,RowMajor> >(array) << endl;
6 Map<Matrix<int,2,4>, Unaligned, Stride<1,4> >(array) << endl;
/external/chromium_org/v8/test/mjsunit/
H A Darray-push2.js5 var array = []; variable
13 array[0] = 10;
14 assertEquals(0, array.length);
16 assertEquals("get 10", array[0]);
18 array.push(100);
19 assertEquals(1, array.length);
21 assertEquals("get 110", array[0]);
H A Darray-push3.js7 var array = []; variable
9 function push(array, value) {
10 array.push(value);
13 push(array, 0);
14 push(array, 1);
15 push(array, 2);
17 push(array, 3);
25 push(array, 4);
27 assertEquals(5, array.length);
28 assertEquals(100, array[
[all...]
H A Darray-push8.js7 function push_wrapper(array, value) {
8 array.push(value);
10 function pop_wrapper(array) {
11 return array.pop();
16 var array = [2, 2]; variable
17 Object.freeze(array);
19 try { push_wrapper(array, 1); } catch (e) {}
20 assertEquals(2, array.length);
21 try { push_wrapper(array, 1); } catch (e) {}
22 assertEquals(2, array
[all...]
H A Darray-push9.js7 var array = []; variable
9 function push(array, value) {
10 array.push(value);
13 push(array, 0);
14 push(array, 1);
15 push(array, 2);
17 push(array, 3);
25 push(array, 4);
27 assertEquals(5, array.length);
28 assertEquals(100, array[
[all...]
H A Dstring-split-cache.js38 var array = str.split(""); variable
40 assertArrayEquals(expected, array);
/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-smi-only-concat.js30 // This tests that concatenating a fast smi-only array and a fast object array
31 // results in a fast object array.
34 var array = fast_array.concat(fast_array); variable
37 assertTrue(%HasFastObjectElements(array));
H A Dregress-2596.js36 var array = [3.5, 3.5]; variable
37 array.__proto__ = prototype;
38 assertTrue(%HasFastDoubleElements(array));
41 array[index] = doubles[0];
42 return array[index];
H A Dregress-crbug-222893.js34 var array = ["a", "b", "c"]; variable
39 assertArrayEquals(array,
55 f.apply(this, array);
62 g.apply(this, array);
/external/chromium_org/third_party/WebKit/Source/platform/heap/
H A DHeapTerminatedArrayBuilder.h17 explicit HeapTerminatedArrayBuilder(HeapTerminatedArray<T>* array) : TerminatedArrayBuilder<T, HeapTerminatedArray>(array) { } argument

Completed in 7340 milliseconds

1234567891011>>