Home
last modified time | relevance | path

Searched refs:jsSet (Results 1 – 6 of 6) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
Djs_set_iterator_test.cpp76 JSHandle<JSSet> jsSet(thread, CreateJSSet(thread)); in HWTEST_F_L0() local
77 EXPECT_TRUE(*jsSet != nullptr); in HWTEST_F_L0()
80 … JSSetIterator::CreateSetIterator(thread, JSHandle<JSTaggedValue>(jsSet), IterationKind::KEY); in HWTEST_F_L0()
84 … EXPECT_EQ(JSTaggedValue::SameValue(setIterator1->GetIteratedSet(), jsSet->GetLinkedSet()), true); in HWTEST_F_L0()
89 … JSSetIterator::CreateSetIterator(thread, JSHandle<JSTaggedValue>(jsSet), IterationKind::VALUE); in HWTEST_F_L0()
93 … EXPECT_EQ(JSTaggedValue::SameValue(setIterator2->GetIteratedSet(), jsSet->GetLinkedSet()), true); in HWTEST_F_L0()
142 JSHandle<JSSet> jsSet(thread, CreateJSSet(thread)); in HWTEST_F_L0() local
143 EXPECT_TRUE(*jsSet != nullptr); in HWTEST_F_L0()
147 JSSet::Add(thread, jsSet, key); in HWTEST_F_L0()
151 … JSSetIterator::CreateSetIterator(thread, JSHandle<JSTaggedValue>(jsSet), IterationKind::KEY); in HWTEST_F_L0()
[all …]
Djs_api_tree_set_iterator_test.cpp75 …JSHandle<JSAPITreeSet> jsSet(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), … in CreateTreeSet() local
77 jsSet->SetTreeSet(thread, internal); in CreateTreeSet()
78 return jsSet; in CreateTreeSet()
Ddump_test.cpp193 JSHandle<JSSet> jsSet = JSHandle<JSSet>::Cast(factory->NewJSObjectWithInit(setClass)); in NewJSSet() local
195 jsSet->SetLinkedSet(thread, linkedSet); in NewJSSet()
196 return jsSet; in NewJSSet()
555 JSHandle<JSSet> jsSet = NewJSSet(thread, factory, proto); in HWTEST_F_L0() local
556 DUMP_FOR_HANDLE(jsSet) in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_set_test.cpp158 JSSet *jsSet = JSSet::Cast(reinterpret_cast<TaggedObject *>(result2.GetRawData())); in HWTEST_F_L0() local
159 EXPECT_EQ(jsSet->GetSize(), 1); in HWTEST_F_L0()
164 ecmaRuntimeCallInfo1->SetThis(JSTaggedValue(jsSet)); in HWTEST_F_L0()
179 ecmaRuntimeCallInfo2->SetThis(JSTaggedValue(jsSet)); in HWTEST_F_L0()
189 ecmaRuntimeCallInfo3->SetThis(JSTaggedValue(jsSet)); in HWTEST_F_L0()
219 JSSet *jsSet = JSSet::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData())); in HWTEST_F_L0() local
220 EXPECT_EQ(jsSet->GetSize(), static_cast<int>(i) + 1); in HWTEST_F_L0()
263 JSSet *jsSet = JSSet::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData())); in HWTEST_F_L0() local
264 EXPECT_EQ(jsSet->GetSize(), static_cast<int>(i) + 1); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_set.cpp177 JSSet *jsSet = JSSet::Cast(*JSTaggedValue::ToObject(thread, self)); in Has() local
180 bool flag = jsSet->Has(value.GetTaggedValue()); in Has()
255 JSSet *jsSet = JSSet::Cast(*JSTaggedValue::ToObject(thread, self)); in GetSize() local
257 uint32_t count = jsSet->GetSize(); in GetSize()
/arkcompiler/ets_runtime/ecmascript/
Djs_serializer.cpp1568 JSHandle<JSSet> jsSet = JSHandle<JSSet>::Cast(factory_->NewJSObjectByConstructor(setFunction)); in ReadJSSet() local
1569 JSHandle<JSTaggedValue> setTag = JSHandle<JSTaggedValue>::Cast(jsSet); in ReadJSSet()
1579 jsSet->SetLinkedSet(thread_, linkedSet); in ReadJSSet()
1585 JSSet::Add(thread_, jsSet, key); in ReadJSSet()