Home
last modified time | relevance | path

Searched refs:jsMap (Results 1 – 5 of 5) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
Djs_map_iterator_test.cpp59 …JSHandle<JSMap> jsMap(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(builtinsMapFunc), bui… in CreateJSMap() local
61 jsMap->SetLinkedMap(thread, linkedHashMap); in CreateJSMap()
62 return jsMap; in CreateJSMap()
74 JSHandle<JSMap> jsMap = CreateJSMap(thread); in HWTEST_F_L0() local
78 JSMapIterator::CreateMapIterator(thread, JSHandle<JSTaggedValue>::Cast(jsMap), iterKind); in HWTEST_F_L0()
83 JSMapIterator::CreateMapIterator(thread, JSHandle<JSTaggedValue>::Cast(jsMap), iterKind); in HWTEST_F_L0()
88 JSMapIterator::CreateMapIterator(thread, JSHandle<JSTaggedValue>::Cast(jsMap), iterKind); in HWTEST_F_L0()
129 JSHandle<JSMap> jsMap = CreateJSMap(thread); in HWTEST_F_L0() local
130 JSHandle<JSTaggedValue> mapValue(jsMap); in HWTEST_F_L0()
151 JSHandle<JSMap> jsMap = CreateJSMap(thread); in HWTEST_F_L0() local
[all …]
Ddump_test.cpp184 JSHandle<JSMap> jsMap = JSHandle<JSMap>::Cast(factory->NewJSObjectWithInit(mapClass)); in NewJSMap() local
186 jsMap->SetLinkedMap(thread, linkedMap); in NewJSMap()
187 return jsMap; in NewJSMap()
561 JSHandle<JSMap> jsMap = NewJSMap(thread, factory, proto); in HWTEST_F_L0() local
562 DUMP_FOR_HANDLE(jsMap) in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_map_test.cpp95 JSMap *jsMap = JSMap::Cast(reinterpret_cast<TaggedObject *>(result.GetRawData())); in CreateBuiltinsMap() local
96 return jsMap; in CreateBuiltinsMap()
154 JSMap *jsMap; in HWTEST_F_L0() local
165 jsMap = JSMap::Cast(reinterpret_cast<TaggedObject *>(result2.GetRawData())); in HWTEST_F_L0()
166 EXPECT_EQ(jsMap->GetSize(), 1); in HWTEST_F_L0()
172 ecmaRuntimeCallInfo1->SetThis(JSTaggedValue(jsMap)); in HWTEST_F_L0()
203 JSMap *jsMap = JSMap::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData())); in HWTEST_F_L0() local
204 EXPECT_EQ(jsMap->GetSize(), static_cast<int>(i) + 1); in HWTEST_F_L0()
246 JSMap *jsMap = JSMap::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData())); in HWTEST_F_L0() local
247 EXPECT_EQ(jsMap->GetSize(), static_cast<int>(i) + 1); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_map.cpp136 JSMap *jsMap = JSMap::Cast(*JSTaggedValue::ToObject(thread, self)); in Has() local
139 bool flag = jsMap->Has(key.GetTaggedValue()); in Has()
154 JSMap *jsMap = JSMap::Cast(*JSTaggedValue::ToObject(thread, self)); in Get() local
157 JSTaggedValue value = jsMap->Get(key.GetTaggedValue()); in Get()
232 JSMap *jsMap = JSMap::Cast(*JSTaggedValue::ToObject(thread, self)); in GetSize() local
234 uint32_t count = jsMap->GetSize(); in GetSize()
/arkcompiler/ets_runtime/ecmascript/
Djs_serializer.cpp1538 JSHandle<JSMap> jsMap = JSHandle<JSMap>::Cast(factory_->NewJSObjectByConstructor(mapFunction)); in ReadJSMap() local
1539 JSHandle<JSTaggedValue> mapTag = JSHandle<JSTaggedValue>::Cast(jsMap); in ReadJSMap()
1549 jsMap->SetLinkedMap(thread_, linkedMap); in ReadJSMap()
1559 JSMap::Set(thread_, jsMap, key, value); in ReadJSMap()