Home
last modified time | relevance | path

Searched refs:LinkedHashSet (Results 1 – 15 of 15) sorted by relevance

/ark/js_runtime/ecmascript/
Djs_set.cpp25 if (!LinkedHashSet::IsKey(value.GetTaggedValue())) { in Add()
29 …JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject(… in Add()
31 JSHandle<LinkedHashSet> newSet = LinkedHashSet::Add(thread, setHandle, value); in Add()
37 …JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject(… in Delete()
43 JSHandle<LinkedHashSet> newSet = LinkedHashSet::Shrink(thread, setHandle); in Delete()
50 LinkedHashSet *linkedSet = LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject()); in Clear()
56 return LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject())->Has(value); in Has()
61 return LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject())->NumberOfElements(); in GetSize()
67 return LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject())->GetValue(entry); in GetValue()
Djs_weak_container.cpp68 if (!LinkedHashSet::IsKey(value.GetTaggedValue())) { in Add()
71 …JSHandle<LinkedHashSet> weakSetHandle(thread, LinkedHashSet::Cast(weakSet->GetLinkedSet().GetTagge… in Add()
73 JSHandle<LinkedHashSet> newSet = LinkedHashSet::AddWeakRef(thread, weakSetHandle, value); in Add()
79 …JSHandle<LinkedHashSet> weakSetHandle(thread, LinkedHashSet::Cast(weakSet->GetLinkedSet().GetTagge… in Delete()
85 JSHandle<LinkedHashSet> newSet = LinkedHashSet::Shrink(thread, weakSetHandle); in Delete()
92 return LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject())->Has(value); in Has()
97 return LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject())->NumberOfElements(); in GetSize()
Dlinked_hash_table.cpp226 JSHandle<LinkedHashSet> LinkedHashSet::Create(const JSThread *thread, int numberOfElements) in Create()
228 return LinkedHashTable<LinkedHashSet, LinkedHashSetObject>::Create(thread, numberOfElements); in Create()
231 JSHandle<LinkedHashSet> LinkedHashSet::Delete(const JSThread *thread, const JSHandle<LinkedHashSet>… in Delete()
234 return LinkedHashTable<LinkedHashSet, LinkedHashSetObject>::Remove(thread, obj, key); in Delete()
237 JSHandle<LinkedHashSet> LinkedHashSet::Add(const JSThread *thread, const JSHandle<LinkedHashSet> &o… in Add()
240 return LinkedHashTable<LinkedHashSet, LinkedHashSetObject>::Insert(thread, obj, key, key); in Add()
243 JSHandle<LinkedHashSet> LinkedHashSet::AddWeakRef(const JSThread *thread, const JSHandle<LinkedHash… in AddWeakRef()
246 … return LinkedHashTable<LinkedHashSet, LinkedHashSetObject>::InsertWeakRef(thread, obj, key, key); in AddWeakRef()
249 bool LinkedHashSet::Has(JSTaggedValue key) const in Has()
255 void LinkedHashSet::Clear(const JSThread *thread) in Clear()
[all …]
Dlinked_hash_table.h181 class LinkedHashSet : public LinkedHashTable<LinkedHashSet, LinkedHashSetObject> {
183 static LinkedHashSet *Cast(ObjectHeader *obj) in Cast()
185 return static_cast<LinkedHashSet *>(obj); in Cast()
187 …static JSHandle<LinkedHashSet> Create(const JSThread *thread, int numberOfElements = MIN_CAPACITY);
189 … static JSHandle<LinkedHashSet> Delete(const JSThread *thread, const JSHandle<LinkedHashSet> &obj,
192 static JSHandle<LinkedHashSet> Add(const JSThread *thread, const JSHandle<LinkedHashSet> &obj,
195 …static JSHandle<LinkedHashSet> AddWeakRef(const JSThread *thread, const JSHandle<LinkedHashSet> &o…
198 …static JSHandle<LinkedHashSet> Shrink(const JSThread *thread, const JSHandle<LinkedHashSet> &table,
Djs_set_iterator.cpp52 JSHandle<LinkedHashSet> set(iteratedSet); in Next()
85 LinkedHashSet *set = LinkedHashSet::Cast(iteratedSet.GetTaggedObject()); in Update()
93 set = LinkedHashSet::Cast(nextTable.GetTaggedObject()); in Update()
Djs_handle.h32 class LinkedHashSet; variable
Ddump.cpp855 void LinkedHashSet::Dump(JSThread *thread, std::ostream &os) const in Dump()
1299 LinkedHashSet *set = LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject()); in Dump()
1324 LinkedHashSet *set = LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject()); in Dump()
1337 LinkedHashSet *set = LinkedHashSet::Cast(GetIteratedSet().GetTaggedObject()); in Dump()
2735 void LinkedHashSet::DumpForSnapshot([[maybe_unused]] JSThread *thread, in DumpForSnapshot()
2946 LinkedHashSet *set = LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject()); in DumpForSnapshot()
2964 LinkedHashSet *set = LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject()); in DumpForSnapshot()
2972 LinkedHashSet *set = LinkedHashSet::Cast(GetIteratedSet().GetTaggedObject()); in DumpForSnapshot()
Djs_tagged_value.h29 class LinkedHashSet; variable
Djs_serializer.cpp1032 JSHandle<LinkedHashSet> linkedSet = LinkedHashSet::Create(thread_); in ReadJSSet()
/ark/js_runtime/ecmascript/tests/
Dlinked_hash_table_test.cpp75 JSHandle<LinkedHashSet> set = LinkedHashSet::Create(thread, numOfElement); in HWTEST_F_L0()
125 JSHandle<LinkedHashSet> setHandle = LinkedHashSet::Create(thread, numOfElement); in HWTEST_F_L0()
140 setHandle = LinkedHashSet::Add(thread, setHandle, key1); in HWTEST_F_L0()
146 setHandle = LinkedHashSet::Add(thread, setHandle, key2); in HWTEST_F_L0()
149 setHandle = LinkedHashSet::Delete(thread, setHandle, key1); in HWTEST_F_L0()
154 setHandle = LinkedHashSet::Add(thread, setHandle, undefinedKey); in HWTEST_F_L0()
193 JSHandle<LinkedHashSet> setHandle = LinkedHashSet::Create(thread, numOfElement); in HWTEST_F_L0()
205 setHandle = LinkedHashSet::Add(thread, setHandle, key); in HWTEST_F_L0()
257 JSHandle<LinkedHashSet> setHandle = LinkedHashSet::Create(thread, numOfElement); in HWTEST_F_L0()
268 setHandle = LinkedHashSet::Add(thread, setHandle, key); in HWTEST_F_L0()
[all …]
Djs_set_test.cpp71 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(thread); in CreateSet()
Ddump_test.cpp151 JSHandle<LinkedHashSet> linkedSet(LinkedHashSet::Create(thread)); in NewJSSet()
334 JSHandle<LinkedHashSet> weakLinkedSet(LinkedHashSet::Create(thread)); in HWTEST_F_L0()
Djs_serializer_test.cpp673 JSHandle<LinkedHashSet> linkedSet = LinkedHashSet::Create(thread); in HWTEST_F_L0()
/ark/js_runtime/ecmascript/builtins/
Dbuiltins_weak_set.cpp48 JSHandle<LinkedHashSet> linkedSet = LinkedHashSet::Create(thread); in WeakSetConstructor()
Dbuiltins_set.cpp49 JSHandle<LinkedHashSet> linkedSet = LinkedHashSet::Create(thread); in SetConstructor()