Home
last modified time | relevance | path

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

/arkcompiler/ets_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()
48 LinkedHashSet *linkedSet = LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject()); in Clear()
49 …JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject(… in Clear()
50 JSHandle<LinkedHashSet> newSet = linkedSet->Clear(thread, setHandle); 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()
Dlinked_hash_table.cpp188 JSHandle<LinkedHashSet> LinkedHashSet::Create(const JSThread *thread, int numberOfElements) in Create()
190 return LinkedHashTable<LinkedHashSet, LinkedHashSetObject>::Create(thread, numberOfElements); in Create()
193 JSHandle<LinkedHashSet> LinkedHashSet::Delete(const JSThread *thread, const JSHandle<LinkedHashSet>… in Delete()
196 return LinkedHashTable<LinkedHashSet, LinkedHashSetObject>::Remove(thread, obj, key); in Delete()
199 JSHandle<LinkedHashSet> LinkedHashSet::Add(const JSThread *thread, const JSHandle<LinkedHashSet> &o… in Add()
202 return LinkedHashTable<LinkedHashSet, LinkedHashSetObject>::Insert(thread, obj, key, key); in Add()
205 JSHandle<LinkedHashSet> LinkedHashSet::AddWeakRef(const JSThread *thread, const JSHandle<LinkedHash… in AddWeakRef()
208 … return LinkedHashTable<LinkedHashSet, LinkedHashSetObject>::InsertWeakRef(thread, obj, key, key); in AddWeakRef()
211 bool LinkedHashSet::Has(JSTaggedValue key) const in Has()
217 JSHandle<LinkedHashSet> LinkedHashSet::Clear(const JSThread *thread, const JSHandle<LinkedHashSet> … in Clear()
[all …]
Djs_weak_container.cpp79 if (!LinkedHashSet::IsKey(value.GetTaggedValue())) { in Add()
82 …JSHandle<LinkedHashSet> weakSetHandle(thread, LinkedHashSet::Cast(weakSet->GetLinkedSet().GetTagge… in Add()
84 JSHandle<LinkedHashSet> newSet = LinkedHashSet::AddWeakRef(thread, weakSetHandle, value); in Add()
90 …JSHandle<LinkedHashSet> weakSetHandle(thread, LinkedHashSet::Cast(weakSet->GetLinkedSet().GetTagge… in Delete()
96 JSHandle<LinkedHashSet> newSet = LinkedHashSet::Shrink(thread, weakSetHandle); in Delete()
103 return LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject())->Has(value); in Has()
108 return LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject())->NumberOfElements(); in GetSize()
114 return LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject())->GetValue(entry); in GetValue()
Dlinked_hash_table.h378 class LinkedHashSet : public LinkedHashTable<LinkedHashSet, LinkedHashSetObject> {
380 static LinkedHashSet *Cast(TaggedObject *obj) in Cast()
382 return static_cast<LinkedHashSet *>(obj); in Cast()
384 …static JSHandle<LinkedHashSet> Create(const JSThread *thread, int numberOfElements = MIN_CAPACITY);
386 … static JSHandle<LinkedHashSet> Delete(const JSThread *thread, const JSHandle<LinkedHashSet> &obj,
389 static JSHandle<LinkedHashSet> Add(const JSThread *thread, const JSHandle<LinkedHashSet> &obj,
392 …static JSHandle<LinkedHashSet> AddWeakRef(const JSThread *thread, const JSHandle<LinkedHashSet> &o…
395 …static JSHandle<LinkedHashSet> Shrink(const JSThread *thread, const JSHandle<LinkedHashSet> &table,
400 …static JSHandle<LinkedHashSet> Clear(const JSThread *thread, const JSHandle<LinkedHashSet> &table);
Djs_set_iterator.cpp53 JSHandle<LinkedHashSet> set(iteratedSet); in Next()
86 LinkedHashSet *set = LinkedHashSet::Cast(iteratedSet.GetTaggedObject()); in Update()
94 set = LinkedHashSet::Cast(nextTable.GetTaggedObject()); in Update()
Djs_handle.h72 class LinkedHashSet; variable
Ddump.cpp1328 void LinkedHashSet::Dump(std::ostream &os) const in Dump()
1872 LinkedHashSet *set = LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject()); in Dump()
1897 LinkedHashSet *set = LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject()); in Dump()
1944 LinkedHashSet *set = LinkedHashSet::Cast(GetIteratedSet().GetTaggedObject()); in Dump()
4261 void LinkedHashSet::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) const in DumpForSnapshot()
4498 LinkedHashSet *set = LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject()); in DumpForSnapshot()
4514 LinkedHashSet *set = LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject()); in DumpForSnapshot()
4543 LinkedHashSet *set = LinkedHashSet::Cast(GetIteratedSet().GetTaggedObject()); in DumpForSnapshot()
Djs_tagged_value.h32 class LinkedHashSet; variable
Djs_serializer.cpp1578 JSHandle<LinkedHashSet> linkedSet = LinkedHashSet::Create(thread_); in ReadJSSet()
/arkcompiler/ets_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_iterator_test.cpp62 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(thread); in CreateJSSet()
120 …JSHandle<LinkedHashSet> setHandle1(thread, LinkedHashSet::Cast(jsSet1->GetLinkedSet().GetTaggedObj… in HWTEST_F_L0()
121 …JSHandle<LinkedHashSet> setHandle2(thread, LinkedHashSet::Cast(jsSet2->GetLinkedSet().GetTaggedObj… in HWTEST_F_L0()
127 LinkedHashSet *resultSet = LinkedHashSet::Cast(setIterator->GetIteratedSet().GetTaggedObject()); in HWTEST_F_L0()
Djs_set_test.cpp71 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(thread); in CreateSet()
Ddump_test.cpp194 JSHandle<LinkedHashSet> linkedSet(LinkedHashSet::Create(thread)); in NewJSSet()
578 JSHandle<LinkedHashSet> weakLinkedSet(LinkedHashSet::Create(thread)); in HWTEST_F_L0()
Djs_serializer_test.cpp1272 JSHandle<LinkedHashSet> linkedSet = LinkedHashSet::Create(thread); in HWTEST_F_L0()
/arkcompiler/ets_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()
207 JSMutableHandle<LinkedHashSet> hashSet(thread, set->GetLinkedSet()); in ForEach()
/arkcompiler/ets_runtime/ecmascript/mem/
Dheap.cpp608 JSHandle<LinkedHashSet> linkedSet; in AddToKeptObjects()
610 linkedSet = LinkedHashSet::Create(thread_); in AddToKeptObjects()
613 …JSHandle<LinkedHashSet>(thread_, LinkedHashSet::Cast(env->GetWeakRefKeepObjects()->GetTaggedObject… in AddToKeptObjects()
615 linkedSet = LinkedHashSet::Add(thread_, linkedSet, value); in AddToKeptObjects()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp143 using ecmascript::LinkedHashSet;
2645 LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject())->NumberOfDeletedElements(); in GetTotalElements()
2669LinkedHashSet::Cast(weakSet->GetLinkedSet().GetTaggedObject())->NumberOfDeletedElements(); in GetTotalElements()