Lines Matching defs:hashMap
36 JSTaggedValue JSAPIHashMap::HasValue(JSThread *thread, JSHandle<JSAPIHashMap> hashMap,
39 JSHandle<TaggedHashArray> hashArray(thread, hashMap->GetTable());
108 void JSAPIHashMap::Set(JSThread *thread, JSHandle<JSAPIHashMap> hashMap,
118 JSHandle<TaggedHashArray> hashArray(thread, hashMap->GetTable());
121 uint32_t nodeNum = hashMap->GetSize();
123 hashMap->SetSize(++nodeNum);
128 hashMap->SetTable(thread, hashArray);
164 void JSAPIHashMap::SetAllLinkedNode(JSThread *thread, JSHandle<JSAPIHashMap> hashMap, JSMutableHandle<LinkedNode> node)
168 if (!hashMap->Replace(thread, node->GetKey(), node->GetValue())) {
171 Set(thread, hashMap, key, value);
177 void JSAPIHashMap::SetAllRBTreeNode(JSThread *thread, JSHandle<JSAPIHashMap> hashMap, JSHandle<RBTreeNode> node)
182 if (!hashMap->Replace(thread, key.GetTaggedValue(), value.GetTaggedValue())) {
183 Set(thread, hashMap, key, value);
187 SetAllRBTreeNode(thread, hashMap, left);
191 SetAllRBTreeNode(thread, hashMap, right);
205 JSTaggedValue JSAPIHashMap::Remove(JSThread *thread, JSHandle<JSAPIHashMap> hashMap, JSTaggedValue key)
211 JSHandle<TaggedHashArray> hashArray(thread, hashMap->GetTable());
212 uint32_t nodeNum = hashMap->GetSize();
221 hashMap->SetSize(--nodeNum);