Home
last modified time | relevance | path

Searched refs:mapHandle (Results 1 – 8 of 8) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_tree_map.cpp36 …JSHandle<TaggedTreeMap> mapHandle(thread, TaggedTreeMap::Cast(map->GetTreeMap().GetTaggedObject())… in Set() local
38 JSTaggedValue newMap = TaggedTreeMap::Set(thread, mapHandle, key, value); in Set()
45 …JSHandle<TaggedTreeMap> mapHandle(thread, TaggedTreeMap::Cast(map->GetTreeMap().GetTaggedObject())… in Get() local
46 return TaggedTreeMap::Get(thread, mapHandle, key); in Get()
71 …JSHandle<TaggedTreeMap> mapHandle(thread, TaggedTreeMap::Cast(map->GetTreeMap().GetTaggedObject())… in Delete() local
72 int entry = TaggedTreeMap::FindEntry(thread, mapHandle, key); in Delete()
77 JSHandle<JSTaggedValue> value(thread, mapHandle->GetValue(entry)); in Delete()
78 JSTaggedValue newMap = TaggedTreeMap::Delete(thread, mapHandle, entry); in Delete()
85 …JSHandle<TaggedTreeMap> mapHandle(thread, TaggedTreeMap::Cast(map->GetTreeMap().GetTaggedObject())… in HasKey() local
86 return TaggedTreeMap::FindEntry(thread, mapHandle, key) >= 0; in HasKey()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_map.cpp29 …JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject(… in Set() local
31 JSHandle<LinkedHashMap> newMap = LinkedHashMap::Set(thread, mapHandle, key, value); in Set()
37 …JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject(… in Delete() local
38 int entry = mapHandle->FindElement(key.GetTaggedValue()); in Delete()
42 mapHandle->RemoveEntry(thread, entry); in Delete()
49 …JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject(… in Clear() local
50 JSHandle<LinkedHashMap> newMap = linkedMap->Clear(thread, mapHandle); in Clear()
Djs_weak_container.cpp30 …JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject(… in Set() local
32 JSHandle<LinkedHashMap> newMap = LinkedHashMap::SetWeakRef(thread, mapHandle, key, value); in Set()
38 …JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject(… in Delete() local
39 int entry = mapHandle->FindElement(key.GetTaggedValue()); in Delete()
43 mapHandle->RemoveEntry(thread, entry); in Delete()
45 JSHandle<LinkedHashMap> newMap = LinkedHashMap::Shrink(thread, mapHandle); in Delete()
/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_lightweightset_test.cpp126 JSHandle<JSAPILightWeightSet> mapHandle(thread, result); in HWTEST_F_L0() local
127 JSTaggedValue resultProto = JSObject::GetPrototype(JSHandle<JSObject>::Cast(mapHandle)); in HWTEST_F_L0()
130 int length = mapHandle->GetLength(); in HWTEST_F_L0()
Dcontainers_lightweightmap_test.cpp127 JSHandle<JSAPILightWeightMap> mapHandle(thread, result); in HWTEST_F_L0() local
128 …STaggedValue resultProto = JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(mapHandle)); in HWTEST_F_L0()
Dcontainers_hashmap_test.cpp132 JSHandle<JSAPIHashMap> mapHandle(thread, result); in HWTEST_F_L0() local
133 …STaggedValue resultProto = JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(mapHandle)); in HWTEST_F_L0()
136 int size = mapHandle->GetSize(); in HWTEST_F_L0()
Dcontainers_treemap_test.cpp173 JSHandle<JSAPITreeMap> mapHandle(thread, result); in HWTEST_F_L0() local
174 …STaggedValue resultProto = JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(mapHandle)); in HWTEST_F_L0()
177 int size = mapHandle->GetSize(); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_source_text.cpp662 JSHandle<NameDictionary> mapHandle = JSHandle<NameDictionary>::Cast(envRec); in ModuleDeclarationEnvironmentSetup() local
663 …JSHandle<NameDictionary> newMap = NameDictionary::Put(thread, mapHandle, localName, moduleNamespac… in ModuleDeclarationEnvironmentSetup()
686 JSHandle<NameDictionary> mapHandle = JSHandle<NameDictionary>::Cast(envRec); in ModuleDeclarationEnvironmentSetup() local
687 … JSHandle<NameDictionary> newMap = NameDictionary::Put(thread, mapHandle, localName, resolution, in ModuleDeclarationEnvironmentSetup()