/ark/js_runtime/ecmascript/ |
D | js_set.cpp | 25 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()
|
D | js_weak_container.cpp | 68 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()
|
D | linked_hash_table.cpp | 226 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 …]
|
D | linked_hash_table.h | 181 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,
|
D | js_set_iterator.cpp | 52 JSHandle<LinkedHashSet> set(iteratedSet); in Next() 85 LinkedHashSet *set = LinkedHashSet::Cast(iteratedSet.GetTaggedObject()); in Update() 93 set = LinkedHashSet::Cast(nextTable.GetTaggedObject()); in Update()
|
D | js_handle.h | 32 class LinkedHashSet; variable
|
D | dump.cpp | 855 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()
|
D | js_tagged_value.h | 29 class LinkedHashSet; variable
|
D | js_serializer.cpp | 1032 JSHandle<LinkedHashSet> linkedSet = LinkedHashSet::Create(thread_); in ReadJSSet()
|
/ark/js_runtime/ecmascript/tests/ |
D | linked_hash_table_test.cpp | 75 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 …]
|
D | js_set_test.cpp | 71 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(thread); in CreateSet()
|
D | dump_test.cpp | 151 JSHandle<LinkedHashSet> linkedSet(LinkedHashSet::Create(thread)); in NewJSSet() 334 JSHandle<LinkedHashSet> weakLinkedSet(LinkedHashSet::Create(thread)); in HWTEST_F_L0()
|
D | js_serializer_test.cpp | 673 JSHandle<LinkedHashSet> linkedSet = LinkedHashSet::Create(thread); in HWTEST_F_L0()
|
/ark/js_runtime/ecmascript/builtins/ |
D | builtins_weak_set.cpp | 48 JSHandle<LinkedHashSet> linkedSet = LinkedHashSet::Create(thread); in WeakSetConstructor()
|
D | builtins_set.cpp | 49 JSHandle<LinkedHashSet> linkedSet = LinkedHashSet::Create(thread); in SetConstructor()
|