/arkcompiler/ets_frontend/es2panda/test/ |
D | test262skiplist-compiler-arm64.txt | 2 built-ins/Array/prototype/reduce/15.4.4.21-1-11.js 3 built-ins/Array/prototype/reduce/15.4.4.21-1-12.js 4 built-ins/Array/prototype/reduce/15.4.4.21-1-14.js 5 built-ins/Array/prototype/reduce/15.4.4.21-1-3.js 6 built-ins/Array/prototype/reduce/15.4.4.21-1-4.js 7 built-ins/Array/prototype/reduce/15.4.4.21-1-5.js 8 built-ins/Array/prototype/reduce/15.4.4.21-1-6.js 9 built-ins/Array/prototype/reduce/15.4.4.21-1-7.js 10 built-ins/Array/prototype/reduce/15.4.4.21-1-8.js 11 built-ins/Array/prototype/reduce/15.4.4.21-1-9.js [all …]
|
/arkcompiler/ets_frontend/test262/ |
D | es2015_tests.txt | 1 built-ins/Array/15.4.5.1-5-1.js 2 built-ins/Array/15.4.5.1-5-2.js 3 built-ins/Array/15.4.5-1.js 4 built-ins/Array/constructor.js 5 built-ins/Array/from/Array.from_arity.js 6 built-ins/Array/from/Array.from_forwards-length-for-array-likes.js 7 built-ins/Array/from/Array.from-descriptor.js 8 built-ins/Array/from/Array.from-name.js 9 built-ins/Array/from/calling-from-valid-1-noStrict.js 10 built-ins/Array/from/calling-from-valid-1-onlyStrict.js [all …]
|
D | CI_tests.txt | 1143 built-ins/String/raw/return-empty-string-from-empty-array-length.js 1316 built-ins/JSON/parse/reviver-array-get-prop-from-prototype.js 1317 built-ins/JSON/parse/reviver-array-non-configurable-prop-delete.js 1323 built-ins/JSON/stringify/replacer-array-empty.js 1324 built-ins/JSON/stringify/replacer-array-order.js 1325 built-ins/JSON/stringify/replacer-array-string-object.js 1330 built-ins/JSON/stringify/value-array-proxy.js 1360 built-ins/Array/15.4.5.1-5-1.js 1361 built-ins/Array/15.4.5-1.js 1400 built-ins/Array/constructor.js [all …]
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | arrayConstructors1.ts | 24 x = new Array(1); 25 AssertType(x = new Array(1), "any[]"); 27 AssertType(new Array(1), "any[]"); 28 AssertType(Array, "ArrayConstructor"); 31 x = new Array('hi', 'bye'); 32 AssertType(x = new Array('hi', 'bye'), "string[]"); 34 AssertType(new Array('hi', 'bye'), "string[]"); 35 AssertType(Array, "ArrayConstructor"); 39 x = new Array<string>('hi', 'bye'); 40 AssertType(x = new Array<string>('hi', 'bye'), "string[]"); [all …]
|
D | propertyAccessExpressionInnerComments.ts | 21 /*1*/Array/*2*/./*3*/toString/*4*/ 22 AssertType(Array/*2*/./*3*/toString, "() => string"); 24 /*1*/Array 25 AssertType(Array/*2*/./*3*/ // Single-line comment toString, "() => string"); 31 /*1*/Array/*2*/./*3*/ 32 AssertType(Array/*2*/./*3*/ // Single-line comment toString, "() => string"); 37 /*1*/Array 38 AssertType(Array // Single-line comment /*2*/./*3*/toString, "() => string"); 45 /*1*/Array/*2*/?./*3*/toString/*4*/ 46 AssertType(Array/*2*/?./*3*/toString, "() => string"); [all …]
|
D | staticAnonymousTypeNotReferencingTypeParameter.ts | 36 static clone<T>(dit: typeof ListWrapper2, array: T[]): T[] { 37 AssertType(array.slice(0), "T[]"); 38 return array.slice(0); 40 AssertType(array.slice, "(?number, ?number) => T[]"); 45 static reversed<T>(dit: typeof ListWrapper2, array: T[]): T[] { 46 let a = ListWrapper2.clone(dit, array); 48 AssertType(ListWrapper2.clone(dit, array), "T[]"); 51 AssertType(array, "T[]"); 59 …* Iterates through 'array' by index and performs the callback on each element of array until the c… 62 * If no such value is found, the callback is applied to each element of array and undefined is [all …]
|
D | keywordExpressionInternalComments.ts | 21 /*1*/ new /*2*/ Array /*3*/; 22 AssertType(new /*2*/ Array, "any[]"); 23 AssertType(Array, "ArrayConstructor"); 25 /*1*/ typeof /*2*/ Array /*3*/; 26 AssertType(typeof /*2*/ Array, "union"); 27 AssertType(Array, "ArrayConstructor"); 29 /*1*/ void /*2*/ Array /*3*/; 30 AssertType(void /*2*/ Array, "undefined"); 31 AssertType(Array, "ArrayConstructor"); 33 /*1*/ delete /*2*/ Array.toString /*3*/; [all …]
|
D | instanceOfAssignability.ts | 42 function fn1(x: Array<number>|Array<string>|boolean) { 43 if(x instanceof Array) { 44 AssertType(x instanceof Array, "boolean"); 46 AssertType(Array, "ArrayConstructor"); 48 // 1.5: y: Array<number>|Array<string> 49 // Want: y: Array<number>|Array<string> 126 function fn7(x: Array<number>|Array<string>) { 127 if(x instanceof Array) { 128 AssertType(x instanceof Array, "boolean"); 130 AssertType(Array, "ArrayConstructor"); [all …]
|
D | library_ArraySlice.ts | 21 // Array.prototype.slice can have zero, one, or two arguments 22 Array.prototype.slice(); 23 AssertType(Array.prototype.slice(), "any[]"); 24 AssertType(Array.prototype.slice, "(?number, ?number) => any[]"); 26 Array.prototype.slice(0); 27 AssertType(Array.prototype.slice(0), "any[]"); 28 AssertType(Array.prototype.slice, "(?number, ?number) => any[]"); 31 Array.prototype.slice(0, 1); 32 AssertType(Array.prototype.slice(0, 1), "any[]"); 33 AssertType(Array.prototype.slice, "(?number, ?number) => any[]");
|
D | arrayLiteral.ts | 21 // valid uses of array literals 27 let x = new Array(1); 29 AssertType(new Array(1), "any[]"); 30 AssertType(Array, "ArrayConstructor"); 44 let y = new Array<number>(); 46 AssertType(new Array<number>(), "number[]"); 47 AssertType(Array, "ArrayConstructor"); 53 let x2: number[] = new Array(1); 55 AssertType(new Array(1), "any[]"); 56 AssertType(Array, "ArrayConstructor"); [all …]
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | weak_ref_old_gc_test.cpp | 69 JSHandle<TaggedArray> array = thread->GetEcmaVM()->GetFactory()->NewTaggedArray(2); in ArrayTestCreate() local 70 return *array; in ArrayTestCreate() 76 auto array = vm->GetFactory()->NewTaggedArray(2, JSTaggedValue::Undefined(), true); in HWTEST_F_L0() local 78 array->Set(thread, 0, newObj1.GetTaggedValue()); in HWTEST_F_L0() 83 array->Set(thread, 1, value); in HWTEST_F_L0() 84 EXPECT_EQ(newObj1.GetTaggedValue(), array->Get(0)); in HWTEST_F_L0() 85 EXPECT_EQ(value, array->Get(1)); in HWTEST_F_L0() 87 EXPECT_EQ(newObj1.GetTaggedValue(), array->Get(0)); in HWTEST_F_L0() 88 EXPECT_EQ(JSTaggedValue::Undefined(), array->Get(1)); in HWTEST_F_L0() 94 JSHandle<TaggedArray> array = ecmaVM->GetFactory()->NewTaggedArray(2); in HWTEST_F_L0() local [all …]
|
D | weak_ref_semi_gc_test.cpp | 68 JSHandle<TaggedArray> array = thread->GetEcmaVM()->GetFactory()->NewTaggedArray(2); in ArrayTestCreate() local 69 return *array; in ArrayTestCreate() 75 JSHandle<TaggedArray> array = ecmaVM->GetFactory()->NewTaggedArray(2); in HWTEST_F_L0() local 76 EXPECT_TRUE(*array != nullptr); in HWTEST_F_L0() 78 array->Set(thread, 0, newObj1.GetTaggedValue()); in HWTEST_F_L0() 83 array->Set(thread, 1, value); in HWTEST_F_L0() 84 EXPECT_EQ(newObj1.GetTaggedValue(), array->Get(0)); in HWTEST_F_L0() 85 EXPECT_EQ(value, array->Get(1)); in HWTEST_F_L0() 87 EXPECT_EQ(newObj1.GetTaggedValue(), array->Get(0)); in HWTEST_F_L0() 88 EXPECT_EQ(JSTaggedValue::Undefined(), array->Get(1)); in HWTEST_F_L0() [all …]
|
D | js_api_plain_array_test.cpp | 107 JSHandle<JSAPIPlainArray> array(thread, CreatePlainArray()); in HWTEST_F_L0() local 116 JSAPIPlainArray::Add(thread, array, key, value); in HWTEST_F_L0() 125 JSAPIPlainArray::Add(thread, array, key, value); in HWTEST_F_L0() 127 EXPECT_EQ(array->GetSize(), static_cast<int>(NODE_NUMBERS)); in HWTEST_F_L0() 136 JSTaggedValue gvalue = array->GetKeyAt(i); in HWTEST_F_L0() 139 EXPECT_EQ(array->GetKeyAt(-1), JSTaggedValue::Undefined()); in HWTEST_F_L0() 140 EXPECT_EQ(array->GetKeyAt(NODE_NUMBERS), JSTaggedValue::Undefined()); in HWTEST_F_L0() 142 array->Clear(thread); in HWTEST_F_L0() 143 EXPECT_EQ(array->GetSize(), 0); // 0 means the value in HWTEST_F_L0() 154 JSHandle<JSAPIPlainArray> array(thread, CreatePlainArray()); in HWTEST_F_L0() local [all …]
|
/arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
D | test-schema.json | 34 "type": "array", 40 "type": "array", 46 "type": "array", 52 "type": "array", 65 "type": "array", 82 "type": "array", 97 "type": "array", 110 "type": "array", 128 "type": "array", 134 "type": "array", [all …]
|
D | lda.const.yaml | 17 title: Create and initialize new constant array 19 … Create a new single-dimensional constant literal array and put a reference to it into register. 25 diagnostics on constant array definition error. 45 - values: ['.array arr1'] 46 - values: ['.array arr1 i32'] 47 - values: ['.array arr1 i32 4'] 50 - values: ['.array arr1 i32 4 { }'] 51 - values: ['.array arr1 i32 4 { 1 }'] 52 - values: ['.array arr1 i32 4 { 1 2 3 4 5 }'] 53 - values: ['.array arr1 i32 0 { }'] [all …]
|
/arkcompiler/ets_frontend/ts2panda/src/ |
D | pandasm.ts | 41 public r: Array<number> | undefined; // resgs 42 public id: Array<string> | undefined; // ids 43 public im: Array<number> | undefined; // imms 49 regs: Array<number> | undefined = undefined, 50 ids: Array<string> | undefined = undefined, 51 imms: Array<number> | undefined = undefined, 68 public i: Array<Ins>; // ins 69 public l: Array<string> | undefined; // labels 70 public ca_tab: Array<CatchTable> | undefined; // catch tabels 71 public v: Array<VariableDebugInfo> | undefined; // variables [all …]
|
/arkcompiler/toolchain/tooling/test/testcases/ |
D | js_variable_second_test.h | 240 "object", "array", "Array", "Array(0)", "" } }, 242 "object", "array", "Array", "Array(0)", "" } }, 244 …{ "array0", { "object", "array", "Array", "Array(2)", "Apple,Banana", "0", "string", "Apple", "App… 281 …{ "array1", { "object", "array", "Array", "Array(3)", "banana,apple,peach", "0", "string", "banana… 284 …{ "array2", { "object", "array", "Array", "Array(3)", "banana,apple,peach", "0", "string", "banana… 287 … { "array3", { "object", "array", "Array", "Array(1)", "apple", "0", "string", "apple", "apple", 290 … { "array5", { "object", "array", "Array", "Array(1)", "", "length", "number", "1", "1" } }, 291 … { "array6", { "object", "array", "Array", "Array(1)", "helloworld", "0", "string", "helloworld", 293 { "array7", { "object", "array", "Array", "Array(1)", "false", "0", "object", "Object", 295 … { "array8", { "object", "array", "Array", "Array(1)", "[object Object]", "0", "object", "Object", [all …]
|
D | js_container_test.h | 250 … "[[ArrayList]]", "object", "array", "Array", "Array(6)", "8,15,3,10,288,188" } }, 252 … "object", "array", "Array", "Array(10)", "1888,5,3,13,1888,17,888,387,666,177" } }, 254 … "[[HashMap]]", "object", "array", "Array", "Array(1)", "[object Object]" } }, 256 "14", "[[HashSet]]", "object", "array", "Array", "Array(14)", 259 … "[[LightWeightMap]]", "object", "array", "Array", "Array(1)", "[object Object]" } }, 261 … "size", "number", "11", "11", "[[LightWeightSet]]", "object", "array", "Array", 262 "Array(11)", "4,66,388,566,578,593,855,100,one,four,three" } }, 264 "9", "9", "[[LinkedList]]", "object", "array", "Array", "Array(9)", 267 "12", "12", "[[List]]", "object", "array", "Array", "Array(12)", 270 … "[[PlainArray]]", "object", "array", "Array", "Array(1)", "[object Object]" } }, [all …]
|
/arkcompiler/ets_runtime/test/moduletest/arrayfindlast/ |
D | arrayfindlast.js | 18 * @tc.desc:test Array.findLast and Array.findLastIndex 25 result = arr.findLast((element, index, array) => { 26 array.length = 5; 35 result = arr.findLastIndex((element, index, array) => { 36 if (array.length == 5) { 37 array.push(100); 42 result = arr.findLastIndex((element, index, array) => { 47 var arr2 = new Array(1025); 48 result = arr2.findLast((element, index, array) => { 53 result = arr2.findLastIndex((element, index, array) => { [all …]
|
/arkcompiler/toolchain/tooling/base/ |
D | pt_returns.cpp | 33 std::unique_ptr<PtJson> array = PtJson::CreateArray(); in ToJson() local 38 array->Push(location); in ToJson() 40 result->Add("locations", array); in ToJson() 49 std::unique_ptr<PtJson> array = PtJson::CreateArray(); in ToJson() local 54 array->Push(location); in ToJson() 56 result->Add("locations", array); in ToJson() 79 std::unique_ptr<PtJson> array = PtJson::CreateArray(); in ToJson() local 84 array->Push(location); in ToJson() 86 result->Add("locations", array); in ToJson() 107 std::unique_ptr<PtJson> array = PtJson::CreateArray(); in ToJson() local [all …]
|
/arkcompiler/ets_runtime/ecmascript/ic/ |
D | proto_change_details.cpp | 20 …<ChangeListener> ChangeListener::Add(const JSThread *thread, const JSHandle<ChangeListener> &array, in Add() argument 24 if (!array->Full()) { in Add() 26 uint32_t arrayIndex = array->PushBack(thread, weakValue); in Add() 31 return array; in Add() 37 uint32_t holeIndex = CheckHole(array); in Add() 40 array->Set(thread, holeIndex, weakValue); in Add() 44 return array; in Add() 47 …JSHandle<WeakVector> newArray = WeakVector::Grow(thread, JSHandle<WeakVector>(array), array->GetCa… in Add() 57 uint32_t ChangeListener::CheckHole(const JSHandle<ChangeListener> &array) in CheckHole() argument 59 for (uint32_t i = 0; i < array->GetEnd(); i++) { in CheckHole() [all …]
|
/arkcompiler/ets_runtime/ecmascript/ic/tests/ |
D | ic_invoke_test.cpp | 57 JSHandle<TaggedArray> array = factory->NewTaggedArray(10); in HWTEST_F_L0() local 60 …thread, static_cast<ProfileTypeInfo *>(*array), slotId, func.GetTaggedValue(), JSTaggedValue(123)); in HWTEST_F_L0() 62 ASSERT_EQ(array->Get(thread, slotId), func.GetTaggedValue()); in HWTEST_F_L0() 63 ASSERT_EQ(array->Get(thread, slotId + 1), JSTaggedValue(123)); in HWTEST_F_L0() 86 JSHandle<TaggedArray> array = factory->NewTaggedArray(10); in HWTEST_F_L0() local 89 …thread, static_cast<ProfileTypeInfo *>(*array), slotId, 3, array1.GetTaggedValue(), array2.GetTagg… in HWTEST_F_L0() 91 JSTaggedValue slot = array->Get(thread, slotId); in HWTEST_F_L0() 100 ASSERT_EQ(array->Get(thread, slotId + 1), JSTaggedValue::Hole()); in HWTEST_F_L0() 107 JSHandle<TaggedArray> array = factory->NewTaggedArray(6); in HWTEST_F_L0() local 113 array->Set(thread, 0, func0.GetTaggedValue()); in HWTEST_F_L0() [all …]
|
/arkcompiler/toolchain/tooling/test/testcases/js/ |
D | variable_second.js | 56 var array5 = new Array(number0); 57 var array6 = new Array(string0); 58 var array7 = new Array(boolean0); 59 var array8 = new Array(obj0); 60 var array9 = new Array(function0); 61 var array10 = new Array(map0); 62 var array11 = new Array(set0); 63 var array12 = new Array(undefined0); 64 var array13 = new Array(array0); 65 var array14 = new Array(generator0); [all …]
|
/arkcompiler/ets_runtime/test/aottest/builtins_array/ |
D | builtins_array.ts | 17 // test new builtin array 18 let array1 = new Array(); 19 let array2 = new Array(1); 25 print(Array().length); // c++ path 26 print(Array(1).length); // c++ path 29 let array3 = new Array(-1); 36 let array3 = new Array(2.1); 43 let array3 = new Array(4294967296);
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_atomics_test.cpp | 64 JSTypedArray *CreateTypedArray(JSThread *thread, const JSHandle<TaggedArray> &array) in CreateTypedArray() argument 69 JSHandle<JSTaggedValue> jsarray(JSArray::CreateArrayFromList(thread, array)); in CreateTypedArray() 87 JSTypedArray *CreateTypedArray(JSThread *thread, const JSHandle<TaggedArray> &array, DataViewType t… in CreateTypedArray() argument 91 JSHandle<JSTaggedValue> jsarray(JSArray::CreateArrayFromList(thread, array)); in CreateTypedArray() 246 [[maybe_unused]] JSHandle<TaggedArray> array(factory->NewTaggedArray(3)); in HWTEST_F_L0() local 247 array->Set(thread, 0, JSTaggedValue(7)); in HWTEST_F_L0() 248 array->Set(thread, 1, JSTaggedValue(8)); in HWTEST_F_L0() 249 array->Set(thread, 2, JSTaggedValue(9)); in HWTEST_F_L0() 251 …JSHandle<JSTaggedValue> obj = JSHandle<JSTaggedValue>(thread, CreateTypedArray(thread, array, Data… in HWTEST_F_L0() 269 [[maybe_unused]] JSHandle<TaggedArray> array(factory->NewTaggedArray(10)); in HWTEST_F_L0() local [all …]
|