| /arkcompiler/ets_runtime/test/aottest/large_func/ |
| D | large_func.ts | 16 function add(a:number, b:number):number function 21 add(1, 2); 22 add(1, 2); 23 add(1, 2); 24 add(1, 2); 25 add(1, 2); 26 add(1, 2); 27 add(1, 2); 28 add(1, 2); 29 add(1, 2); [all …]
|
| /arkcompiler/ets_runtime/test/aottest/large_func_acc/ |
| D | large_func_acc.ts | 16 function add(a:number, b:number):number function 22 r += add(1, 2); 23 r += add(1, 2); 24 r += add(1, 2); 25 r += add(1, 2); 26 r += add(1, 2); 27 r += add(1, 2); 28 r += add(1, 2); 29 r += add(1, 2); 30 r += add(1, 2); [all …]
|
| /arkcompiler/toolchain/tooling/dynamic/test/testcases/js/ |
| D | container.js | 20 arrayList.add(5); 22 arrayList.add(8); 24 arrayList.add(15); 25 arrayList.add(3); 26 arrayList.add(10); 27 arrayList.add(288); 28 arrayList.add(188); 77 hashSet.add(5); 78 hashSet.add(18); 79 hashSet.add(2); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/ArrayList/ |
| D | ArrayListRemoveTest.ets | 43 arrayList.add("zhang san"); 44 arrayList.add(1); 48 arrayList.add(temp); 49 arrayList.add(undefined); 50 arrayList.add(null); 51 arrayList.add(true); 53 arrayList.add(array); 54 arrayList.add(""); 55 arrayList.add("`"); 56 arrayList.add("%"); [all …]
|
| D | ArrayListSortCloneTest.ets | 26 suite.addTest("Testing ArrayList insert->add->subArrayList->clear", testArrayListClear0001); 27 suite.addTest("Testing ArrayList insert->add->subArrayList->clone", testArrayListClone0001); 28 …suite.addTest("Testing ArrayList insert->add->subArrayList->clear->clone", testArrayListClone0002); 35 arrayList.add(1); 36 arrayList.add(22); 37 arrayList.add(3); 38 arrayList.add(24); 39 arrayList.add(5); 40 arrayList.add(51); 41 arrayList.add(8); [all …]
|
| D | ArrayListForEachTest.ets | 26 …suite.addTest("Testing ArrayList replaceAllElement add same data", testArrayListReplaceAllElement0… 30 suite.addTest("Testing ArrayList add->forEach->convertToArray", testArrayListForEach0003); 42 arrayList.add("zhang san"); 43 arrayList.add(""); 44 arrayList.add("`"); 45 arrayList.add("%"); 46 arrayList.add(`"`); 59 arrayList.add("zhang san"); 60 arrayList.add(1); 64 arrayList.add(temp); [all …]
|
| D | ArrayListLengthTest.ets | 28 suite.addTest("Testing ArrayList add different dataType data", testArrayListAdd0001); 29 suite.addTest("Testing ArrayList add special string", testArrayListAdd0002); 54 arrayList.add("zhang san"); 55 arrayList.add(1); 59 arrayList.add(temp); 60 arrayList.add(undefined); 61 arrayList.add(null); 62 arrayList.add(true); 64 arrayList.add([0, 1, 2, 4]); 82 arrayList.add(""); [all …]
|
| D | ArrayListCapacityTest.ets | 44 …suite.addTest("Testing ArrayList insert->add->remove->subArrayList->getCapacity", testArrayListGet… 45 suite.addTest("Testing ArrayList insert->add->remove->subArrayList->clear->getCapacity", 61 arrayList.add(1); 62 arrayList.add(22); 74 arrayList.add(1); 75 arrayList.add(22); 88 arrayList.add(dog); 99 arrayList.add(dog); 140 arrayList.add(2); 141 arrayList.add(4); [all …]
|
| /arkcompiler/toolchain/tooling/dynamic/base/ |
| D | pt_events.cpp | 22 result->Add("breakpointId", breakpointId_.c_str()); in ToJson() 24 result->Add("location", location_->ToJson()); in ToJson() 27 object->Add("method", GetName().c_str()); in ToJson() 28 object->Add("params", result); in ToJson() 43 result->Add("callFrames", array); in ToJson() 44 result->Add("reason", reason_.c_str()); in ToJson() 47 result->Add("data", data_.value()->ToJson()); in ToJson() 55 result->Add("hitBreakpoints", breakpoints); in ToJson() 59 result->Add("asyncStackTrace", ToJson(*asyncStack_, asyncCallChainDepth_ - 1)); in ToJson() 63 object->Add("method", GetName().c_str()); in ToJson() [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/container/ |
| D | container_plainarray.js | 31 let ret = proxy.add(0, "0") 32 proxy.add(1, "1") 33 proxy.add(2, "2") 34 proxy.add(3, "3") 35 proxy.add(4, "4") 36 proxy.add(5, "5") 43 map.set("test plainarray add:", res) 44 map.set("test plainarray 'add' ret:", ret === undefined) 110 proxy1.add(0, "0") 111 proxy1.add(1, "1") [all …]
|
| D | container_treeset.js | 34 set.add("aa"); 35 set.add("bb"); 40 set.add("cc"); 83 set.add("ee"); 84 set.add("dd"); 103 cmmp.add("aa"); 104 cmmp.add("bb"); 107 cmmp.add(null, 1); 108 cmmp.add(undefined, 1); 113 comset.add("c"); [all …]
|
| D | container_hashset.js | 28 set.add("aa"); 29 set.add("bb"); 34 set.add("cc"); 67 set.add("ee"); 68 set.add("dd"); 85 proxy.add("aa"); 86 proxy.add("bb"); 91 proxy.add("cc"); 126 collisionSet.add(1224); 127 collisionSet.add(1288); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/containers/ |
| D | BasicSetTest.ets | 22 failures += test(createSetAndAdd(), "Create Set and Add single item") 24 failures += test(createSetAddAndClear(), "Create Set add and clear it") 25 failures += test(createSetAddAndRemove(), "Create Set add and remove some key") 49 set.add(c'a') 50 set.add(c'b') 51 set.add(c'c') 71 set.add(c'a') 72 set.add(c'c') 73 set.add(c'b') 74 set.add(c'c') [all …]
|
| /arkcompiler/ets_runtime/test/aottest/builtin_inlining/set/Clear/ |
| D | builtinSetClear.ts | 67 mySet.add(0); 68 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetClear 69 mySet.add(12); 70 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetClear 85 mySet.add(0); 86 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetClear 87 mySet.add(12); 88 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetClear 99 mySet.add(0); 100 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetClear [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/LinkedList/ |
| D | LinkedListCreateLengthAddTest.ets | 19 const suite = new ArkTestsuite("LinkedList Create, Length, and Add API tests"); 25 suite.addTest("LinkedList length with add large value", testLengthWithLargeValue); 26 … suite.addTest("LinkedList add elements of multiple types to the container", testAddMultipleTypes); 27 suite.addTest("LinkedList add special characters to the container", testAddSpecialCharacters); 28 …suite.addTest("LinkedList add an element of the declared type to the first position", testAddFirst… 29 suite.addTest("LinkedList add null to the first position", testAddFirstNull); 30 suite.addTest("LinkedList add special characters to the first", testAddFirstSpecialCharacters); 63 linkedList.add(TestData.testNumber1); 76 linkedList.add(TestData.testNumber1); 77 linkedList.add(TestData.testString1); [all …]
|
| /arkcompiler/toolchain/tooling/dynamic/test/ |
| D | pt_params_test.cpp | 56 ptJson->Add("maxScriptsCacheSize", attribute.c_str()); in HWTEST_F_L0() 65 ptJson->Add("objectGroup", 0); in HWTEST_F_L0() 66 ptJson->Add("includeCommandLineAPI", attribute.c_str()); in HWTEST_F_L0() 67 ptJson->Add("silent", attribute.c_str()); in HWTEST_F_L0() 68 ptJson->Add("returnByValue", attribute.c_str()); in HWTEST_F_L0() 69 ptJson->Add("generatePreview", attribute.c_str()); in HWTEST_F_L0() 70 ptJson->Add("throwOnSideEffect", attribute.c_str()); in HWTEST_F_L0() 82 ptJson->Add("start", start); in HWTEST_F_L0() 83 ptJson->Add("end", end); in HWTEST_F_L0() 86 ptJson1->Add("end", attribute.c_str()); in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/LightWeightSet/ |
| D | LightWeightSetAddAllHasAllHasTest.ets | 43 lightWeightSett.add("aa"); 44 lightWeightSett.add("bb"); 46 … assertEQ(result, true, "The lightWeightSet should add all elements from another lightWeightSet"); 54 … assertEQ(result, false, "The lightWeightSet should add all elements from another lightWeightSet"); 61 setA.add("aa"); 62 setB.add("bb"); 64 … assertEQ(result, true, "The lightWeightSet should add all elements from another lightWeightSet"); 71 setA.add("sparrow"); 72 setA.add("s"); 74 setB.add("s"); [all …]
|
| D | LightWeightSetGetValueAtTest.ets | 38 lightWeightSet.add("aa"); 39 lightWeightSet.add("bb"); 40 lightWeightSet.add("cc"); 48 lightWeightSet.add("aa"); 49 lightWeightSet.add("bb"); 50 lightWeightSet.add("cc"); 58 lightWeightSet.add("aa"); 59 lightWeightSet.add("bb"); 69 lightWeightSet.add("aa"); 70 lightWeightSet.add("bb"); [all …]
|
| /arkcompiler/runtime_core/static_core/docs/ |
| D | irtoc.md | 15 …n the IR instructions has corresponding token in the irtoc lang. For example, IR instruction `Add`: 17 - opcode: Add 21 description: Add two inputs. 23 has keyword with the same name `Add` and with same signature: 25 var = Add(input1, input2) 31 var = Add(input1, input2).i64.CC(:CC_GE).pc(123) 41 In last example variable `var` holds the newly created instruction `Add` and it can be input for th… 44 var = Add(input1, input2).i64.CC(:CC_GE).pc(123) 49 Return(Add(input1, input2).i64.CC(:CC_GE).pc(123)).i64 56 For example, add 1 to the biggest value: [all …]
|
| /arkcompiler/runtime_core/docs/ |
| D | irtoc.md | 15 …n the IR instructions has corresponding token in the irtoc lang. For example, IR instruction `Add`: 17 - opcode: Add 21 description: Add two inputs. 23 has keyword with the same name `Add` and with same signature: 25 var = Add(input1, input2) 31 var = Add(input1, input2).i64.CC(:CC_GE).pc(123) 41 In last example variable `var` holds the newly created instruction `Add` and it can be input for th… 44 var = Add(input1, input2).i64.CC(:CC_GE).pc(123) 49 Return(Add(input1, input2).i64.CC(:CC_GE).pc(123)).i64 56 For example, add 1 to the biggest value: [all …]
|
| /arkcompiler/ets_runtime/test/aottest/builtin_inlining/set/Add/ |
| D | builtinSetAdd.ts | 26 return mySet.add(x); 38 print(x.add(y)); 46 print(mySet.add()); 47 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetAdd 56 mySet.add(125); 57 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetAdd 65 mySet.add(0, undefined); 66 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetAdd 74 mySet.add(0, "ab", 14); 75 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetAdd [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/PlainArray/ |
| D | PlainArrayCloneAddTests.ets | 24 suite.addTest("PlainArray add to single-type container", testAddSingleType); 25 suite.addTest("PlainArray add to composite-type container", testAddCompositeType); 26 suite.addTest("PlainArray add same key", testAddSameKey); 27 suite.addTest("PlainArray add same value", testAddSameValue); 28 suite.addTest("PlainArray add special number", testAddSpecialNumber); 35 plainArray.add(i, sourceArray[i]); 82 clonePlainArray.add(TestData.testNumber6, TestData.testNumber1); 90 plainArray.add(TestData.testNumber1, TestData.testNumber1); 96 plainArray.add(TestData.testNumber1, TestData.testNumber1); 97 plainArray.add(TestData.testNumber2, TestData.testString1); [all …]
|
| /arkcompiler/runtime_core/static_core/irtoc/scripts/ |
| D | tests.irt | 34 r1 := Add(res, 2).u64 35 v0 := Add(value, 2).u64 38 r2 := Add(res, 1).u64 39 v1 := Add(value, 1).u64 49 i1 := Add(i, 1).u64 76 r1 := Add(res, 2).u64 77 v0 := Add(value, 2).u64 81 r2 := Add(res, 1).u64 82 v1 := Add(value, 1).u64 93 i1 := Add(i, 1).u64 [all …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/ |
| D | add.yaml | 17 - file-name: add 28 - sig: add v1:in:i32, v2:in:i32 35 add v0, v1 43 description: Check add with zero and various values. 76 - sig: add v1:in:i32, v2:in:i32 83 add v0, v1 91 description: Check add with +1 and various values. 125 - sig: add v1:in:i32, v2:in:i32 132 add v0, v1 140 description: Check add with -1 and various values. [all …]
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | add.yaml | 17 - file-name: add 28 - sig: add v1:in:i32, v2:in:i32 35 add v0, v1 43 description: Check add with zero and various values. 75 - sig: add v1:in:i32, v2:in:i32 82 add v0, v1 90 description: Check add with +1 and various values. 123 - sig: add v1:in:i32, v2:in:i32 130 add v0, v1 138 description: Check add with -1 and various values. [all …]
|