/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_api_hashset_test.cpp | 102 JSHandle<JSAPIHashSet> hashSet(thread, CreateHashSet()); in HWTEST_F_L0() local 107 JSAPIHashSet::Add(thread, hashSet, value); in HWTEST_F_L0() 109 EXPECT_EQ(hashSet->GetSize(), NODE_NUMBERS); in HWTEST_F_L0() 116 JSTaggedValue bHas = hashSet->Has(thread, value.GetTaggedValue()); in HWTEST_F_L0() 122 JSAPIHashSet::Add(thread, hashSet, hole); in HWTEST_F_L0() 126 JSTaggedValue exceptionHas = hashSet->Has(thread, JSTaggedValue::Hole()); in HWTEST_F_L0() 138 JSHandle<JSAPIHashSet> hashSet(thread, CreateHashSet()); in HWTEST_F_L0() local 143 JSAPIHashSet::Add(thread, hashSet, value); in HWTEST_F_L0() 145 EXPECT_EQ(hashSet->GetSize(), NODE_NUMBERS); in HWTEST_F_L0() 150 …[[maybe_unused]] JSTaggedValue rvalue = JSAPIHashSet::Remove(thread, hashSet, value.GetTaggedValue… in HWTEST_F_L0() [all …]
|
D | js_set_test.cpp | 71 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(thread); in CreateSet() local 72 set->SetLinkedSet(thread, hashSet); in CreateSet()
|
D | js_set_iterator_test.cpp | 62 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(thread); in CreateJSSet() local 63 set->SetLinkedSet(thread, hashSet); in CreateJSSet()
|
/arkcompiler/toolchain/tooling/test/testcases/js/ |
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.add(112); [all …]
|
/arkcompiler/ets_runtime/ecmascript/js_api/ |
D | js_api_hashset.cpp | 46 void JSAPIHashSet::Add(JSThread *thread, JSHandle<JSAPIHashSet> hashSet, JSHandle<JSTaggedValue> va… in Add() argument 55 JSHandle<TaggedHashArray> hashArray(thread, hashSet->GetTable()); in Add() 59 uint32_t nodeNum = hashSet->GetSize(); in Add() 61 hashSet->SetSize(++nodeNum); in Add() 67 hashSet->SetTable(thread, hashArray); in Add() 80 JSTaggedValue JSAPIHashSet::Remove(JSThread *thread, JSHandle<JSAPIHashSet> hashSet, JSTaggedValue … in Remove() argument 91 JSHandle<TaggedHashArray> hashArray(thread, hashSet->GetTable()); in Remove() 92 uint32_t nodeNum = hashSet->GetSize(); in Remove() 101 hashSet->SetSize(--nodeNum); in Remove()
|
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);
|
D | js_api_hashset_iterator.cpp | 48 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(iteratedHashSet); in Next() local 49 JSHandle<TaggedHashArray> tableArr(thread, hashSet->GetTable()); in Next() 53 uint32_t size = hashSet->GetSize(); in Next()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_set.cpp | 207 JSMutableHandle<LinkedHashSet> hashSet(thread, set->GetLinkedSet()); in ForEach() local 210 int totalElements = hashSet->NumberOfElements() + hashSet->NumberOfDeletedElements(); in ForEach() 214 JSHandle<JSTaggedValue> key(thread, hashSet->GetKey(index++)); in ForEach() 226 JSTaggedValue nextTable = hashSet->GetNextTable(); in ForEach() 228 index -= hashSet->GetDeletedElementsAt(index); in ForEach() 229 hashSet.Update(nextTable); in ForEach() 230 nextTable = hashSet->GetNextTable(); in ForEach() 232 totalElements = hashSet->NumberOfElements() + hashSet->NumberOfDeletedElements(); in ForEach()
|
/arkcompiler/ets_runtime/ecmascript/containers/ |
D | containers_hashset.cpp | 48 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(obj); in HashSetConstructor() local 50 hashSet->SetTable(thread, hashSetArray); in HashSetConstructor() 51 hashSet->SetSize(0); in HashSetConstructor() 53 return hashSet.GetTaggedValue(); in HashSetConstructor() 116 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(self); in Add() local 117 JSAPIHashSet::Add(thread, hashSet, value); in Add() 119 return hashSet.GetTaggedValue(); in Add() 141 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(self); in Remove() local 142 return JSAPIHashSet::Remove(thread, hashSet, key.GetTaggedValue()); in Remove() 258 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(thisHandle); in ForEach() local [all …]
|
/arkcompiler/ets_runtime/test/fuzztest/containershashsetclear_fuzzer/ |
D | containershashsetclear_fuzzer.cpp | 101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetClearFuzzTest() local 104 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetClearFuzzTest() 110 callInfoIsEmpty->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetClearFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containershashsetisempty_fuzzer/ |
D | containershashsetisempty_fuzzer.cpp | 101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetIsEmptyFuzzTest() local 104 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetIsEmptyFuzzTest() 110 callInfoIsEmpty->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetIsEmptyFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containershashsethas_fuzzer/ |
D | containershashsethas_fuzzer.cpp | 101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetHasFuzzTest() local 104 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetHasFuzzTest() 110 callInfoHas->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetHasFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containershashsetremove_fuzzer/ |
D | containershashsetremove_fuzzer.cpp | 101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetRemoveFuzzTest() local 104 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetRemoveFuzzTest() 110 callInfoRemove->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetRemoveFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containershashsetgetlength_fuzzer/ |
D | containershashsetgetlength_fuzzer.cpp | 101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetGetLengthFuzzTest() local 104 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetGetLengthFuzzTest() 110 callInfoGetLength->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetGetLengthFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containershashsetforeach_fuzzer/ |
D | containershashsetforeach_fuzzer.cpp | 100 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetForEachFuzzTest() local 103 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetForEachFuzzTest() 109 callInfoValues->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetForEachFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containershashsetentries_fuzzer/ |
D | containershashsetentries_fuzzer.cpp | 101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetEntriesFuzzTest() local 104 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetEntriesFuzzTest() 110 callInfoEntries->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetEntriesFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containershashsetvalues_fuzzer/ |
D | containershashsetvalues_fuzzer.cpp | 101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetValuesFuzzTest() local 104 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetValuesFuzzTest() 110 callInfoValues->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetValuesFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containershashsetadd_fuzzer/ |
D | containershashsetadd_fuzzer.cpp | 101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetAddFuzzTest() local 104 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetAddFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containershashsetconstructor_fuzzer/ |
D | containershashsetconstructor_fuzzer.cpp | 101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetConstructorFuzzTest() local 104 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetConstructorFuzzTest()
|
/arkcompiler/ets_runtime/ecmascript/containers/tests/ |
D | containers_hashset_test.cpp | 417 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(); in HWTEST_F_L0() local 421 proxy->SetTarget(thread, hashSet.GetTaggedValue()); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/debugger/ |
D | debugger_api.cpp | 937 JSHandle<JSAPIHashSet> hashSet(JSNApiHelper::ToJSHandle(value)); in GetHashSetValue() local 939 JSHandle<TaggedHashArray> table(thread, hashSet->GetTable()); in GetHashSetValue() 941 uint32_t size = static_cast<uint32_t>(hashSet->GetSize()); in GetHashSetValue()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | object_factory.h | 577 …JSHandle<JSAPIHashSetIterator> NewJSAPIHashSetIterator(const JSHandle<JSAPIHashSet> &hashSet, Iter…
|
D | object_factory.cpp | 2771 …JSAPIHashSetIterator> ObjectFactory::NewJSAPIHashSetIterator(const JSHandle<JSAPIHashSet> &hashSet, in NewJSAPIHashSetIterator() argument 2783 iter->SetIteratedHashSet(thread_, hashSet); in NewJSAPIHashSetIterator()
|