Home
last modified time | relevance | path

Searched refs:hashSet (Results 1 - 25 of 34) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_api_hashset_test.cpp41 void Update(JSHandle<JSAPIHashSet>& hashSet, JSMutableHandle<JSTaggedValue> value, std::string& myValue, in Update() argument
48 JSAPIHashSet::Add(thread, hashSet, value); in Update()
50 EXPECT_EQ(hashSet->GetSize(), numbers); in Update()
64 JSHandle<JSAPIHashSet> hashSet(thread, CreateHashSet()); in HWTEST_F_L0()
66 Update(hashSet, value, myValue, NODE_NUMBERS); in HWTEST_F_L0()
74 JSTaggedValue bHas = hashSet->Has(thread, value.GetTaggedValue()); in HWTEST_F_L0()
80 JSAPIHashSet::Add(thread, hashSet, hole); in HWTEST_F_L0()
84 JSTaggedValue exceptionHas = hashSet->Has(thread, JSTaggedValue::Hole()); in HWTEST_F_L0()
94 JSHandle<JSAPIHashSet> hashSet(thread, CreateHashSet()); in HWTEST_F_L0()
97 Update(hashSet, valu in HWTEST_F_L0()
[all...]
H A Djs_set_test.cpp45 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(thread); in CreateSet() local
46 set->SetLinkedSet(thread, hashSet); in CreateSet()
H A Djs_set_iterator_test.cpp36 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(thread); in CreateJSSet() local
37 set->SetLinkedSet(thread, hashSet); in CreateJSSet()
/arkcompiler/toolchain/tooling/test/testcases/js/
H A Dcontainer.js76 let hashSet = new HashSet();
77 hashSet.add(5);
78 hashSet.add(18);
79 hashSet.add(2);
80 hashSet.add(18);
81 hashSet.add(8);
82 hashSet.add(11);
83 hashSet.add(1);
84 hashSet.add(99);
85 hashSet
[all...]
/arkcompiler/ets_runtime/ecmascript/js_api/
H A Djs_api_hashset.cpp44 void JSAPIHashSet::Add(JSThread *thread, JSHandle<JSAPIHashSet> hashSet, JSHandle<JSTaggedValue> value) in Add() argument
53 JSHandle<TaggedHashArray> hashArray(thread, hashSet->GetTable()); in Add()
57 uint32_t nodeNum = hashSet->GetSize(); in Add()
59 hashSet->SetSize(++nodeNum); in Add()
65 hashSet->SetTable(thread, hashArray); in Add()
78 JSTaggedValue JSAPIHashSet::Remove(JSThread *thread, JSHandle<JSAPIHashSet> hashSet, JSTaggedValue key) in Remove() argument
89 JSHandle<TaggedHashArray> hashArray(thread, hashSet->GetTable()); in Remove()
90 uint32_t nodeNum = hashSet->GetSize(); in Remove()
99 hashSet->SetSize(--nodeNum); in Remove()
H A Djs_api_hashset.h30 static void Add(JSThread *thread, JSHandle<JSAPIHashSet> hashSet, JSHandle<JSTaggedValue> value);
31 static JSTaggedValue Remove(JSThread *thread, JSHandle<JSAPIHashSet> hashSet, JSTaggedValue key);
H A Djs_api_hashset_iterator.cpp42 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(iteratedHashSet); in Next() local
43 JSHandle<TaggedHashArray> tableArr(thread, hashSet->GetTable()); in Next()
47 uint32_t size = hashSet->GetSize(); in Next()
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_set.cpp198 JSMutableHandle<LinkedHashSet> hashSet(thread, set->GetLinkedSet()); in ForEach()
201 int totalElements = hashSet->NumberOfElements() + hashSet->NumberOfDeletedElements(); in ForEach()
205 JSHandle<JSTaggedValue> key(thread, hashSet->GetKey(index++)); in ForEach()
217 JSTaggedValue nextTable = hashSet->GetNextTable(); in ForEach()
219 index -= hashSet->GetDeletedElementsAt(index); in ForEach()
220 hashSet.Update(nextTable); in ForEach()
221 nextTable = hashSet->GetNextTable(); in ForEach()
223 totalElements = hashSet->NumberOfElements() + hashSet in ForEach()
[all...]
H A Dbuiltins_shared_set.cpp197 JSMutableHandle<LinkedHashSet> hashSet(thread, set->GetLinkedSet()); in ForEach()
200 int totalElements = hashSet->NumberOfElements() + hashSet->NumberOfDeletedElements(); in ForEach()
204 JSHandle<JSTaggedValue> key(thread, hashSet->GetKey(index++)); in ForEach()
/arkcompiler/ets_runtime/test/fuzztest/weaksetref_fuzzer/
H A Dweaksetref_fuzzer.cpp47 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(thread); in WeakSetRefGetSizeFuzzTest() local
48 weakSet->SetLinkedSet(thread, hashSet); in WeakSetRefGetSizeFuzzTest()
75 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(thread); in WeakSetRefGetTotalElementsFuzzTest() local
76 weakSet->SetLinkedSet(thread, hashSet); in WeakSetRefGetTotalElementsFuzzTest()
103 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(thread); in WeakSetRefGetValueFuzzTest() local
104 weakSet->SetLinkedSet(thread, hashSet); in WeakSetRefGetValueFuzzTest()
/arkcompiler/ets_runtime/ecmascript/containers/
H A Dcontainers_hashset.cpp44 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(obj); in HashSetConstructor() local
46 hashSet->SetTable(thread, hashSetArray); in HashSetConstructor()
47 hashSet->SetSize(0); in HashSetConstructor()
49 return hashSet.GetTaggedValue(); in HashSetConstructor()
132 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(self); in Add() local
133 JSAPIHashSet::Add(thread, hashSet, value); in Add()
157 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(self); in Remove() local
158 return JSAPIHashSet::Remove(thread, hashSet, key.GetTaggedValue()); in Remove()
274 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(thisHandle); in ForEach() local
275 JSHandle<TaggedHashArray> table(thread, hashSet in ForEach()
[all...]
/arkcompiler/ets_runtime/test/fuzztest/setrefgetsize_fuzzer/
H A Dsetrefgetsize_fuzzer.cpp48 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(vm->GetJSThread()); in SetRefGetSizeFuzztest() local
49 jsSet->SetLinkedSet(vm->GetJSThread(), hashSet); in SetRefGetSizeFuzztest()
/arkcompiler/ets_runtime/test/fuzztest/setrefgettotalelements_fuzzer/
H A Dsetrefgettotalelements_fuzzer.cpp48 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(vm->GetJSThread()); in SetRefGetTotalElementsFuzztest() local
49 jsSet->SetLinkedSet(vm->GetJSThread(), hashSet); in SetRefGetTotalElementsFuzztest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetforeach_fuzzer/
H A Dcontainershashsetforeach_fuzzer.cpp102 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetForEachFuzzTest() local
105 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetForEachFuzzTest()
111 callInfoValues->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetForEachFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetclear_fuzzer/
H A Dcontainershashsetclear_fuzzer.cpp103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetClearFuzzTest() local
106 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetClearFuzzTest()
111 callInfoIsEmpty->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetClearFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/setrefgetvalue_fuzzer/
H A Dsetrefgetvalue_fuzzer.cpp48 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(vm->GetJSThread()); in SetRefGetValueFuzztest() local
49 jsSet->SetLinkedSet(vm->GetJSThread(), hashSet); in SetRefGetValueFuzztest()
/arkcompiler/ets_runtime/test/fuzztest/setiteratorrefget_fuzzer/
H A Dsetiteratorrefget_fuzzer.cpp41 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(thread); in CreateJSSet() local
42 set->SetLinkedSet(thread, hashSet); in CreateJSSet()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetgetlength_fuzzer/
H A Dcontainershashsetgetlength_fuzzer.cpp103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetGetLengthFuzzTest() local
106 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetGetLengthFuzzTest()
112 callInfoGetLength->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetGetLengthFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetentries_fuzzer/
H A Dcontainershashsetentries_fuzzer.cpp103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetEntriesFuzzTest() local
106 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetEntriesFuzzTest()
112 callInfoEntries->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetEntriesFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetremove_fuzzer/
H A Dcontainershashsetremove_fuzzer.cpp103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetRemoveFuzzTest() local
106 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetRemoveFuzzTest()
112 callInfoRemove->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetRemoveFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetvalues_fuzzer/
H A Dcontainershashsetvalues_fuzzer.cpp103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetValuesFuzzTest() local
106 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetValuesFuzzTest()
112 callInfoValues->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetValuesFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetisempty_fuzzer/
H A Dcontainershashsetisempty_fuzzer.cpp103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetIsEmptyFuzzTest() local
106 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetIsEmptyFuzzTest()
112 callInfoIsEmpty->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetIsEmptyFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsethas_fuzzer/
H A Dcontainershashsethas_fuzzer.cpp103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetHasFuzzTest() local
106 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetHasFuzzTest()
112 callInfoHas->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetHasFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetconstructor_fuzzer/
H A Dcontainershashsetconstructor_fuzzer.cpp103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetConstructorFuzzTest() local
106 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetConstructorFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetadd_fuzzer/
H A Dcontainershashsetadd_fuzzer.cpp103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetAddFuzzTest() local
106 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetAddFuzzTest()

Completed in 9 milliseconds

12