/arkcompiler/ets_runtime/ecmascript/tests/ |
D | tagged_tree_test.cpp | 189 JSHandle<TaggedTreeMap> tmap(thread, TaggedTreeMap::Create(thread, NODE_NUMBERS)); in HWTEST_F_L0() local 190 EXPECT_EQ(tmap->Capacity(), NODE_NUMBERS); in HWTEST_F_L0() 191 EXPECT_EQ(tmap->GetRootEntries(), -1); in HWTEST_F_L0() 192 EXPECT_EQ(tmap->NumberOfElements(), 0); in HWTEST_F_L0() 193 EXPECT_EQ(tmap->NumberOfDeletedElements(), 0); in HWTEST_F_L0() 210 JSMutableHandle<TaggedTreeMap> tmap(thread, TaggedTreeMap::Create(thread, NODE_NUMBERS)); in HWTEST_F_L0() local 223 tmap.Update(TaggedTreeMap::Set(thread, tmap, key1, value1)); in HWTEST_F_L0() 224 EXPECT_EQ(tmap->NumberOfElements(), 1); in HWTEST_F_L0() 225 tmap.Update(TaggedTreeMap::Set(thread, tmap, key2, value2)); in HWTEST_F_L0() 226 EXPECT_EQ(tmap->NumberOfElements(), 2); in HWTEST_F_L0() [all …]
|
D | js_api_tree_map_test.cpp | 104 JSHandle<JSAPITreeMap> tmap(thread, CreateTreeMap()); in HWTEST_F_L0() local 112 JSAPITreeMap::Set(thread, tmap, key, value); in HWTEST_F_L0() 114 EXPECT_EQ(tmap->GetSize(), NODE_NUMBERS); in HWTEST_F_L0() 118 JSAPITreeMap::Set(thread, tmap, key, value); in HWTEST_F_L0() 128 JSTaggedValue gvalue = JSAPITreeMap::Get(thread, tmap, key); in HWTEST_F_L0() 142 JSHandle<JSAPITreeMap> tmap(thread, CreateTreeMap()); in HWTEST_F_L0() local 150 JSAPITreeMap::Set(thread, tmap, key, value); in HWTEST_F_L0() 152 EXPECT_EQ(tmap->GetSize(), NODE_NUMBERS); in HWTEST_F_L0() 157 [[maybe_unused]] JSTaggedValue dvalue = JSAPITreeMap::Delete(thread, tmap, key); in HWTEST_F_L0() 159 EXPECT_EQ(tmap->GetSize(), NODE_NUMBERS - REMOVE_SIZE); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/containers/tests/ |
D | containers_treemap_test.cpp | 191 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(); in HWTEST_F_L0() local 195 callInfo->SetThis(tmap.GetTaggedValue()); in HWTEST_F_L0() 220 callInfo->SetThis(tmap.GetTaggedValue()); in HWTEST_F_L0() 233 callInfo->SetThis(tmap.GetTaggedValue()); in HWTEST_F_L0() 250 callInfo->SetThis(tmap.GetTaggedValue()); in HWTEST_F_L0() 264 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(); in HWTEST_F_L0() local 268 callInfo->SetThis(tmap.GetTaggedValue()); in HWTEST_F_L0() 282 callInfo->SetThis(tmap.GetTaggedValue()); in HWTEST_F_L0() 290 EXPECT_EQ(tmap->GetSize(), NODE_NUMBERS - REMOVE_SIZE); in HWTEST_F_L0() 295 callInfo->SetThis(tmap.GetTaggedValue()); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapgethigherkey_fuzzer/ |
D | containerstreemapgethigherkey_fuzzer.cpp | 100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapGetHigherKeyFuzzTest() local 103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapGetHigherKeyFuzzTest() 110 objcallInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapGetHigherKeyFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapvalues_fuzzer/ |
D | containerstreemapvalues_fuzzer.cpp | 100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapValuesFuzzTest() local 103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapValuesFuzzTest() 110 objcallInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapValuesFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapgetlowerkey_fuzzer/ |
D | containerstreemapgetlowerkey_fuzzer.cpp | 100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapGetLowerKeyFuzzTest() local 103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapGetLowerKeyFuzzTest() 110 objcallInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapGetLowerKeyFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapgetlastkey_fuzzer/ |
D | containerstreemapgetlastkey_fuzzer.cpp | 100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapGetLastKeyFuzzTest() local 103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapGetLastKeyFuzzTest() 110 objCallInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapGetLastKeyFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapsetall_fuzzer/ |
D | containerstreemapsetall_fuzzer.cpp | 100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapSetAllFuzzTest() local 103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapSetAllFuzzTest() 112 objcallInfo->SetCallArg(0, tmap.GetTaggedValue()); in ContainersTreeMapSetAllFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapgetfirstkey_fuzzer/ |
D | containerstreemapgetfirstkey_fuzzer.cpp | 100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapGetFirstKeyFuzzTest() local 103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapGetFirstKeyFuzzTest() 110 objCallInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapGetFirstKeyFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapclear_fuzzer/ |
D | containerstreemapclear_fuzzer.cpp | 100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapClearFuzzTest() local 103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapClearFuzzTest() 110 objcallInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapClearFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapentries_fuzzer/ |
D | containerstreemapentries_fuzzer.cpp | 100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapEntriesFuzzTest() local 103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapEntriesFuzzTest() 110 objCallInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapEntriesFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapkeys_fuzzer/ |
D | containerstreemapkeys_fuzzer.cpp | 100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapKeysFuzzTest() local 103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapKeysFuzzTest() 110 objcallInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapKeysFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapreplace_fuzzer/ |
D | containerstreemapreplace_fuzzer.cpp | 101 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapReplaceFuzzTest() local 105 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapReplaceFuzzTest() 112 objCallInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapReplaceFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapforeach_fuzzer/ |
D | containerstreemapforeach_fuzzer.cpp | 106 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapForEachFuzzTest() local 109 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapForEachFuzzTest() 120 objCallInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapForEachFuzzTest()
|
/arkcompiler/ets_runtime/ecmascript/containers/ |
D | containers_treemap.cpp | 268 JSTaggedValue tmap = TaggedTreeMap::SetAll(thread, dmap, smap); in SetAll() local 270 dst->SetTreeMap(thread, tmap); in SetAll() 315 JSHandle<TaggedTreeMap> tmap(thread, map->GetTreeMap()); in GetLowerKey() local 316 return TaggedTreeMap::GetLowerKey(thread, tmap, key); in GetLowerKey() 339 JSHandle<TaggedTreeMap> tmap(thread, map->GetTreeMap()); in GetHigherKey() local 340 return TaggedTreeMap::GetHigherKey(thread, tmap, key); in GetHigherKey() 428 JSHandle<JSAPITreeMap> tmap = JSHandle<JSAPITreeMap>::Cast(self); in ForEach() local 429 JSMutableHandle<TaggedTreeMap> iteratedMap(thread, tmap->GetTreeMap()); in ForEach() 449 if (tmap->GetSize() != static_cast<int>(length)) { in ForEach() 450 iteratedMap.Update(tmap->GetTreeMap()); in ForEach()
|
D | containers_lightweightmap.cpp | 547 JSHandle<JSAPILightWeightMap> tmap = JSHandle<JSAPILightWeightMap>::Cast(self); in ForEach() local 548 JSMutableHandle<TaggedArray> keys(thread, tmap->GetKeys()); in ForEach() 549 JSMutableHandle<TaggedArray> values(thread, tmap->GetValues()); in ForEach() 552 uint32_t length = tmap->GetSize(); in ForEach() 565 if (tmap->GetSize() != length) { in ForEach() 566 keys.Update(tmap->GetKeys()); in ForEach() 567 values.Update(tmap->GetValues()); in ForEach() 568 length = tmap->GetSize(); in ForEach()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapconstructor_fuzzer/ |
D | containerstreemapconstructor_fuzzer.cpp | 100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapConstructorFuzzTest() local 103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapConstructorFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapget_fuzzer/ |
D | containerstreemapget_fuzzer.cpp | 100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapGetFuzzTest() local 103 objcallInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapGetFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapset_fuzzer/ |
D | containerstreemapset_fuzzer.cpp | 100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapSetFuzzTest() local 103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapSetFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemaphasvalue_fuzzer/ |
D | containerstreemaphasvalue_fuzzer.cpp | 100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapSetFuzzTest() local 103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapSetFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemaphaskey_fuzzer/ |
D | containerstreemaphaskey_fuzzer.cpp | 100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapSetFuzzTest() local 103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapSetFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapisempty_fuzzer/ |
D | containerstreemapisempty_fuzzer.cpp | 100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapIsEmptyFuzzTest() local 103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapIsEmptyFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapgetlength_fuzzer/ |
D | containerstreemapgetlength_fuzzer.cpp | 100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapGetLengthFuzzTest() local 103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapGetLengthFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapremove_fuzzer/ |
D | containerstreemapremove_fuzzer.cpp | 100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapRemoveFuzzTest() local 103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapRemoveFuzzTest()
|