/arkcompiler/ets_runtime/ecmascript/containers/tests/ |
D | containers_lightweightmap_test.cpp | 142 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in HWTEST_F_L0() local 143 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 144 callInfo->SetThis(lightWeightMap.GetTaggedValue()); in HWTEST_F_L0() 145 callInfo->SetCallArg(0, JSTaggedValue(i)); in HWTEST_F_L0() 146 callInfo->SetCallArg(1, JSTaggedValue(i + 1)); in HWTEST_F_L0() 148 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo); in HWTEST_F_L0() 149 JSTaggedValue result = ContainersLightWeightMap::Set(callInfo); in HWTEST_F_L0() 168 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in HWTEST_F_L0() local 169 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 170 callInfo->SetThis(lightWeightMap.GetTaggedValue()); in HWTEST_F_L0() [all …]
|
D | containers_vector_test.cpp | 169 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0() local 170 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 171 callInfo->SetThis(vector.GetTaggedValue()); in HWTEST_F_L0() 172 callInfo->SetCallArg(0, JSTaggedValue(i)); in HWTEST_F_L0() 174 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo); in HWTEST_F_L0() 175 JSTaggedValue result = ContainersVector::Add(callInfo); in HWTEST_F_L0() 190 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0() local 191 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 192 callInfo->SetThis(vector.GetTaggedValue()); in HWTEST_F_L0() 193 callInfo->SetCallArg(0, key.GetTaggedValue()); in HWTEST_F_L0() [all …]
|
D | containers_treemap_test.cpp | 193 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in HWTEST_F_L0() local 194 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 195 callInfo->SetThis(tmap.GetTaggedValue()); in HWTEST_F_L0() 196 callInfo->SetCallArg(0, JSTaggedValue(i)); in HWTEST_F_L0() 197 callInfo->SetCallArg(1, JSTaggedValue(i)); in HWTEST_F_L0() 199 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo); in HWTEST_F_L0() 200 JSTaggedValue result = ContainersTreeMap::Set(callInfo); in HWTEST_F_L0() 218 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in HWTEST_F_L0() local 219 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 220 callInfo->SetThis(tmap.GetTaggedValue()); in HWTEST_F_L0() [all …]
|
D | containers_treeset_test.cpp | 189 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0() local 190 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 191 callInfo->SetThis(tset.GetTaggedValue()); in HWTEST_F_L0() 192 callInfo->SetCallArg(0, JSTaggedValue(i)); in HWTEST_F_L0() 194 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo); in HWTEST_F_L0() 195 JSTaggedValue result = ContainersTreeSet::Add(callInfo); in HWTEST_F_L0() 210 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0() local 211 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 212 callInfo->SetThis(tset.GetTaggedValue()); in HWTEST_F_L0() 213 callInfo->SetCallArg(0, key.GetTaggedValue()); in HWTEST_F_L0() [all …]
|
D | containers_lightweightset_test.cpp | 143 auto callInfo = in HWTEST_F_L0() local 145 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 146 callInfo->SetThis(lightWeightSet.GetTaggedValue()); in HWTEST_F_L0() 147 callInfo->SetCallArg(0, JSTaggedValue(i + 1)); in HWTEST_F_L0() 149 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo); in HWTEST_F_L0() 150 JSTaggedValue result = ContainersLightWeightSet::Add(callInfo); in HWTEST_F_L0() 164 auto callInfo = in HWTEST_F_L0() local 166 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 167 callInfo->SetThis(lightWeightSet.GetTaggedValue()); in HWTEST_F_L0() 168 callInfo->SetCallArg(0, value.GetTaggedValue()); in HWTEST_F_L0() [all …]
|
D | containers_plainarray_test.cpp | 116 auto callInfo = in PlainArrayAdd() local 118 callInfo->SetFunction(JSTaggedValue::Undefined()); in PlainArrayAdd() 119 callInfo->SetThis(plainArray.GetTaggedValue()); in PlainArrayAdd() 120 callInfo->SetCallArg(0, index); in PlainArrayAdd() 121 callInfo->SetCallArg(1, value); in PlainArrayAdd() 123 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo); in PlainArrayAdd() 124 JSTaggedValue result = ContainersPlainArray::Add(callInfo); in PlainArrayAdd() 132 auto callInfo = in PlainArrayRemoveRangeFrom() local 134 callInfo->SetFunction(JSTaggedValue::Undefined()); in PlainArrayRemoveRangeFrom() 135 callInfo->SetThis(plainArray.GetTaggedValue()); in PlainArrayRemoveRangeFrom() [all …]
|
D | containers_hashmap_test.cpp | 150 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in HWTEST_F_L0() local 151 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 152 callInfo->SetThis(tMap.GetTaggedValue()); in HWTEST_F_L0() 153 callInfo->SetCallArg(0, JSTaggedValue(i)); in HWTEST_F_L0() 154 callInfo->SetCallArg(1, JSTaggedValue(i)); in HWTEST_F_L0() 156 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo); in HWTEST_F_L0() 157 JSTaggedValue result = ContainersHashMap::Set(callInfo); in HWTEST_F_L0() 164 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0() local 165 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 166 callInfo->SetThis(tMap.GetTaggedValue()); in HWTEST_F_L0() [all …]
|
D | containers_list_test.cpp | 117 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6); in ListAdd() local 118 callInfo->SetFunction(JSTaggedValue::Undefined()); in ListAdd() 119 callInfo->SetThis(list.GetTaggedValue()); in ListAdd() 120 callInfo->SetCallArg(0, value); in ListAdd() 122 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo); in ListAdd() 123 JSTaggedValue result = ContainersList::Add(callInfo); in ListAdd() 130 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6); in ListEqual() local 131 callInfo->SetFunction(JSTaggedValue::Undefined()); in ListEqual() 132 callInfo->SetThis(list.GetTaggedValue()); in ListEqual() 133 callInfo->SetCallArg(0, compareList.GetTaggedValue()); in ListEqual() [all …]
|
D | containers_linked_list_test.cpp | 117 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in LinkedListInsert() local 118 callInfo->SetFunction(JSTaggedValue::Undefined()); in LinkedListInsert() 119 callInfo->SetThis(linkedlist.GetTaggedValue()); in LinkedListInsert() 120 callInfo->SetCallArg(0, index); in LinkedListInsert() 121 callInfo->SetCallArg(1, value); in LinkedListInsert() 123 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo); in LinkedListInsert() 124 JSTaggedValue result = ContainersLinkedList::Insert(callInfo); in LinkedListInsert() 131 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6); in LinkedListGet() local 132 callInfo->SetFunction(JSTaggedValue::Undefined()); in LinkedListGet() 133 callInfo->SetThis(linkedlist.GetTaggedValue()); in LinkedListGet() [all …]
|
D | containers_deque_test.cpp | 147 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in HWTEST_F_L0() local 148 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 149 callInfo->SetThis(deque.GetTaggedValue()); in HWTEST_F_L0() 150 callInfo->SetCallArg(0, JSTaggedValue(i)); in HWTEST_F_L0() 152 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo); in HWTEST_F_L0() 153 JSTaggedValue result = ContainersDeque::InsertFront(callInfo); in HWTEST_F_L0() 156 EXPECT_EQ(ContainersDeque::GetFirst(callInfo), JSTaggedValue(i)); in HWTEST_F_L0() 165 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in HWTEST_F_L0() local 166 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 167 callInfo->SetThis(deque.GetTaggedValue()); in HWTEST_F_L0() [all …]
|
D | containers_stack_test.cpp | 147 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in HWTEST_F_L0() local 148 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 149 callInfo->SetThis(stack.GetTaggedValue()); in HWTEST_F_L0() 150 callInfo->SetCallArg(0, JSTaggedValue(i)); in HWTEST_F_L0() 152 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo); in HWTEST_F_L0() 153 JSTaggedValue result = ContainersStack::Push(callInfo); in HWTEST_F_L0() 156 EXPECT_EQ(ContainersStack::Peek(callInfo), JSTaggedValue(i)); in HWTEST_F_L0() 165 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in HWTEST_F_L0() local 166 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 167 callInfo->SetThis(stack.GetTaggedValue()); in HWTEST_F_L0() [all …]
|
D | containers_hashset_test.cpp | 129 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0() local 130 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 131 callInfo->SetThis(tSet.GetTaggedValue()); in HWTEST_F_L0() 132 callInfo->SetCallArg(0, JSTaggedValue(i)); in HWTEST_F_L0() 134 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo); in HWTEST_F_L0() 135 JSTaggedValue result = ContainersHashSet::Add(callInfo); in HWTEST_F_L0() 142 … auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0() local 143 callInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 144 callInfo->SetThis(tSet.GetTaggedValue()); in HWTEST_F_L0() 145 callInfo->SetCallArg(0, JSTaggedValue(i)); in HWTEST_F_L0() [all …]
|
D | containers_arraylist_test.cpp | 117 auto callInfo = in ArrayListAdd() local 119 callInfo->SetFunction(JSTaggedValue::Undefined()); in ArrayListAdd() 120 callInfo->SetThis(arrayList.GetTaggedValue()); in ArrayListAdd() 121 callInfo->SetCallArg(0, value); in ArrayListAdd() 123 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo); in ArrayListAdd() 124 JSTaggedValue result = ContainersArrayList::Add(callInfo); in ArrayListAdd() 132 auto callInfo = in ArrayListRemoveByRange() local 134 callInfo->SetFunction(JSTaggedValue::Undefined()); in ArrayListRemoveByRange() 135 callInfo->SetThis(arrayList.GetTaggedValue()); in ArrayListRemoveByRange() 136 callInfo->SetCallArg(0, startIndex); in ArrayListRemoveByRange() [all …]
|
D | containers_test_helper.h | 68 auto callInfo = NewEmptyCallInfo(thread); \ 69 CONTAINERS_API_EXCEPTION_TEST(className, methodName, callInfo); \ 74 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8); in NewEmptyCallInfo() local 75 callInfo->SetFunction(JSTaggedValue::Undefined()); in NewEmptyCallInfo() 76 callInfo->SetThis(JSTaggedValue::Undefined()); in NewEmptyCallInfo() 77 callInfo->SetCallArg(0, JSTaggedValue::Hole()); in NewEmptyCallInfo() 78 callInfo->SetCallArg(1, JSTaggedValue::Hole()); in NewEmptyCallInfo() 79 return callInfo; in NewEmptyCallInfo()
|
/arkcompiler/ets_runtime/test/fuzztest/containersvectorcommon_fuzzer/ |
D | containersvectorcommon_fuzzer.h | 100 auto callInfo = CreateEcmaRuntimeCallInfo(thread, 6); // 6 : means the argv length in GetVectorWithData() local 101 callInfo->SetFunction(JSTaggedValue::Undefined()); in GetVectorWithData() 102 callInfo->SetThis(vector.GetTaggedValue()); in GetVectorWithData() 103 callInfo->SetCallArg(0, JSTaggedValue(i + input)); in GetVectorWithData() 105 ContainersVector::Add(callInfo); in GetVectorWithData() 119 auto callInfo = CreateEcmaRuntimeCallInfo(thread, 6); // 6 : means the argv length in ContainersVectorAddFuzzTest() local 120 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersVectorAddFuzzTest() 121 callInfo->SetThis(vector.GetTaggedValue()); in ContainersVectorAddFuzzTest() 125 callInfo->SetCallArg(0, value); in ContainersVectorAddFuzzTest() 127 ContainersVector::Add(callInfo); in ContainersVectorAddFuzzTest() [all …]
|
/arkcompiler/ets_runtime/test/fuzztest/containerslinkedlistcommon_fuzzer/ |
D | containerslinkedlistcommon_fuzzer.h | 100 auto callInfo = CreateEcmaRuntimeCallInfo(thread, 6); in LinkedListAdd() local 101 callInfo->SetFunction(JSTaggedValue::Undefined()); in LinkedListAdd() 102 callInfo->SetThis(linkedList.GetTaggedValue()); in LinkedListAdd() 103 callInfo->SetCallArg(0, value); in LinkedListAdd() 104 containers::ContainersLinkedList::Add(callInfo); in LinkedListAdd() 149 auto callInfo = CreateEcmaRuntimeCallInfo(thread, 4); in ContainersLinkedListGetFirstFuzzTest() local 150 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersLinkedListGetFirstFuzzTest() 151 callInfo->SetThis(linkedList.GetTaggedValue()); in ContainersLinkedListGetFirstFuzzTest() 152 containers::ContainersLinkedList::GetFirst(callInfo); in ContainersLinkedListGetFirstFuzzTest() 176 auto callInfo = CreateEcmaRuntimeCallInfo(thread, 4); in ContainersLinkedListGetLastFuzzTest() local [all …]
|
/arkcompiler/ets_runtime/test/fuzztest/containersdequecommon_fuzzer/ |
D | containersdequecommon_fuzzer.h | 92 auto callInfo = CreateEcmaRuntimeCallInfo(thread, 6); in ContainersDequeInsertFrontFuzzTest() local 93 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersDequeInsertFrontFuzzTest() 94 callInfo->SetThis(deque.GetTaggedValue()); in ContainersDequeInsertFrontFuzzTest() 98 callInfo->SetCallArg(0, value); in ContainersDequeInsertFrontFuzzTest() 100 ContainersDeque::InsertFront(callInfo); in ContainersDequeInsertFrontFuzzTest() 145 auto callInfo = CreateEcmaRuntimeCallInfo(thread, 8); in ContainersDequeForEachFuzzTest() local 146 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersDequeForEachFuzzTest() 147 callInfo->SetThis(deque.GetTaggedValue()); in ContainersDequeForEachFuzzTest() 148 callInfo->SetCallArg(0, JSTaggedValue(i + input)); in ContainersDequeForEachFuzzTest() 149 ContainersDeque::InsertFront(callInfo); in ContainersDequeForEachFuzzTest() [all …]
|
/arkcompiler/ets_runtime/test/fuzztest/arraylist_fuzzer/ |
D | arraylist_fuzzer.cpp | 83 EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 6); in ArrayListAdd() local 84 callInfo->SetFunction(JSTaggedValue::Undefined()); in ArrayListAdd() 85 callInfo->SetThis(arrayList.GetTaggedValue()); in ArrayListAdd() 86 callInfo->SetCallArg(0, value); in ArrayListAdd() 88 ContainersArrayList::Add(callInfo); in ArrayListAdd() 152 EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 8); in ArrayListForEachFuzzTest() local 153 callInfo->SetFunction(JSTaggedValue::Undefined()); in ArrayListForEachFuzzTest() 154 callInfo->SetThis(arrayList.GetTaggedValue()); in ArrayListForEachFuzzTest() 155 callInfo->SetCallArg(0, func.GetTaggedValue()); in ArrayListForEachFuzzTest() 156 callInfo->SetCallArg(1, arrList.GetTaggedValue()); in ArrayListForEachFuzzTest() [all …]
|
/arkcompiler/ets_runtime/test/fuzztest/containersplainarray_fuzzer/ |
D | containersplainarray_fuzzer.cpp | 100 … EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 6); // 6 : means the argv length in ContainersPlainArray_Constructor_FuzzTest() local 101 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersPlainArray_Constructor_FuzzTest() 102 callInfo->SetThis(plainArray.GetTaggedValue()); in ContainersPlainArray_Constructor_FuzzTest() 103 callInfo->SetCallArg(0, JSTaggedValue(input)); in ContainersPlainArray_Constructor_FuzzTest() 104 ContainersPlainArray::PlainArrayConstructor(callInfo); in ContainersPlainArray_Constructor_FuzzTest() 134 … EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 8); // 8 : means the argv length in ContainersPlainArray_Add_Has_FuzzTest() local 135 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersPlainArray_Add_Has_FuzzTest() 136 callInfo->SetThis(plainArray.GetTaggedValue()); in ContainersPlainArray_Add_Has_FuzzTest() 137 callInfo->SetCallArg(0, JSTaggedValue(static_cast<uint32_t>(inputNum + i))); // set key in ContainersPlainArray_Add_Has_FuzzTest() 138 callInfo->SetCallArg(1, inputEcmaStr.GetTaggedValue()); // set value in ContainersPlainArray_Add_Has_FuzzTest() [all …]
|
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightmapat_fuzzer/ |
D | containerslightweightmapat_fuzzer.cpp | 111 EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 6); in ContainersLightWeightMapAtFuzzTest() local 112 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersLightWeightMapAtFuzzTest() 113 callInfo->SetThis(lightWeightMap.GetTaggedValue()); in ContainersLightWeightMapAtFuzzTest() 114 callInfo->SetCallArg(0, JSTaggedValue(input)); in ContainersLightWeightMapAtFuzzTest() 115 ContainersLightWeightMap::GetKeyAt(callInfo); in ContainersLightWeightMapAtFuzzTest() 119 EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 6); in ContainersLightWeightMapAtFuzzTest() local 120 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersLightWeightMapAtFuzzTest() 121 callInfo->SetThis(lightWeightMap.GetTaggedValue()); in ContainersLightWeightMapAtFuzzTest() 122 callInfo->SetCallArg(0, JSTaggedValue(input)); in ContainersLightWeightMapAtFuzzTest() 123 ContainersLightWeightMap::GetValueAt(callInfo); in ContainersLightWeightMapAtFuzzTest() [all …]
|
/arkcompiler/ets_runtime/test/fuzztest/containersstackisempty_fuzzer/ |
D | containersstackisempty_fuzzer.cpp | 102 … EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 8); // 8 : means the argv length in ContainersStackFuzzIsEmptyTest() local 103 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersStackFuzzIsEmptyTest() 104 callInfo->SetThis(stack.GetTaggedValue()); in ContainersStackFuzzIsEmptyTest() 105 callInfo->SetCallArg(0, JSTaggedValue(input)); in ContainersStackFuzzIsEmptyTest() 106 ContainersStack::Push(callInfo); in ContainersStackFuzzIsEmptyTest() 110 … EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 6); // 6 : means the argv length in ContainersStackFuzzIsEmptyTest() local 111 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersStackFuzzIsEmptyTest() 112 callInfo->SetThis(stack.GetTaggedValue()); in ContainersStackFuzzIsEmptyTest() 113 callInfo->SetCallArg(0, JSTaggedValue()); in ContainersStackFuzzIsEmptyTest() 114 ContainersStack::Pop(callInfo); in ContainersStackFuzzIsEmptyTest() [all …]
|
/arkcompiler/ets_runtime/test/fuzztest/containersqueueforeach_fuzzer/ |
D | containersqueueforeach_fuzzer.cpp | 107 … EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 8); // 8 : means the argv length in ContainersQueueForEachFuzzTest() local 108 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersQueueForEachFuzzTest() 109 callInfo->SetThis(queue.GetTaggedValue()); in ContainersQueueForEachFuzzTest() 110 callInfo->SetCallArg(0, JSTaggedValue(input)); in ContainersQueueForEachFuzzTest() 111 ContainersQueue::Add(callInfo); in ContainersQueueForEachFuzzTest() 119 … EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 8); // 8 : means the argv length in ContainersQueueForEachFuzzTest() local 120 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersQueueForEachFuzzTest() 121 callInfo->SetThis(queue.GetTaggedValue()); in ContainersQueueForEachFuzzTest() 122 callInfo->SetCallArg(0, func.GetTaggedValue()); in ContainersQueueForEachFuzzTest() 123 callInfo->SetCallArg(1, dlist.GetTaggedValue()); in ContainersQueueForEachFuzzTest() [all …]
|
/arkcompiler/ets_runtime/test/fuzztest/containersstackforeach_fuzzer/ |
D | containersstackforeach_fuzzer.cpp | 107 … EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 8); // 8 : means the argv length in ContainersStackForEachFuzzTest() local 108 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersStackForEachFuzzTest() 109 callInfo->SetThis(stack.GetTaggedValue()); in ContainersStackForEachFuzzTest() 110 callInfo->SetCallArg(0, JSTaggedValue(input)); in ContainersStackForEachFuzzTest() 111 ContainersStack::Push(callInfo); in ContainersStackForEachFuzzTest() 119 … EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 8); // 8 : means the argv length in ContainersStackForEachFuzzTest() local 120 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersStackForEachFuzzTest() 121 callInfo->SetThis(stack.GetTaggedValue()); in ContainersStackForEachFuzzTest() 122 callInfo->SetCallArg(0, func.GetTaggedValue()); in ContainersStackForEachFuzzTest() 123 callInfo->SetCallArg(1, dlist.GetTaggedValue()); in ContainersStackForEachFuzzTest() [all …]
|
/arkcompiler/ets_runtime/test/fuzztest/containersqueuegetfirst_fuzzer/ |
D | containersqueuegetfirst_fuzzer.cpp | 101 … EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 8); // 8 : means the argv length in ContainersQueueGetFirstFuzzTest() local 102 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersQueueGetFirstFuzzTest() 103 callInfo->SetThis(queue.GetTaggedValue()); in ContainersQueueGetFirstFuzzTest() 104 callInfo->SetCallArg(0, JSTaggedValue(input)); in ContainersQueueGetFirstFuzzTest() 105 ContainersQueue::Add(callInfo); in ContainersQueueGetFirstFuzzTest() 109 … EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 6); // 6 : means the argv length in ContainersQueueGetFirstFuzzTest() local 110 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersQueueGetFirstFuzzTest() 111 callInfo->SetThis(queue.GetTaggedValue()); in ContainersQueueGetFirstFuzzTest() 112 callInfo->SetCallArg(0, JSTaggedValue(input)); in ContainersQueueGetFirstFuzzTest() 113 ContainersQueue::GetFirst(callInfo); in ContainersQueueGetFirstFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containersstackpop_fuzzer/ |
D | containersstackpop_fuzzer.cpp | 102 … EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 8); // 8 : means the argv length in ContainersStackPopFuzzTest() local 103 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersStackPopFuzzTest() 104 callInfo->SetThis(stack.GetTaggedValue()); in ContainersStackPopFuzzTest() 105 callInfo->SetCallArg(0, JSTaggedValue(input)); in ContainersStackPopFuzzTest() 106 ContainersStack::Push(callInfo); in ContainersStackPopFuzzTest() 110 … EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 6); // 6 : means the argv length in ContainersStackPopFuzzTest() local 111 callInfo->SetFunction(JSTaggedValue::Undefined()); in ContainersStackPopFuzzTest() 112 callInfo->SetThis(stack.GetTaggedValue()); in ContainersStackPopFuzzTest() 113 callInfo->SetCallArg(0, JSTaggedValue(input)); in ContainersStackPopFuzzTest() 114 ContainersStack::Pop(callInfo); in ContainersStackPopFuzzTest()
|