Home
last modified time | relevance | path

Searched refs:setHandle (Results 1 - 12 of 12) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
H A Dlinked_hash_table_test.cpp101 JSHandle<LinkedHashSet> setHandle = LinkedHashSet::Create(thread, numOfElement); in HWTEST_F_L0() local
102 EXPECT_TRUE(*setHandle != nullptr); in HWTEST_F_L0()
116 setHandle = LinkedHashSet::Add(thread, setHandle, key1); in HWTEST_F_L0()
117 EXPECT_EQ(setHandle->NumberOfElements(), 1); in HWTEST_F_L0()
120 EXPECT_TRUE(setHandle->Has(thread, key1.GetTaggedValue())); in HWTEST_F_L0()
122 setHandle = LinkedHashSet::Add(thread, setHandle, key2); in HWTEST_F_L0()
123 EXPECT_EQ(setHandle->NumberOfElements(), 2); in HWTEST_F_L0()
125 setHandle in HWTEST_F_L0()
169 JSHandle<LinkedHashSet> setHandle = LinkedHashSet::Create(thread, numOfElement); HWTEST_F_L0() local
233 JSHandle<LinkedHashSet> setHandle = LinkedHashSet::Create(thread, numOfElement); HWTEST_F_L0() local
[all...]
H A Djs_proxy_test.cpp197 JSHandle<JSTaggedValue> setHandle(factory->NewJSFunction(env, reinterpret_cast<void *>(HandlerSetProperty))); in HWTEST_F_L0()
198 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(handlerHandle), setKey, setHandle); in HWTEST_F_L0()
232 JSHandle<JSTaggedValue> setHandle(factory->NewJSFunction(env, reinterpret_cast<void *>(HandlerDefineOwnProperty))); in HWTEST_F_L0()
233 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(handlerHandle), setKey, setHandle); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/js_api/
H A Djs_api_tree_set.cpp34 JSHandle<TaggedTreeSet> setHandle(thread, TaggedTreeSet::Cast(set->GetTreeSet().GetTaggedObject())); in Add()
36 JSTaggedValue newSet = TaggedTreeSet::Add(thread, setHandle, value); in Add()
55 JSHandle<TaggedTreeSet> setHandle(thread, TaggedTreeSet::Cast(set->GetTreeSet().GetTaggedObject())); in Delete()
57 int entry = TaggedTreeSet::FindEntry(thread, setHandle, key); in Delete()
62 JSTaggedValue newSet = TaggedTreeSet::Delete(thread, setHandle, entry); in Delete()
69 JSHandle<TaggedTreeSet> setHandle(thread, TaggedTreeSet::Cast(set->GetTreeSet().GetTaggedObject())); in Has()
70 return TaggedTreeSet::FindEntry(thread, setHandle, key) >= 0; in Has()
90 JSHandle<TaggedTreeSet> setHandle(thread, TaggedTreeSet::Cast(set->GetTreeSet().GetTaggedObject())); in PopFirst()
91 int entry = setHandle->GetMinimum(setHandle in PopFirst()
[all...]
/arkcompiler/ets_runtime/ecmascript/
H A Djs_set.cpp26 JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject())); in Add()
28 JSHandle<LinkedHashSet> newSet = LinkedHashSet::Add(thread, setHandle, value); in Add()
34 JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject())); in Delete()
35 int entry = setHandle->FindElement(thread, value.GetTaggedValue()); in Delete()
39 setHandle->RemoveEntry(thread, entry); in Delete()
46 JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject())); in Clear()
47 JSHandle<LinkedHashSet> newSet = linkedSet->Clear(thread, setHandle); in Clear()
/arkcompiler/ets_runtime/ecmascript/shared_objects/
H A Djs_shared_set.cpp33 JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject())); in Add()
34 JSHandle<LinkedHashSet> newSet = LinkedHashSet::Add(thread, setHandle, value); in Add()
43 JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject())); in Delete()
44 int entry = setHandle->FindElement(thread, value.GetTaggedValue()); in Delete()
48 setHandle->RemoveEntry(thread, entry); in Delete()
57 JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject())); in Clear()
58 JSHandle<LinkedHashSet> newSet = LinkedHashSet::Clear(thread, setHandle); in Clear()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefishashset_fuzzer/
H A Djsvaluerefishashset_fuzzer.cpp136 JSHandle<JSAPIHashSet> setHandle(thread, result); in ConstructobjectHashSet()
137 return setHandle; in ConstructobjectHashSet()
152 JSHandle<JSAPIHashSet> setHandle = ConstructobjectHashSet(thread); in JSValueRefIsHashSetFuzzTest() local
153 JSHandle<JSTaggedValue> jshashmap = JSHandle<JSTaggedValue>::Cast(setHandle); in JSValueRefIsHashSetFuzzTest()
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_set.cpp57 JSHandle<JSTaggedValue> setHandle(set); in SetConstructor()
58 JSHandle<JSTaggedValue> adder = JSObject::GetProperty(thread, setHandle, adderKey).GetValue(); in SetConstructor()
80 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, adder, setHandle, undefined, 1); in SetConstructor()
H A Dbuiltins_shared_set.cpp63 JSHandle<JSTaggedValue> setHandle(set); in Constructor()
64 JSHandle<JSTaggedValue> adder = JSObject::GetProperty(thread, setHandle, adderKey).GetValue(); in Constructor()
86 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, adder, setHandle, undefined, 1); in Constructor()
/arkcompiler/ets_runtime/ecmascript/containers/tests/
H A Dcontainers_hashset_test.cpp111 JSHandle<JSAPIHashSet> setHandle(thread, result); in HWTEST_F_L0()
112 JSTaggedValue resultProto = JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(setHandle)); in HWTEST_F_L0()
115 int size = setHandle->GetSize(); in HWTEST_F_L0()
H A Dcontainers_treeset_test.cpp169 JSHandle<JSAPITreeSet> setHandle(thread, result); in HWTEST_F_L0()
170 JSTaggedValue resultProto = JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(setHandle)); in HWTEST_F_L0()
173 int size = setHandle->GetSize(); in HWTEST_F_L0()
H A Dcontainers_vector_test.cpp152 JSHandle<JSAPIVector> setHandle(thread, result); in HWTEST_F_L0()
153 JSTaggedValue resultProto = JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(setHandle)); in HWTEST_F_L0()
156 int size = setHandle->GetSize(); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/napi/test/
H A Dffi_workload.cpp1289 JSHandle<JSAPIHashSet> setHandle(thread, result); in ConstructobjectHashSet()
1290 return setHandle; in ConstructobjectHashSet()
1557 JSHandle<JSAPIHashSet> setHandle = ConstructobjectHashSet(vm_); in HWTEST_F_L0() local
1558 JSHandle<JSTaggedValue> jsHashMap = JSHandle<JSTaggedValue>::Cast(setHandle); in HWTEST_F_L0()

Completed in 21 milliseconds