Home
last modified time | relevance | path

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

12

/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.cpp24 JSTaggedValue JSAPIHashSet::IsEmpty() in IsEmpty()
29 JSTaggedValue JSAPIHashSet::Has(JSThread *thread, JSTaggedValue value) in Has()
44 void JSAPIHashSet::Add(JSThread *thread, JSHandle<JSAPIHashSet> hashSet, JSHandle<JSTaggedValue> va… in Add()
68 void JSAPIHashSet::Clear(JSThread *thread) in Clear()
78 JSTaggedValue JSAPIHashSet::Remove(JSThread *thread, JSHandle<JSAPIHashSet> hashSet, JSTaggedValue … in Remove()
Djs_api_hashset_iterator.cpp44 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(iteratedHashSet); in Next()
86 … JSHandle<JSTaggedValue> iter(factory->NewJSAPIHashSetIterator(JSHandle<JSAPIHashSet>(obj), kind)); in CreateHashSetIterator()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_api_hashset_test.cpp36 JSAPIHashSet *CreateHashSet() in CreateHashSet()
41 …void Update(JSHandle<JSAPIHashSet>& hashSet, JSMutableHandle<JSTaggedValue> value, std::string& my… in Update()
48 JSAPIHashSet::Add(thread, hashSet, value); in Update()
56 JSAPIHashSet *set = CreateHashSet(); in HWTEST_F_L0()
64 JSHandle<JSAPIHashSet> hashSet(thread, CreateHashSet()); in HWTEST_F_L0()
80 JSAPIHashSet::Add(thread, hashSet, hole); in HWTEST_F_L0()
94 JSHandle<JSAPIHashSet> hashSet(thread, CreateHashSet()); in HWTEST_F_L0()
102 …[[maybe_unused]] JSTaggedValue rvalue = JSAPIHashSet::Remove(thread, hashSet, value.GetTaggedValue… in HWTEST_F_L0()
125 JSTaggedValue exceptionValue = JSAPIHashSet::Remove(thread, hashSet, JSTaggedValue::Hole()); in HWTEST_F_L0()
135 JSHandle<JSAPIHashSet> hashSet(thread, CreateHashSet()); in HWTEST_F_L0()
[all …]
Djs_api_hashset_iterator_test.cpp36 JSAPIHashSet *CreateHashSet() in CreateHashSet()
51 JSHandle<JSAPIHashSet> jsHashSet(thread, CreateHashSet()); in HWTEST_F_L0()
Decma_container_common.h118 static JSAPIHashSet *CreateHashSet(JSThread *thread) in CreateHashSet()
123 …JSHandle<JSAPIHashSet> set(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), co… in CreateHashSet()
Ddump_test.cpp280 static JSHandle<JSAPIHashSet> NewJSAPIHashSet(JSThread *thread, ObjectFactory *factory) in NewJSAPIHashSet()
284 …JSHandle<JSHClass> setClass = factory->NewEcmaHClass(JSAPIHashSet::SIZE, JSType::JS_API_HASH_SET, … in NewJSAPIHashSet()
285 …JSHandle<JSAPIHashSet> jsHashSet = JSHandle<JSAPIHashSet>::Cast(factory->NewJSObjectWithInit(setCl… in NewJSAPIHashSet()
1274 CHECK_DUMP_FIELDS(JSObject::SIZE, JSAPIHashSet::SIZE, 2U); in HWTEST_F_L0()
1275 JSHandle<JSAPIHashSet> jsHashSet = NewJSAPIHashSet(thread, factory); in HWTEST_F_L0()
1289 JSHandle<JSAPIHashSet> jsHashSet = NewJSAPIHashSet(thread, factory); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_hashset.cpp44 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(obj); in HashSetConstructor()
132 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(self); in Add()
133 JSAPIHashSet::Add(thread, hashSet, value); in Add()
157 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(self); in Remove()
158 return JSAPIHashSet::Remove(thread, hashSet, key.GetTaggedValue()); in Remove()
179 JSHandle<JSAPIHashSet> jsHashSet = JSHandle<JSAPIHashSet>::Cast(self); in Has()
200 JSHandle<JSAPIHashSet> jsHashSet = JSHandle<JSAPIHashSet>::Cast(self); in Clear()
223 JSHandle<JSAPIHashSet> jsHashSet = JSHandle<JSAPIHashSet>::Cast(self); in GetLength()
244 JSHandle<JSAPIHashSet> jsHashSet = JSHandle<JSAPIHashSet>::Cast(self); in IsEmpty()
274 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(thisHandle); in ForEach()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dcontainers_hashset_stub_builder.h39 GateRef tableOffset = IntPtr(JSAPIHashSet::HASHSET_TABLE_INDEX); in BUILTINS_WITH_CONTAINERS_HASHSET_STUB_BUILDER()
46 GateRef tableOffset = IntPtr(JSAPIHashSet::HASHSET_TABLE_INDEX); in GetNode()
Dcontainers_stub_builder.h198 GateRef tableOffset = IntPtr(JSAPIHashSet::HASHSET_TABLE_INDEX); in ContainerGetSize()
292 GateRef tableOffset = IntPtr(JSAPIHashSet::HASHSET_TABLE_INDEX); in ContainerGetNode()
/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()
103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetAddFuzzTest()
/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()
103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetConstructorFuzzTest()
/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()
103 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()
103 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()
102 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetForEachFuzzTest()
/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()
103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetValuesFuzzTest()
/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()
103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetRemoveFuzzTest()
/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()
103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetClearFuzzTest()
/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()
103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetHasFuzzTest()
/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()
103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetGetLengthFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefishashset_fuzzer/
Djsvaluerefishashset_fuzzer.cpp115 JSHandle<JSAPIHashSet> ConstructobjectHashSet(JSThread *thread) in ConstructobjectHashSet()
137 JSHandle<JSAPIHashSet> setHandle(thread, result); in ConstructobjectHashSet()
156 JSHandle<JSAPIHashSet> setHandle = ConstructobjectHashSet(thread); in JSValueRefIsHashSetFuzzTest()
/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()
158 JSHandle<JSAPIHashSet> tSet = CreateJSAPIHashSet(); in HWTEST_F_L0()
233 JSHandle<JSAPIHashSet> tSet = CreateJSAPIHashSet(); in HWTEST_F_L0()
319 JSHandle<JSAPIHashSet> tSet = CreateJSAPIHashSet(); in HWTEST_F_L0()
416 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/base/tests/
Djson_stringifier_test.cpp134 static JSAPIHashSet *CreateHashSet(JSThread *thread) in CreateHashSet()
634 JSHandle<JSAPIHashSet> hashSet(thread, CreateHashSet(thread)); in HWTEST_F_L0()
644 JSHandle<JSAPIHashSet> hashSet1(thread, CreateHashSet(thread)); in HWTEST_F_L0()
646 JSAPIHashSet::Add(thread, hashSet1, value1); in HWTEST_F_L0()
649 JSAPIHashSet::Add(thread, hashSet1, value2); in HWTEST_F_L0()
787 JSHandle<JSAPIHashSet> hashSet1(thread, CreateHashSet(thread)); in HWTEST_F_L0()
789 JSAPIHashSet::Add(thread, hashSet1, value1); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/
Dheap_dump_test.cpp551 JSHandle<JSAPIHashSet> NewJSAPIHashSet() in NewJSAPIHashSet()
555 …JSHandle<JSObject> jsAPIHashSetObject = NewObject(JSAPIHashSet::SIZE, JSType::JS_API_HASH_SET, pro… in NewJSAPIHashSet()
556 JSHandle<JSAPIHashSet> jsAPIHashSet = JSHandle<JSAPIHashSet>::Cast(jsAPIHashSetObject); in NewJSAPIHashSet()
/arkcompiler/ets_runtime/ecmascript/mem/
Dobject_xray.h670 JSAPIHashSet::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()

12