/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_map.cpp | 29 JSHandle<LinkedHashMap> newMap = LinkedHashMap::Set(thread, mapHandle, key, value); in Set() local 30 map->SetLinkedMap(thread, newMap); in Set() 48 JSHandle<LinkedHashMap> newMap = linkedMap->Clear(thread, mapHandle); in Clear() local 49 map->SetLinkedMap(thread, newMap); in Clear()
|
H A D | js_weak_container.cpp | 31 JSHandle<LinkedHashMap> newMap = LinkedHashMap::SetWeakRef(thread, mapHandle, key, value); in Set() local 32 map->SetLinkedMap(thread, newMap); in Set() 44 JSHandle<LinkedHashMap> newMap = LinkedHashMap::Shrink(thread, mapHandle); in Delete() local 45 map->SetLinkedMap(thread, newMap); in Delete()
|
H A D | js_finalization_registry.cpp | 210 JSHandle<LinkedHashMap> newMap = LinkedHashMap::Shrink(thread, maybeUnregister); in CleanupFinalizationRegistry() local 211 obj->SetMaybeUnregister(thread, newMap); in CleanupFinalizationRegistry() 214 int remainSize = newMap->NumberOfElements() + newMap->NumberOfDeletedElements(); in CleanupFinalizationRegistry()
|
H A D | tagged_tree.h | 470 inline void CopyEntry(const JSThread *thread, int parent, const JSHandle<TaggedTreeMap> &newMap, int index) in CopyEntry() argument 472 RBTree::CopyEntry(thread, parent, newMap, index); in CopyEntry() 473 newMap->SetValue(thread, index, GetValue(parent)); in CopyEntry() 529 inline void CopyEntry(const JSThread *thread, int parent, const JSHandle<TaggedTreeSet> &newMap, int index) in CopyEntry() argument 531 RBTree::CopyEntry(thread, parent, newMap, index); in CopyEntry() 532 newMap->SetValue(thread, index, GetValue(parent)); in CopyEntry()
|
H A D | linked_hash_table.cpp | 187 JSHandle<LinkedHashMap> newMap = LinkedHashMap::Create(thread, LinkedHashMap::MIN_CAPACITY, in Clear() local 190 table->SetNextTable(thread, newMap.GetTaggedValue()); in Clear() 193 return newMap; in Clear()
|
H A D | tagged_dictionary.cpp | 489 auto newMap = PointerToIndexDictionary::Create(thread, map->Size()); in UpdateProtoTransitionTable() local 490 map->Rehash(thread, *newMap); in UpdateProtoTransitionTable() 491 protoTransitionTable_ = newMap.GetTaggedValue(); in UpdateProtoTransitionTable()
|
/arkcompiler/ets_runtime/ecmascript/shared_objects/ |
H A D | js_shared_map.cpp | 35 JSHandle<LinkedHashMap> newMap = LinkedHashMap::Set(thread, mapHandle, key, value); in Set() local 36 map->SetLinkedMap(thread, newMap); in Set() 59 JSHandle<LinkedHashMap> newMap = LinkedHashMap::Clear(thread, mapHandle); in Clear() local 60 map->SetLinkedMap(thread, newMap); in Clear()
|
/arkcompiler/ets_runtime/ecmascript/js_api/ |
H A D | js_api_tree_map.cpp | 37 JSTaggedValue newMap = TaggedTreeMap::Set(thread, mapHandle, key, value); in Set() local 39 map->SetTreeMap(thread, newMap); in Set() 77 JSTaggedValue newMap = TaggedTreeMap::Delete(thread, mapHandle, entry); in Delete() local 78 map->SetTreeMap(thread, newMap); in Delete()
|
/arkcompiler/ets_runtime/test/moduletest/mapget/ |
H A D | mapget.js | 155 const newMap = new Map(); 176 newMap.set(key, value); 183 newMap.clear(); 184 print(newMap.size);
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | tagged_tree_test.cpp | 974 JSHandle<TaggedTreeMap> newMap = JSHandle<TaggedTreeMap>::Cast(resOfDelete); in HWTEST_F_L0() local 975 resOfDelete.Update(TaggedTreeMap::Delete(thread, newMap, TaggedTreeMap::FindEntry(thread, newMap, key))); in HWTEST_F_L0() 977 EXPECT_EQ(newMap->NumberOfElements(), NODE_NUMBERS / 2 - 2); // 2 means two elements in HWTEST_F_L0() 978 bool success = IsVaildRBTree<TaggedTreeMap>(thread, newMap, newMap->GetRootEntries()); in HWTEST_F_L0() 980 EXPECT_EQ(newMap->Capacity(), NODE_NUMBERS - 1); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/module/ |
H A D | js_module_source_text.cpp | 726 JSHandle<NameDictionary> newMap = NameDictionary::Put(thread, mapHandle, localName, moduleNamespace, in ModuleDeclarationEnvironmentSetup() local 728 envRec.Update(newMap); in ModuleDeclarationEnvironmentSetup() 751 JSHandle<NameDictionary> newMap = NameDictionary::Put(thread, mapHandle, localName, resolution, in ModuleDeclarationEnvironmentSetup() local 753 envRec.Update(newMap); in ModuleDeclarationEnvironmentSetup()
|