/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | js_api_hashset_test.cpp | 41 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 D | js_set_test.cpp | 45 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(thread); in CreateSet() local 46 set->SetLinkedSet(thread, hashSet); in CreateSet()
|
H A D | js_set_iterator_test.cpp | 36 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(thread); in CreateJSSet() local 37 set->SetLinkedSet(thread, hashSet); in CreateJSSet()
|
/arkcompiler/toolchain/tooling/test/testcases/js/ |
H A D | container.js | 76 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 D | js_api_hashset.cpp | 44 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 D | js_api_hashset.h | 30 static void Add(JSThread *thread, JSHandle<JSAPIHashSet> hashSet, JSHandle<JSTaggedValue> value); 31 static JSTaggedValue Remove(JSThread *thread, JSHandle<JSAPIHashSet> hashSet, JSTaggedValue key);
|
H A D | js_api_hashset_iterator.cpp | 42 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 D | builtins_set.cpp | 198 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 D | builtins_shared_set.cpp | 197 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 D | weaksetref_fuzzer.cpp | 47 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 D | containers_hashset.cpp | 44 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 D | setrefgetsize_fuzzer.cpp | 48 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 D | setrefgettotalelements_fuzzer.cpp | 48 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 D | containershashsetforeach_fuzzer.cpp | 102 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 D | containershashsetclear_fuzzer.cpp | 103 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 D | setrefgetvalue_fuzzer.cpp | 48 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 D | setiteratorrefget_fuzzer.cpp | 41 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 D | containershashsetgetlength_fuzzer.cpp | 103 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 D | containershashsetentries_fuzzer.cpp | 103 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 D | containershashsetremove_fuzzer.cpp | 103 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 D | containershashsetvalues_fuzzer.cpp | 103 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 D | containershashsetisempty_fuzzer.cpp | 103 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 D | containershashsethas_fuzzer.cpp | 103 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 D | containershashsetconstructor_fuzzer.cpp | 103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetConstructorFuzzTest() local 106 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetConstructorFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containershashsetadd_fuzzer/ |
H A D | containershashsetadd_fuzzer.cpp | 103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetAddFuzzTest() local 106 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetAddFuzzTest()
|