/ark/js_runtime/ecmascript/ |
D | js_api_tree_set.h | 27 class JSAPITreeSet : public JSObject { 29 static JSAPITreeSet *Cast(ObjectHeader *object) in Cast() 31 return static_cast<JSAPITreeSet *>(object); in Cast() 34 …static void Add(JSThread *thread, const JSHandle<JSAPITreeSet> &set, const JSHandle<JSTaggedValue>… 36 static void Clear(const JSThread *thread, const JSHandle<JSAPITreeSet> &set); 38 …static bool Delete(JSThread *thread, const JSHandle<JSAPITreeSet> &set, const JSHandle<JSTaggedVal… 40 …static bool Has(JSThread *thread, const JSHandle<JSAPITreeSet> &set, const JSHandle<JSTaggedValue>… 42 static JSTaggedValue PopFirst(JSThread *thread, const JSHandle<JSAPITreeSet> &set); 43 static JSTaggedValue PopLast(JSThread *thread, const JSHandle<JSAPITreeSet> &set);
|
D | js_api_tree_set.cpp | 22 void JSAPITreeSet::Add(JSThread *thread, const JSHandle<JSAPITreeSet> &set, const JSHandle<JSTagged… in Add() 34 int JSAPITreeSet::GetSize() const in GetSize() 39 JSTaggedValue JSAPITreeSet::GetKey(int entry) const in GetKey() 46 bool JSAPITreeSet::Delete(JSThread *thread, const JSHandle<JSAPITreeSet> &set, const JSHandle<JSTag… in Delete() 60 bool JSAPITreeSet::Has(JSThread *thread, const JSHandle<JSAPITreeSet> &set, const JSHandle<JSTagged… in Has() 66 void JSAPITreeSet::Clear(const JSThread *thread, const JSHandle<JSAPITreeSet> &set) in Clear() 73 JSTaggedValue JSAPITreeSet::PopFirst(JSThread *thread, const JSHandle<JSAPITreeSet> &set) in PopFirst() 86 JSTaggedValue JSAPITreeSet::PopLast(JSThread *thread, const JSHandle<JSAPITreeSet> &set) in PopLast()
|
D | js_api_tree_set_iterator.cpp | 46 JSHandle<TaggedTreeSet> set(thread, JSHandle<JSAPITreeSet>::Cast(iteratedSet)->GetTreeSet()); in Next() 89 … JSHandle<JSTaggedValue> iter(factory->NewJSAPITreeSetIterator(JSHandle<JSAPITreeSet>(obj), kind)); in CreateTreeSetIterator()
|
D | object_factory.h | 96 class JSAPITreeSet; variable 387 …JSHandle<JSAPITreeSetIterator> NewJSAPITreeSetIterator(const JSHandle<JSAPITreeSet> &set, Iteratio…
|
D | dump.cpp | 653 JSAPITreeSet::Cast(obj)->Dump(thread, os); in DumpObject() 1188 void JSAPITreeSet::Dump(JSThread *thread, std::ostream &os) const in Dump() 1200 void JSAPITreeSet::DumpForSnapshot([[maybe_unused]] JSThread *thread, in DumpForSnapshot() 1212 …TaggedTreeSet::Cast(JSAPITreeSet::Cast(GetIteratedSet().GetTaggedObject())->GetTreeSet().GetTagged… in Dump() 1228 …TaggedTreeSet::Cast(JSAPITreeSet::Cast(GetIteratedSet().GetTaggedObject())->GetTreeSet().GetTagged… in DumpForSnapshot() 2578 JSAPITreeSet::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
|
D | object_factory.cpp | 794 JSAPITreeSet::Cast(*obj)->SetTreeSet(thread_, JSTaggedValue::Undefined()); in NewJSObjectByConstructor() 2376 JSHandle<JSAPITreeSetIterator> ObjectFactory::NewJSAPITreeSetIterator(const JSHandle<JSAPITreeSet> … in NewJSAPITreeSetIterator()
|
/ark/js_runtime/ecmascript/containers/ |
D | containers_treeset.cpp | 44 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(obj); in TreeSetConstructor() 74 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(self); in Add() 75 JSAPITreeSet::Add(thread, set, value); in Add() 91 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(self); in Remove() 93 return GetTaggedBoolean(JSAPITreeSet::Delete(thread, set, key)); in Remove() 108 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(self); in Has() 110 bool flag = JSAPITreeSet::Has(thread, JSHandle<JSAPITreeSet>::Cast(set), key); in Has() 126 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(self); in GetFirstValue() 141 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(self); in GetLastValue() 156 JSAPITreeSet::Clear(thread, JSHandle<JSAPITreeSet>::Cast(self)); in Clear() [all …]
|
D | containers_private.cpp | 356 … factory->NewEcmaDynClass(JSAPITreeSet::SIZE, JSType::JS_API_TREE_SET, setFuncPrototypeValue); in InitializeTreeSet()
|
/ark/js_runtime/ecmascript/tests/ |
D | js_api_tree_set_test.cpp | 63 JSAPITreeSet *CreateTreeSet() in CreateTreeSet() 83 …JSHandle<JSAPITreeSet> set(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), co… in CreateTreeSet() 92 JSAPITreeSet *set = CreateTreeSet(); in HWTEST_F_L0() 103 JSHandle<JSAPITreeSet> tset(thread, CreateTreeSet()); in HWTEST_F_L0() 108 JSAPITreeSet::Add(thread, tset, key); in HWTEST_F_L0() 117 bool has = JSAPITreeSet::Has(thread, tset, key); in HWTEST_F_L0() 130 JSHandle<JSAPITreeSet> tset(thread, CreateTreeSet()); in HWTEST_F_L0() 135 JSAPITreeSet::Add(thread, tset, key); in HWTEST_F_L0() 142 bool success = JSAPITreeSet::Delete(thread, tset, key); in HWTEST_F_L0() 152 bool has= JSAPITreeSet::Has(thread, tset, key); in HWTEST_F_L0() [all …]
|
D | dump_test.cpp | 167 static JSHandle<JSAPITreeSet> NewJSAPITreeSet(JSThread *thread, ObjectFactory *factory) in NewJSAPITreeSet() 171 …JSHandle<JSHClass> setClass = factory->NewEcmaDynClass(JSAPITreeSet::SIZE, JSType::JS_API_TREE_SET… in NewJSAPITreeSet() 172 JSHandle<JSAPITreeSet> jsTreeSet = JSHandle<JSAPITreeSet>::Cast(factory->NewJSObject(setClass)); in NewJSAPITreeSet() 718 CHECK_DUMP_FILEDS(JSObject::SIZE, JSAPITreeSet::SIZE, 1) in HWTEST_F_L0() 719 JSHandle<JSAPITreeSet> jsTreeSet = NewJSAPITreeSet(thread, factory); in HWTEST_F_L0()
|
/ark/js_runtime/ecmascript/containers/tests/ |
D | containers_treeset_test.cpp | 65 JSHandle<JSAPITreeSet> set(GetCallArg(argv, 2)); // 2 means the second arg in TestForEachFunc() 67 JSAPITreeSet::Delete(thread, set, key); in TestForEachFunc() 69 JSHandle<JSAPITreeSet> jsTreeSet(GetThis(argv)); in TestForEachFunc() 70 JSAPITreeSet::Add(thread, jsTreeSet, key); in TestForEachFunc() 132 JSHandle<JSAPITreeSet> CreateJSAPITreeSet(JSTaggedValue compare = JSTaggedValue::Undefined()) in CreateJSAPITreeSet() 145 JSHandle<JSAPITreeSet> set(thread, result); in CreateJSAPITreeSet() 167 JSHandle<JSAPITreeSet> setHandle(thread, result); in HWTEST_F_L0() 179 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(); in HWTEST_F_L0() 247 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(); in HWTEST_F_L0() 350 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(); in HWTEST_F_L0() [all …]
|
/ark/js_runtime/ecmascript/mem/ |
D | object_xray-inl.h | 335 JSAPITreeSet::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
|