/external/v8/test/mjsunit/ |
array-splice.js | 28 // Check that splicing array of holes keeps it as array of holes 31 var array = new Array(10); 32 var spliced = array.splice(1, 1, 'one', 'two'); 36 assertEquals(11, array.length); 37 assertFalse(0 in array, "0 in array"); 38 assertTrue(1 in array); 39 assertTrue(2 in array); [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Boolean/ |
15.6.1.js | 55 var array = new Array(); 58 array[item++] = new TestCase( SECTION, "Boolean(1)", true, Boolean(1) ); 59 array[item++] = new TestCase( SECTION, "Boolean(0)", false, Boolean(0) ); 60 array[item++] = new TestCase( SECTION, "Boolean(-1)", true, Boolean(-1) ); 61 array[item++] = new TestCase( SECTION, "Boolean('1')", true, Boolean("1") ); 62 array[item++] = new TestCase( SECTION, "Boolean('0')", true, Boolean("0") ); 63 array[item++] = new TestCase( SECTION, "Boolean('-1')", true, Boolean("-1") ); 64 array[item++] = new TestCase( SECTION, "Boolean(true)", true, Boolean(true) ); 65 array[item++] = new TestCase( SECTION, "Boolean(false)", false, Boolean(false) ) [all...] |
15.6.4.2-1.js | 48 var array = new Array(); 51 array[item++] = new TestCase( SECTION, "new Boolean(1)", "true", (new Boolean(1)).toString() ); 52 array[item++] = new TestCase( SECTION, "new Boolean(0)", "false", (new Boolean(0)).toString() ); 53 array[item++] = new TestCase( SECTION, "new Boolean(-1)", "true", (new Boolean(-1)).toString() ); 54 array[item++] = new TestCase( SECTION, "new Boolean('1')", "true", (new Boolean("1")).toString() ); 55 array[item++] = new TestCase( SECTION, "new Boolean('0')", "true", (new Boolean("0")).toString() ); 56 array[item++] = new TestCase( SECTION, "new Boolean(true)", "true", (new Boolean(true)).toString() ); 57 array[item++] = new TestCase( SECTION, "new Boolean(false)", "false", (new Boolean(false)).toString() ); 58 array[item++] = new TestCase( SECTION, "new Boolean('true')", "true", (new Boolean('true')).toStrin (…) [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/String/ |
15.5.4.4-2.js | 59 var array = new Array(); 61 array[item++] = new TestCase( SECTION, "x = new Boolean(true); x.charAt=String.prototype.charAt;x.charAt(0)", "t", eval("x = new Boolean(true); x.charAt=String.prototype.charAt;x.charAt(0)") ); 62 array[item++] = new TestCase( SECTION, "x = new Boolean(true); x.charAt=String.prototype.charAt;x.charAt(1)", "r", eval("x = new Boolean(true); x.charAt=String.prototype.charAt;x.charAt(1)") ); 63 array[item++] = new TestCase( SECTION, "x = new Boolean(true); x.charAt=String.prototype.charAt;x.charAt(2)", "u", eval("x = new Boolean(true); x.charAt=String.prototype.charAt;x.charAt(2)") ); 64 array[item++] = new TestCase( SECTION, "x = new Boolean(true); x.charAt=String.prototype.charAt;x.charAt(3)", "e", eval("x = new Boolean(true); x.charAt=String.prototype.charAt;x.charAt(3)") ); 65 array[item++] = new TestCase( SECTION, "x = new Boolean(true); x.charAt=String.prototype.charAt;x.charAt(4)", "", eval("x = new Boolean(true); x.charAt=String.prototype.charAt;x.charAt(4)") ); 66 array[item++] = new TestCase( SECTION, "x = new Boolean(true); x.charAt=String.prototype.charAt;x.charAt(-1)", "", eval("x = new Boolean(true); x.charAt=String.prototype.charAt;x.charAt(-1)") ); 68 array[item++] = new TestCase( SECTION, "x = new Boolean(true); x.charAt=String.prototype.charAt;x.charAt(true)", "r", eval("x = new Boolean(true); x.charAt=String.prototype.charAt;x.charAt(true)") ); 69 array[item++] = new TestCase( SECTION, "x = new Boolean(true); x.charAt=String.prototype.charAt;x.ch (…) [all...] |
15.5.3.2-1.js | 52 var array = new Array(); 55 array[item++] = new TestCase( SECTION, "typeof String.fromCharCode", "function", typeof String.fromCharCode ); 56 array[item++] = new TestCase( SECTION, "typeof String.prototype.fromCharCode", "undefined", typeof String.prototype.fromCharCode ); 57 array[item++] = new TestCase( SECTION, "var x = new String(); typeof x.fromCharCode", "undefined", eval("var x = new String(); typeof x.fromCharCode") ); 58 array[item++] = new TestCase( SECTION, "String.fromCharCode.length", 1, String.fromCharCode.length ); 60 array[item++] = new TestCase( SECTION, "String.fromCharCode()", "", String.fromCharCode() ); 61 array[item++] = new TestCase( SECTION, "String.fromCharCode(0x0020)", " ", String.fromCharCode(0x0020) ); 62 array[item++] = new TestCase( SECTION, "String.fromCharCode(0x0021)", "!", String.fromCharCode(0x0021) ); 63 array[item++] = new TestCase( SECTION, "String.fromCharCode(0x0022)", "\"", String.fromCharCode( (…) [all...] |
15.5.4.4-4.js | 61 var array = new Array(); 64 array[item++] = new TestCase( SECTION, "x = null; x.__proto.charAt = String.prototype.charAt; x.charAt(0)", "n", eval("x=null; x.__proto__.charAt = String.prototype.charAt; x.charAt(0)") ); 65 array[item++] = new TestCase( SECTION, "x = null; x.__proto.charAt = String.prototype.charAt; x.charAt(1)", "u", eval("x=null; x.__proto__.charAt = String.prototype.charAt; x.charAt(1)") ); 66 array[item++] = new TestCase( SECTION, "x = null; x.__proto.charAt = String.prototype.charAt; x.charAt(2)", "l", eval("x=null; x.__proto__.charAt = String.prototype.charAt; x.charAt(2)") ); 67 array[item++] = new TestCase( SECTION, "x = null; x.__proto.charAt = String.prototype.charAt; x.charAt(3)", "l", eval("x=null; x.__proto__.charAt = String.prototype.charAt; x.charAt(3)") ); 69 array[item++] = new TestCase( SECTION, "x = undefined; x.__proto.charAt = String.prototype.charAt; x.charAt(0)", "u", eval("x=undefined; x.__proto__.charAt = String.prototype.charAt; x.charAt(0)") ); 70 array[item++] = new TestCase( SECTION, "x = undefined; x.__proto.charAt = String.prototype.charAt; x.charAt(1)", "n", eval("x=undefined; x.__proto__.charAt = String.prototype.charAt; x.charAt(1)") ); 71 array[item++] = new TestCase( SECTION, "x = undefined; x.__proto.charAt = String.prototype.charAt; x.charAt(2)", "d", eval("x=undefined; x.__proto__.charAt = String.prototype.charAt; x.charAt(2)") ); 72 array[item++] = new TestCase( SECTION, "x = undefined; x.__proto.charAt = String.prototype.charAt; x (…) [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/GlobalObject/ |
15.1.2.3-1.js | 75 var array = new Array(); 78 array[item++] = new TestCase( SECTION, "parseFloat.length", 1, parseFloat.length ); 80 array[item++] = new TestCase( SECTION, "parseFloat.length = null; parseFloat.length", 1, eval("parseFloat.length = null; parseFloat.length") ); 81 array[item++] = new TestCase( SECTION, "delete parseFloat.length", false, delete parseFloat.length ); 82 array[item++] = new TestCase( SECTION, "delete parseFloat.length; parseFloat.length", 1, eval("delete parseFloat.length; parseFloat.length") ); 83 array[item++] = new TestCase( SECTION, "var MYPROPS=''; for ( var p in parseFloat ) { MYPROPS += p }; MYPROPS", "", eval("var MYPROPS=''; for ( var p in parseFloat ) { MYPROPS += p }; MYPROPS") ); 85 array[item++] = new TestCase( SECTION, "parseFloat()", Number.NaN, parseFloat() ); 86 array[item++] = new TestCase( SECTION, "parseFloat('')", Number.NaN, parseFloat('') ); 88 array[item++] = new TestCase( SECTION, "parseFloat(' ')", Number.NaN, parseFloat(' ') ) [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Expressions/ |
11.13.2-3.js | 55 var array = new Array(); 60 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 %= VAR2", Number.NaN, eval("VAR1 = Number.NaN; VAR2=1; VAR1 %= VAR2") ); 61 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 %= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NaN; VAR2=1; VAR1 %= VAR2; VAR1") ); 62 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 %= VAR2", Number.NaN, eval("VAR1 = Number.NaN; VAR2=0; VAR1 %= VAR2") ); 63 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 %= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NaN; VAR2=0; VAR1 %= VAR2; VAR1") ); 64 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 %= VAR2", Number.NaN, eval("VAR1 = 0; VAR2=Number.NaN; VAR1 %= VAR2") ); 65 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 %= VAR2; VAR1", Number.NaN, eval("VAR1 = 0; VAR2=Number.NaN; VAR1 %= VAR2; VAR1") ); 69 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= Infinity; VAR1 %= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.POSITIVE_INFINITY; VAR2 = Number.POSITIVE_INFINITY; VAR1 %= VAR2; VAR1") ); 70 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= -Infinity; VAR1 %= VAR2; VAR1", Numbe (…) [all...] |
11.8.1.js | 53 var array = new Array(); 56 array[item++] = new TestCase( SECTION, "true < false", false, true < false ); 57 array[item++] = new TestCase( SECTION, "false < true", true, false < true ); 58 array[item++] = new TestCase( SECTION, "false < false", false, false < false ); 59 array[item++] = new TestCase( SECTION, "true < true", false, true < true ); 61 array[item++] = new TestCase( SECTION, "new Boolean(true) < new Boolean(true)", false, new Boolean(true) < new Boolean(true) ); 62 array[item++] = new TestCase( SECTION, "new Boolean(true) < new Boolean(false)", false, new Boolean(true) < new Boolean(false) ); 63 array[item++] = new TestCase( SECTION, "new Boolean(false) < new Boolean(true)", true, new Boolean(false) < new Boolean(true) ); 64 array[item++] = new TestCase( SECTION, "new Boolean(false) < new Boolean(false)", false, new Boolean( (…) [all...] |
11.8.2.js | 53 var array = new Array(); 56 array[item++] = new TestCase( SECTION, "true > false", true, true > false ); 57 array[item++] = new TestCase( SECTION, "false > true", false, false > true ); 58 array[item++] = new TestCase( SECTION, "false > false", false, false > false ); 59 array[item++] = new TestCase( SECTION, "true > true", false, true > true ); 61 array[item++] = new TestCase( SECTION, "new Boolean(true) > new Boolean(true)", false, new Boolean(true) > new Boolean(true) ); 62 array[item++] = new TestCase( SECTION, "new Boolean(true) > new Boolean(false)", true, new Boolean(true) > new Boolean(false) ); 63 array[item++] = new TestCase( SECTION, "new Boolean(false) > new Boolean(true)", false, new Boolean(false) > new Boolean(true) ); 64 array[item++] = new TestCase( SECTION, "new Boolean(false) > new Boolean(false)", false, new Boolean( (…) [all...] |
11.8.3.js | 52 var array = new Array(); 55 array[item++] = new TestCase( SECTION, "true <= false", false, true <= false ); 56 array[item++] = new TestCase( SECTION, "false <= true", true, false <= true ); 57 array[item++] = new TestCase( SECTION, "false <= false", true, false <= false ); 58 array[item++] = new TestCase( SECTION, "true <= true", true, true <= true ); 60 array[item++] = new TestCase( SECTION, "new Boolean(true) <= new Boolean(true)", true, new Boolean(true) <= new Boolean(true) ); 61 array[item++] = new TestCase( SECTION, "new Boolean(true) <= new Boolean(false)", false, new Boolean(true) <= new Boolean(false) ); 62 array[item++] = new TestCase( SECTION, "new Boolean(false) <= new Boolean(true)", true, new Boolean(false) <= new Boolean(true) ); 63 array[item++] = new TestCase( SECTION, "new Boolean(false) <= new Boolean(false)", true, new Boolean( (…) [all...] |
11.8.4.js | 53 var array = new Array(); 56 array[item++] = new TestCase( SECTION, "true >= false", true, true >= false ); 57 array[item++] = new TestCase( SECTION, "false >= true", false, false >= true ); 58 array[item++] = new TestCase( SECTION, "false >= false", true, false >= false ); 59 array[item++] = new TestCase( SECTION, "true >= true", true, true >= true ); 61 array[item++] = new TestCase( SECTION, "new Boolean(true) >= new Boolean(true)", true, new Boolean(true) >= new Boolean(true) ); 62 array[item++] = new TestCase( SECTION, "new Boolean(true) >= new Boolean(false)", true, new Boolean(true) >= new Boolean(false) ); 63 array[item++] = new TestCase( SECTION, "new Boolean(false) >= new Boolean(true)", false, new Boolean(false) >= new Boolean(true) ); 64 array[item++] = new TestCase( SECTION, "new Boolean(false) >= new Boolean(false)", true, new Boolean( (…) [all...] |
11.13.2-4.js | 55 var array = new Array(); 60 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 += VAR2", Number.NaN, eval("VAR1 = Number.NaN; VAR2=1; VAR1 += VAR2") ); 61 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 += VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NaN; VAR2=1; VAR1 += VAR2; VAR1") ); 62 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 += VAR2", Number.NaN, eval("VAR1 = Number.NaN; VAR2=0; VAR1 += VAR2") ); 63 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 += VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NaN; VAR2=0; VAR1 += VAR2; VAR1") ); 64 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 += VAR2", Number.NaN, eval("VAR1 = 0; VAR2=Number.NaN; VAR1 += VAR2") ); 65 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 += VAR2; VAR1", Number.NaN, eval("VAR1 = 0; VAR2=Number.NaN; VAR1 += VAR2; VAR1") ); 70 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= Infinity; VAR1 += VAR2; VAR1", Number.POSITIVE_INFINITY, eval("VAR1 = Number.POSITIVE_INFINITY; VAR2 = Number.POSITIVE_INFINITY; VAR1 += VAR2; VAR1") ); 71 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= -Infinity; VAR1 += VAR2; VAR1", Numbe (…) [all...] |
11.13.2-5.js | 55 var array = new Array(); 60 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 -= VAR2", Number.NaN, eval("VAR1 = Number.NaN; VAR2=1; VAR1 -= VAR2") ); 61 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 -= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NaN; VAR2=1; VAR1 -= VAR2; VAR1") ); 62 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 -= VAR2", Number.NaN, eval("VAR1 = Number.NaN; VAR2=0; VAR1 -= VAR2") ); 63 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 -= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NaN; VAR2=0; VAR1 -= VAR2; VAR1") ); 64 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 -= VAR2", Number.NaN, eval("VAR1 = 0; VAR2=Number.NaN; VAR1 -= VAR2") ); 65 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 -= VAR2; VAR1", Number.NaN, eval("VAR1 = 0; VAR2=Number.NaN; VAR1 -= VAR2; VAR1") ); 70 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= Infinity; VAR1 -= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.POSITIVE_INFINITY; VAR2 = Number.POSITIVE_INFINITY; VAR1 -= VAR2; VAR1") ); 71 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= -Infinity; VAR1 -= VAR2; VAR1", Numb (…) [all...] |
11.4.2.js | 42 var array = new Array(); 45 array[item++] = new TestCase( SECTION, "void(new String('string object'))", void 0, void(new String( 'string object' )) ); 46 array[item++] = new TestCase( SECTION, "void('string primitive')", void 0, void("string primitive") ); 47 array[item++] = new TestCase( SECTION, "void(Number.NaN)", void 0, void(Number.NaN) ); 48 array[item++] = new TestCase( SECTION, "void(Number.POSITIVE_INFINITY)", void 0, void(Number.POSITIVE_INFINITY) ); 49 array[item++] = new TestCase( SECTION, "void(1)", void 0, void(1) ); 50 array[item++] = new TestCase( SECTION, "void(0)", void 0, void(0) ); 51 array[item++] = new TestCase( SECTION, "void(-1)", void 0, void(-1) ); 52 array[item++] = new TestCase( SECTION, "void(Number.NEGATIVE_INFINITY)", void 0, void(Number. (…) [all...] |
/external/clang/test/SemaCXX/ |
static-array-member.cpp | 4 static int array[]; member in struct:X0 10 int X0::array[sizeof(X0) * 2]; member in class:X0 14 static T array[]; member in struct:X1 18 T X1<T, N>::array[N]; member in class:X1
|
warn-char-subscripts.cpp | 5 int array[1] = { 0 }; local 7 int val = array[subscript]; // expected-warning{{array subscript is of type 'char'}} 12 int array[1] = { 0 }; local 14 int val = subscript[array]; // expected-warning{{array subscript is of type 'char'}}
|
/ndk/sources/cxx-stl/llvm-libc++/test/containers/sequences/array/ |
version.pass.cpp | 10 // <array> 12 #include <array>
|
/dalvik/dx/src/com/android/dx/io/instructions/ |
ShortArrayCodeInput.java | 26 /** source array to read from */ 27 private final short[] array; field in class:ShortArrayCodeInput 32 public ShortArrayCodeInput(short[] array) { 33 if (array == null) { 34 throw new NullPointerException("array == null"); 37 this.array = array; 42 return cursor() < array.length; 48 int value = array[cursor()];
|
/external/dexmaker/src/dx/java/com/android/dx/io/instructions/ |
ShortArrayCodeInput.java | 26 /** source array to read from */ 27 private final short[] array; field in class:ShortArrayCodeInput 32 public ShortArrayCodeInput(short[] array) { 33 if (array == null) { 34 throw new NullPointerException("array == null"); 37 this.array = array; 42 return cursor() < array.length; 48 int value = array[cursor()];
|
/bionic/libc/arch-arm/bionic/ |
crtbegin.c | 43 structors_array_t array; local 44 array.preinit_array = &__PREINIT_ARRAY__; 45 array.init_array = &__INIT_ARRAY__; 46 array.fini_array = &__FINI_ARRAY__; 49 __libc_init(raw_args, NULL, &main, &array);
|
/bionic/libc/arch-x86/bionic/ |
crtbegin.c | 45 structors_array_t array; local 46 array.preinit_array = &__PREINIT_ARRAY__; 47 array.init_array = &__INIT_ARRAY__; 48 array.fini_array = &__FINI_ARRAY__; 51 __libc_init(raw_args, NULL, &main, &array);
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Array/ |
15.4.4.5-3.js | 24 ECMA Section: Array.prototype.sort(comparefn) 41 var TITLE = "Array.prototype.sort(comparefn)"; 45 var testcases = new Array(); 64 var array = new Array(); 66 array[array.length] = new Date( TIME_2000 * Math.PI ); 67 array[array.length] = new Date( TIME_2000 * 10 ); 68 array[array.length] = new Date( TIME_1900 + TIME_1900 ) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/test/algorithms/alg.sorting/alg.sort/sort/ |
sort.pass.cpp | 79 // create array length N filled with M different numbers 80 int* array = new int[N]; local 84 array[i] = x; 89 std::sort(array, array+N); 90 assert(std::is_sorted(array, array+N)); 92 std::random_shuffle(array, array+N); 93 std::sort(array, array+N) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/test/algorithms/alg.sorting/alg.sort/stable.sort/ |
stable_sort.pass.cpp | 79 // create array length N filled with M different numbers 80 int* array = new int[N]; local 84 array[i] = x; 89 std::stable_sort(array, array+N); 90 assert(std::is_sorted(array, array+N)); 92 std::random_shuffle(array, array+N); 93 std::stable_sort(array, array+N) [all...] |