Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/
H A Djs_map.cpp29 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 Djs_weak_container.cpp31 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 Djs_finalization_registry.cpp210 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 Dtagged_tree.h470 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 Dlinked_hash_table.cpp187 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 Dtagged_dictionary.cpp489 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 Djs_shared_map.cpp35 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 Djs_api_tree_map.cpp37 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 Dmapget.js155 const newMap = new Map();
176 newMap.set(key, value);
183 newMap.clear();
184 print(newMap.size);
/arkcompiler/ets_runtime/ecmascript/tests/
H A Dtagged_tree_test.cpp974 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 Djs_module_source_text.cpp726 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()

Completed in 21 milliseconds