Home
last modified time | relevance | path

Searched refs:tmap (Results 1 – 24 of 24) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
Dtagged_tree_test.cpp189 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 …]
Djs_api_tree_map_test.cpp104 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/
Dcontainers_treemap_test.cpp191 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/
Dcontainerstreemapgethigherkey_fuzzer.cpp100 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/
Dcontainerstreemapvalues_fuzzer.cpp100 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/
Dcontainerstreemapgetlowerkey_fuzzer.cpp100 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/
Dcontainerstreemapgetlastkey_fuzzer.cpp100 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/
Dcontainerstreemapsetall_fuzzer.cpp100 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/
Dcontainerstreemapgetfirstkey_fuzzer.cpp100 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/
Dcontainerstreemapclear_fuzzer.cpp100 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/
Dcontainerstreemapentries_fuzzer.cpp100 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/
Dcontainerstreemapkeys_fuzzer.cpp100 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/
Dcontainerstreemapreplace_fuzzer.cpp101 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/
Dcontainerstreemapforeach_fuzzer.cpp106 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/
Dcontainers_treemap.cpp268 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()
Dcontainers_lightweightmap.cpp547 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/
Dcontainerstreemapconstructor_fuzzer.cpp100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapConstructorFuzzTest() local
103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapConstructorFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapget_fuzzer/
Dcontainerstreemapget_fuzzer.cpp100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapGetFuzzTest() local
103 objcallInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapGetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapset_fuzzer/
Dcontainerstreemapset_fuzzer.cpp100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapSetFuzzTest() local
103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemaphasvalue_fuzzer/
Dcontainerstreemaphasvalue_fuzzer.cpp100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapSetFuzzTest() local
103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemaphaskey_fuzzer/
Dcontainerstreemaphaskey_fuzzer.cpp100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapSetFuzzTest() local
103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapisempty_fuzzer/
Dcontainerstreemapisempty_fuzzer.cpp100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapIsEmptyFuzzTest() local
103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapIsEmptyFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapgetlength_fuzzer/
Dcontainerstreemapgetlength_fuzzer.cpp100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapGetLengthFuzzTest() local
103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapGetLengthFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapremove_fuzzer/
Dcontainerstreemapremove_fuzzer.cpp100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapRemoveFuzzTest() local
103 callInfo->SetThis(tmap.GetTaggedValue()); in ContainersTreeMapRemoveFuzzTest()