Home
last modified time | relevance | path

Searched refs:mapHandle (Results 1 - 11 of 11) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/js_api/
H A Djs_api_tree_map.cpp35 JSHandle<TaggedTreeMap> mapHandle(thread, TaggedTreeMap::Cast(map->GetTreeMap().GetTaggedObject())); in Set()
37 JSTaggedValue newMap = TaggedTreeMap::Set(thread, mapHandle, key, value); in Set()
44 JSHandle<TaggedTreeMap> mapHandle(thread, TaggedTreeMap::Cast(map->GetTreeMap().GetTaggedObject())); in Get()
45 return TaggedTreeMap::Get(thread, mapHandle, key); in Get()
70 JSHandle<TaggedTreeMap> mapHandle(thread, TaggedTreeMap::Cast(map->GetTreeMap().GetTaggedObject())); in Delete()
71 int entry = TaggedTreeMap::FindEntry(thread, mapHandle, key); in Delete()
76 JSHandle<JSTaggedValue> value(thread, mapHandle->GetValue(entry)); in Delete()
77 JSTaggedValue newMap = TaggedTreeMap::Delete(thread, mapHandle, entry); in Delete()
84 JSHandle<TaggedTreeMap> mapHandle(thread, TaggedTreeMap::Cast(map->GetTreeMap().GetTaggedObject())); in HasKey()
85 return TaggedTreeMap::FindEntry(thread, mapHandle, ke in HasKey()
[all...]
/arkcompiler/ets_runtime/ecmascript/
H A Djs_map.cpp27 JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject())); in Set()
29 JSHandle<LinkedHashMap> newMap = LinkedHashMap::Set(thread, mapHandle, key, value); in Set()
35 JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject())); in Delete()
36 int entry = mapHandle->FindElement(thread, key.GetTaggedValue()); in Delete()
40 mapHandle->RemoveEntry(thread, entry); in Delete()
47 JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject())); in Clear()
48 JSHandle<LinkedHashMap> newMap = linkedMap->Clear(thread, mapHandle); in Clear()
H A Djs_weak_container.cpp29 JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject())); in Set()
31 JSHandle<LinkedHashMap> newMap = LinkedHashMap::SetWeakRef(thread, mapHandle, key, value); in Set()
37 JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject())); in Delete()
38 int entry = mapHandle->FindElement(thread, key.GetTaggedValue()); in Delete()
42 mapHandle->RemoveEntry(thread, entry); in Delete()
44 JSHandle<LinkedHashMap> newMap = LinkedHashMap::Shrink(thread, mapHandle); in Delete()
/arkcompiler/ets_runtime/ecmascript/shared_objects/
H A Djs_shared_map.cpp34 JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject())); in Set()
35 JSHandle<LinkedHashMap> newMap = LinkedHashMap::Set(thread, mapHandle, key, value); in Set()
44 JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject())); in Delete()
45 int entry = mapHandle->FindElement(thread, key.GetTaggedValue()); in Delete()
49 mapHandle->RemoveEntry(thread, entry); in Delete()
58 JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject())); in Clear()
59 JSHandle<LinkedHashMap> newMap = LinkedHashMap::Clear(thread, mapHandle); in Clear()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefislightweightmapandset_fuzzer/
H A Djsvaluerefislightweightmapandset_fuzzer.cpp136 JSHandle<JSAPILightWeightMap> mapHandle(thread, result); in ConstructobjectLightWeightMap()
137 return mapHandle; in ConstructobjectLightWeightMap()
162 JSHandle<JSAPILightWeightSet> mapHandle(thread, result); in ConstructobjectLightWeightSet()
163 return mapHandle; in ConstructobjectLightWeightSet()
178 JSHandle<JSAPILightWeightMap> mapHandle = ConstructobjectLightWeightMap(thread); in JSValueRefIsLightWeightMapFuzzTest() local
179 JSHandle<JSTaggedValue> jshashmap = JSHandle<JSTaggedValue>::Cast(mapHandle); in JSValueRefIsLightWeightMapFuzzTest()
198 JSHandle<JSAPILightWeightSet> mapHandle = ConstructobjectLightWeightSet(thread); in JSValueRefIsLightWeightSetFuzzTest() local
199 JSHandle<JSTaggedValue> jshashmap = JSHandle<JSTaggedValue>::Cast(mapHandle); in JSValueRefIsLightWeightSetFuzzTest()
/arkcompiler/ets_runtime/ecmascript/containers/tests/
H A Dcontainers_lightweightset_test.cpp126 JSHandle<JSAPILightWeightSet> mapHandle(thread, result); in HWTEST_F_L0()
127 JSTaggedValue resultProto = JSObject::GetPrototype(JSHandle<JSObject>::Cast(mapHandle)); in HWTEST_F_L0()
130 int length = mapHandle->GetLength(); in HWTEST_F_L0()
H A Dcontainers_lightweightmap_test.cpp127 JSHandle<JSAPILightWeightMap> mapHandle(thread, result); in HWTEST_F_L0()
128 JSTaggedValue resultProto = JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(mapHandle)); in HWTEST_F_L0()
H A Dcontainers_hashmap_test.cpp132 JSHandle<JSAPIHashMap> mapHandle(thread, result); in HWTEST_F_L0()
133 JSTaggedValue resultProto = JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(mapHandle)); in HWTEST_F_L0()
136 int size = mapHandle->GetSize(); in HWTEST_F_L0()
H A Dcontainers_treemap_test.cpp173 JSHandle<JSAPITreeMap> mapHandle(thread, result); in HWTEST_F_L0()
174 JSTaggedValue 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/
H A Djs_module_source_text.cpp725 JSHandle<NameDictionary> mapHandle = JSHandle<NameDictionary>::Cast(envRec); in ModuleDeclarationEnvironmentSetup() local
726 JSHandle<NameDictionary> newMap = NameDictionary::Put(thread, mapHandle, localName, moduleNamespace, in ModuleDeclarationEnvironmentSetup()
750 JSHandle<NameDictionary> mapHandle = JSHandle<NameDictionary>::Cast(envRec); in ModuleDeclarationEnvironmentSetup() local
751 JSHandle<NameDictionary> newMap = NameDictionary::Put(thread, mapHandle, localName, resolution, in ModuleDeclarationEnvironmentSetup()
/arkcompiler/ets_runtime/ecmascript/napi/test/
H A Dffi_workload.cpp1316 JSHandle<JSAPILightWeightMap> mapHandle(thread, result); in ConstructobjectLightWeightMap()
1317 return mapHandle; in ConstructobjectLightWeightMap()
1343 JSHandle<JSAPILightWeightSet> mapHandle(thread, result); in ConstructobjectLightWeightSet()
1344 return mapHandle; in ConstructobjectLightWeightSet()
1572 JSHandle<JSAPILightWeightMap> mapHandle = ConstructobjectLightWeightMap(vm_); in HWTEST_F_L0() local
1573 JSHandle<JSTaggedValue> jsHashMap = JSHandle<JSTaggedValue>::Cast(mapHandle); in HWTEST_F_L0()
1587 JSHandle<JSAPILightWeightSet> mapHandle = ConstructobjectLightWeightSet(vm_); in HWTEST_F_L0() local
1588 JSHandle<JSTaggedValue> jsHashMap = JSHandle<JSTaggedValue>::Cast(mapHandle); in HWTEST_F_L0()

Completed in 25 milliseconds