Home
last modified time | relevance | path

Searched refs:JSAPIHashSet (Results 1 – 24 of 24) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_hashset.h23 class JSAPIHashSet : public JSObject {
25 static JSAPIHashSet *Cast(TaggedObject *object) in Cast()
28 return static_cast<JSAPIHashSet *>(object); in Cast()
30 … static void Add(JSThread *thread, JSHandle<JSAPIHashSet> hashSet, JSHandle<JSTaggedValue> value);
31 … static JSTaggedValue Remove(JSThread *thread, JSHandle<JSAPIHashSet> hashSet, JSTaggedValue key);
Djs_api_hashset.cpp26 JSTaggedValue JSAPIHashSet::IsEmpty() in IsEmpty()
31 JSTaggedValue JSAPIHashSet::Has(JSThread *thread, JSTaggedValue value) in Has()
45 void JSAPIHashSet::Add(JSThread *thread, JSHandle<JSAPIHashSet> hashSet, JSHandle<JSTaggedValue> va… in Add()
69 void JSAPIHashSet::Clear(JSThread *thread) in Clear()
79 JSTaggedValue JSAPIHashSet::Remove(JSThread *thread, JSHandle<JSAPIHashSet> hashSet, JSTaggedValue … in Remove()
Djs_api_hashset_iterator.cpp48 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(iteratedHashSet); in Next()
153 … JSHandle<JSTaggedValue> iter(factory->NewJSAPIHashSetIterator(JSHandle<JSAPIHashSet>(obj), kind)); in CreateHashSetIterator()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_api_hashset_test.cpp61 JSAPIHashSet *CreateHashSet() in CreateHashSet()
81 …JSHandle<JSAPIHashSet> set(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), co… in CreateHashSet()
91 JSAPIHashSet *set = CreateHashSet(); in HWTEST_F_L0()
102 JSHandle<JSAPIHashSet> hashSet(thread, CreateHashSet()); in HWTEST_F_L0()
107 JSAPIHashSet::Add(thread, hashSet, value); in HWTEST_F_L0()
122 JSAPIHashSet::Add(thread, hashSet, hole); in HWTEST_F_L0()
138 JSHandle<JSAPIHashSet> hashSet(thread, CreateHashSet()); in HWTEST_F_L0()
143 JSAPIHashSet::Add(thread, hashSet, value); in HWTEST_F_L0()
150 …[[maybe_unused]] JSTaggedValue rvalue = JSAPIHashSet::Remove(thread, hashSet, value.GetTaggedValue… in HWTEST_F_L0()
173 JSTaggedValue exceptionValue = JSAPIHashSet::Remove(thread, hashSet, JSTaggedValue::Hole()); in HWTEST_F_L0()
[all …]
Djs_api_hashset_iterator_test.cpp61 JSAPIHashSet *CreateHashSet() in CreateHashSet()
81 …JSHandle<JSAPIHashSet> set(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), co… in CreateHashSet()
98 JSHandle<JSAPIHashSet> jsHashSet(thread, CreateHashSet()); in HWTEST_F_L0()
Ddump_test.cpp210 static JSHandle<JSAPIHashSet> NewJSAPIHashSet(JSThread *thread, ObjectFactory *factory) in NewJSAPIHashSet()
214 …JSHandle<JSHClass> setClass = factory->NewEcmaHClass(JSAPIHashSet::SIZE, JSType::JS_API_HASH_SET, … in NewJSAPIHashSet()
215 …JSHandle<JSAPIHashSet> jsHashSet = JSHandle<JSAPIHashSet>::Cast(factory->NewJSObjectWithInit(setCl… in NewJSAPIHashSet()
1067 CHECK_DUMP_FIELDS(JSObject::SIZE, JSAPIHashSet::SIZE, 2U); in HWTEST_F_L0()
1068 JSHandle<JSAPIHashSet> jsHashSet = NewJSAPIHashSet(thread, factory); in HWTEST_F_L0()
1082 JSHandle<JSAPIHashSet> jsHashSet = NewJSAPIHashSet(thread, factory); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_hashset.cpp48 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(obj); in HashSetConstructor()
116 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(self); in Add()
117 JSAPIHashSet::Add(thread, hashSet, value); in Add()
141 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(self); in Remove()
142 return JSAPIHashSet::Remove(thread, hashSet, key.GetTaggedValue()); in Remove()
163 JSHandle<JSAPIHashSet> jsHashSet = JSHandle<JSAPIHashSet>::Cast(self); in Has()
184 JSHandle<JSAPIHashSet> jsHashSet = JSHandle<JSAPIHashSet>::Cast(self); in Clear()
207 JSHandle<JSAPIHashSet> jsHashSet = JSHandle<JSAPIHashSet>::Cast(self); in GetLength()
228 JSHandle<JSAPIHashSet> jsHashSet = JSHandle<JSAPIHashSet>::Cast(self); in IsEmpty()
257 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(thisHandle); in ForEach()
Dcontainers_private.cpp1178 … factory->NewEcmaHClass(JSAPIHashSet::SIZE, JSType::JS_API_HASH_SET, hashSetFuncPrototypeValue); in InitializeHashSet()
/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_hashset_test.cpp79 JSHandle<JSAPIHashSet> CreateJSAPIHashSet() in CreateJSAPIHashSet()
90 JSHandle<JSAPIHashSet> map(thread, result); in CreateJSAPIHashSet()
111 JSHandle<JSAPIHashSet> setHandle(thread, result); in HWTEST_F_L0()
127 JSHandle<JSAPIHashSet> tSet = CreateJSAPIHashSet(); in HWTEST_F_L0()
138 EXPECT_EQ(JSAPIHashSet::Cast(result.GetTaggedObject())->GetSize(), i + 1); in HWTEST_F_L0()
158 JSHandle<JSAPIHashSet> tSet = CreateJSAPIHashSet(); in HWTEST_F_L0()
168 EXPECT_EQ(JSAPIHashSet::Cast(result.GetTaggedObject())->GetSize(), i + 1); in HWTEST_F_L0()
212 EXPECT_EQ(JSAPIHashSet::Cast(result.GetTaggedObject())->GetSize(), NODE_NUMBERS + i); in HWTEST_F_L0()
233 JSHandle<JSAPIHashSet> tSet = CreateJSAPIHashSet(); in HWTEST_F_L0()
244 EXPECT_EQ(JSAPIHashSet::Cast(result.GetTaggedObject())->GetSize(), i + 1); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dcontainers_hashset_stub_builder.h33 GateRef tableOffset = IntPtr(JSAPIHashSet::HASHSET_TABLE_INDEX); in GetTableLength()
40 GateRef tableOffset = IntPtr(JSAPIHashSet::HASHSET_TABLE_INDEX); in GetNode()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetconstructor_fuzzer/
Dcontainershashsetconstructor_fuzzer.cpp69 JSHandle<JSAPIHashSet> CreateJSAPIHashSet(JSThread *thread) in CreateJSAPIHashSet()
78 JSHandle<JSAPIHashSet> map(thread, result); in CreateJSAPIHashSet()
101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetConstructorFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetadd_fuzzer/
Dcontainershashsetadd_fuzzer.cpp69 JSHandle<JSAPIHashSet> CreateJSAPIHashSet(JSThread *thread) in CreateJSAPIHashSet()
78 JSHandle<JSAPIHashSet> map(thread, result); in CreateJSAPIHashSet()
101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetAddFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetvalues_fuzzer/
Dcontainershashsetvalues_fuzzer.cpp69 JSHandle<JSAPIHashSet> CreateJSAPIHashSet(JSThread *thread) in CreateJSAPIHashSet()
78 JSHandle<JSAPIHashSet> map(thread, result); in CreateJSAPIHashSet()
101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetValuesFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetclear_fuzzer/
Dcontainershashsetclear_fuzzer.cpp69 JSHandle<JSAPIHashSet> CreateJSAPIHashSet(JSThread *thread) in CreateJSAPIHashSet()
78 JSHandle<JSAPIHashSet> map(thread, result); in CreateJSAPIHashSet()
101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetClearFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetentries_fuzzer/
Dcontainershashsetentries_fuzzer.cpp69 JSHandle<JSAPIHashSet> CreateJSAPIHashSet(JSThread *thread) in CreateJSAPIHashSet()
78 JSHandle<JSAPIHashSet> map(thread, result); in CreateJSAPIHashSet()
101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetEntriesFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetisempty_fuzzer/
Dcontainershashsetisempty_fuzzer.cpp69 JSHandle<JSAPIHashSet> CreateJSAPIHashSet(JSThread *thread) in CreateJSAPIHashSet()
78 JSHandle<JSAPIHashSet> map(thread, result); in CreateJSAPIHashSet()
101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetIsEmptyFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetforeach_fuzzer/
Dcontainershashsetforeach_fuzzer.cpp68 JSHandle<JSAPIHashSet> CreateJSAPIHashSet(JSThread *thread) in CreateJSAPIHashSet()
77 JSHandle<JSAPIHashSet> map(thread, result); in CreateJSAPIHashSet()
100 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetForEachFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsethas_fuzzer/
Dcontainershashsethas_fuzzer.cpp69 JSHandle<JSAPIHashSet> CreateJSAPIHashSet(JSThread *thread) in CreateJSAPIHashSet()
78 JSHandle<JSAPIHashSet> map(thread, result); in CreateJSAPIHashSet()
101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetHasFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetremove_fuzzer/
Dcontainershashsetremove_fuzzer.cpp69 JSHandle<JSAPIHashSet> CreateJSAPIHashSet(JSThread *thread) in CreateJSAPIHashSet()
78 JSHandle<JSAPIHashSet> map(thread, result); in CreateJSAPIHashSet()
101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetRemoveFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetgetlength_fuzzer/
Dcontainershashsetgetlength_fuzzer.cpp69 JSHandle<JSAPIHashSet> CreateJSAPIHashSet(JSThread *thread) in CreateJSAPIHashSet()
78 JSHandle<JSAPIHashSet> map(thread, result); in CreateJSAPIHashSet()
101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetGetLengthFuzzTest()
/arkcompiler/ets_runtime/ecmascript/
Dobject_factory.h119 class JSAPIHashSet; variable
559 …JSHandle<JSAPIHashSetIterator> NewJSAPIHashSetIterator(const JSHandle<JSAPIHashSet> &hashSet, Iter…
Ddump.cpp914 JSAPIHashSet::Cast(obj)->Dump(os); in DumpObject()
1920 void JSAPIHashSet::Dump(std::ostream &os) const in Dump()
1928 void JSAPIHashSet::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) const in DumpForSnapshot()
3802 JSAPIHashSet::Cast(obj)->DumpForSnapshot(vec); in DumpObject()
Dobject_factory.cpp1130 JSAPIHashSet::Cast(*obj)->SetSize(0); in InitializeJSObject()
1131 JSAPIHashSet::Cast(*obj)->SetTable(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
2761 JSHandle<JSAPIHashSetIterator> ObjectFactory::NewJSAPIHashSetIterator(const JSHandle<JSAPIHashSet> … in NewJSAPIHashSetIterator()
/arkcompiler/ets_runtime/ecmascript/mem/
Dobject_xray.h517 JSAPIHashSet::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()