Home
last modified time | relevance | path

Searched refs:hashSet (Results 1 – 23 of 23) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
Djs_api_hashset_test.cpp102 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 …]
Djs_set_test.cpp71 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(thread); in CreateSet() local
72 set->SetLinkedSet(thread, hashSet); in CreateSet()
Djs_set_iterator_test.cpp62 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(thread); in CreateJSSet() local
63 set->SetLinkedSet(thread, hashSet); in CreateJSSet()
/arkcompiler/toolchain/tooling/test/testcases/js/
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.add(112);
[all …]
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_hashset.cpp46 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()
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);
Djs_api_hashset_iterator.cpp48 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/
Dbuiltins_set.cpp207 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/
Dcontainers_hashset.cpp48 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/
Dcontainershashsetclear_fuzzer.cpp101 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/
Dcontainershashsetisempty_fuzzer.cpp101 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/
Dcontainershashsethas_fuzzer.cpp101 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/
Dcontainershashsetremove_fuzzer.cpp101 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/
Dcontainershashsetgetlength_fuzzer.cpp101 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/
Dcontainershashsetforeach_fuzzer.cpp100 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/
Dcontainershashsetentries_fuzzer.cpp101 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/
Dcontainershashsetvalues_fuzzer.cpp101 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/
Dcontainershashsetadd_fuzzer.cpp101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetAddFuzzTest() local
104 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetAddFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashsetconstructor_fuzzer/
Dcontainershashsetconstructor_fuzzer.cpp101 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread); in ContainersHashSetConstructorFuzzTest() local
104 callInfo->SetThis(hashSet.GetTaggedValue()); in ContainersHashSetConstructorFuzzTest()
/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_hashset_test.cpp417 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(); in HWTEST_F_L0() local
421 proxy->SetTarget(thread, hashSet.GetTaggedValue()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/debugger/
Ddebugger_api.cpp937 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/
Dobject_factory.h577 …JSHandle<JSAPIHashSetIterator> NewJSAPIHashSetIterator(const JSHandle<JSAPIHashSet> &hashSet, Iter…
Dobject_factory.cpp2771 …JSAPIHashSetIterator> ObjectFactory::NewJSAPIHashSetIterator(const JSHandle<JSAPIHashSet> &hashSet, in NewJSAPIHashSetIterator() argument
2783 iter->SetIteratedHashSet(thread_, hashSet); in NewJSAPIHashSetIterator()