Lines Matching defs:map

22 void JSSharedMap::Set(JSThread *thread, const JSHandle<JSSharedMap> &map,
31 JSHandle<JSTaggedValue>::Cast(map));
34 JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject()));
36 map->SetLinkedMap(thread, newMap);
39 bool JSSharedMap::Delete(JSThread *thread, const JSHandle<JSSharedMap> &map, const JSHandle<JSTaggedValue> &key)
42 JSHandle<JSTaggedValue>::Cast(map));
44 JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject()));
53 void JSSharedMap::Clear(JSThread *thread, const JSHandle<JSSharedMap> &map)
56 JSHandle<JSTaggedValue>::Cast(map));
58 JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject()));
60 map->SetLinkedMap(thread, newMap);
63 bool JSSharedMap::Has(JSThread *thread, const JSHandle<JSSharedMap> &map, JSTaggedValue key)
65 [[maybe_unused]] ConcurrentApiScope<JSSharedMap> scope(thread, JSHandle<JSTaggedValue>::Cast(map));
67 return LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject())->Has(thread, key);
70 JSTaggedValue JSSharedMap::Get(JSThread *thread, const JSHandle<JSSharedMap> &map, JSTaggedValue key)
72 [[maybe_unused]] ConcurrentApiScope<JSSharedMap> scope(thread, JSHandle<JSTaggedValue>::Cast(map));
74 return LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject())->Get(thread, key);
77 uint32_t JSSharedMap::GetSize(JSThread *thread, const JSHandle<JSSharedMap> &map)
79 [[maybe_unused]] ConcurrentApiScope<JSSharedMap> scope(thread, JSHandle<JSTaggedValue>::Cast(map));
81 return LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject())->NumberOfElements();
84 JSTaggedValue JSSharedMap::GetKey(JSThread *thread, const JSHandle<JSSharedMap> &map, uint32_t entry)
86 [[maybe_unused]] ConcurrentApiScope<JSSharedMap> scope(thread, JSHandle<JSTaggedValue>::Cast(map));
87 ASSERT_PRINT(entry >= 0 && entry < GetSize(thread, map), "entry must be non-negative integer less than capacity");
89 return LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject())->GetKey(entry);
92 JSTaggedValue JSSharedMap::GetValue(JSThread *thread, const JSHandle<JSSharedMap> &map, uint32_t entry)
94 [[maybe_unused]] ConcurrentApiScope<JSSharedMap> scope(thread, JSHandle<JSTaggedValue>::Cast(map));
95 ASSERT_PRINT(entry >= 0 && entry < GetSize(thread, map), "entry must be non-negative integer less than capacity");
97 return LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject())->GetValue(entry);