/ark/js_runtime/ecmascript/ |
D | js_map.cpp | 23 void JSMap::Set(JSThread *thread, const JSHandle<JSMap> &map, const JSHandle<JSTaggedValue> &key, in Set() 35 bool JSMap::Delete(const JSThread *thread, const JSHandle<JSMap> &map, const JSHandle<JSTaggedValue… in Delete() 49 void JSMap::Clear(const JSThread *thread, const JSHandle<JSMap> &map) in Clear() 55 bool JSMap::Has(JSTaggedValue key) const in Has() 60 JSTaggedValue JSMap::Get(JSTaggedValue key) const in Get() 65 int JSMap::GetSize() const in GetSize() 70 JSTaggedValue JSMap::GetKey(int entry) const in GetKey() 76 JSTaggedValue JSMap::GetValue(int entry) const in GetValue()
|
D | js_map.h | 24 class JSMap : public JSObject { 26 CAST_CHECK(JSMap, IsJSMap); 28 …static bool Delete(const JSThread *thread, const JSHandle<JSMap> &map, const JSHandle<JSTaggedValu… 30 … static void Set(JSThread *thread, const JSHandle<JSMap> &map, const JSHandle<JSTaggedValue> &key, 32 static void Clear(const JSThread *thread, const JSHandle<JSMap> &map);
|
D | js_map_iterator.cpp | 114 JSHandle<JSTaggedValue> iter(factory->NewJSMapIterator(JSHandle<JSMap>(obj), kind)); in CreateMapIterator()
|
D | js_serializer.cpp | 410 JSHandle<JSMap> map = JSHandle<JSMap>::Cast(value); in WriteJSMap() 989 JSHandle<JSMap> jsMap = in ReadJSMap() 990 …JSHandle<JSMap>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(mapFunction), mapFunc… in ReadJSMap() 1011 JSMap::Set(thread_, jsMap, key, value); in ReadJSMap()
|
D | object_factory.h | 53 class JSMap; variable 282 JSHandle<JSMapIterator> NewJSMapIterator(const JSHandle<JSMap> &map, IterationKind kind);
|
D | dump.cpp | 450 JSMap::Cast(obj)->Dump(thread, os); in DumpObject() 1059 void JSMap::Dump(JSThread *thread, std::ostream &os) const in Dump() 2424 JSMap::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject() 2914 void JSMap::DumpForSnapshot([[maybe_unused]] JSThread *thread, in DumpForSnapshot()
|
D | object_factory.cpp | 749 JSMap::Cast(*obj)->SetLinkedMap(thread_, JSTaggedValue::Undefined()); in NewJSObjectByConstructor() 1863 JSHandle<JSMapIterator> ObjectFactory::NewJSMapIterator(const JSHandle<JSMap> &map, IterationKind k… in NewJSMapIterator()
|
D | builtins.cpp | 1173 factory_->NewEcmaDynClass(JSMap::SIZE, JSType::JS_MAP, mapFuncPrototypeValue); in InitializeMap()
|
/ark/js_runtime/ecmascript/tests/ |
D | js_map_test.cpp | 63 JSMap *CreateMap() in CreateMap() 68 JSHandle<JSMap> map = in CreateMap() 69 …JSHandle<JSMap>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), constru… in CreateMap() 78 JSMap *map = CreateMap(); in HWTEST_F_L0() 86 JSHandle<JSMap> map(thread, CreateMap()); in HWTEST_F_L0() 90 JSMap::Set(thread, map, key, value); in HWTEST_F_L0() 98 JSHandle<JSMap> map(thread, CreateMap()); in HWTEST_F_L0() 106 JSMap::Set(thread, map, key, value); in HWTEST_F_L0() 114 JSMap::Delete(thread, map, deleteKey); in HWTEST_F_L0() 123 JSHandle<JSMap> map(thread, CreateMap()); in HWTEST_F_L0() [all …]
|
D | dump_test.cpp | 138 static JSHandle<JSMap> NewJSMap(JSThread *thread, ObjectFactory *factory, JSHandle<JSTaggedValue> p… in NewJSMap() 140 JSHandle<JSHClass> mapClass = factory->NewEcmaDynClass(JSMap::SIZE, JSType::JS_MAP, proto); in NewJSMap() 141 JSHandle<JSMap> jsMap = JSHandle<JSMap>::Cast(factory->NewJSObject(mapClass)); in NewJSMap() 316 CHECK_DUMP_FILEDS(JSObject::SIZE, JSMap::SIZE, 1) in HWTEST_F_L0() 317 JSHandle<JSMap> jsMap = NewJSMap(thread, factory, proto); in HWTEST_F_L0()
|
D | js_serializer_test.cpp | 350 void JSMapTest(std::pair<uint8_t *, size_t> data, const JSHandle<JSMap> &originMap) in JSMapTest() 357 JSHandle<JSMap> resMap = JSHandle<JSMap>::Cast(res); in JSMapTest() 871 JSMap *CreateMap(JSThread *thread) in CreateMap() 876 JSHandle<JSMap> map = in CreateMap() 877 …JSHandle<JSMap>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), constru… in CreateMap() 885 JSHandle<JSMap> map(thread, CreateMap(thread)); in HWTEST_F_L0() 889 JSMap::Set(thread, map, key1, value1); in HWTEST_F_L0() 892 JSMap::Set(thread, map, key2, value2); in HWTEST_F_L0()
|
/ark/js_runtime/ecmascript/builtins/ |
D | builtins_map.cpp | 44 JSHandle<JSMap> map = JSHandle<JSMap>::Cast(obj); in MapConstructor() 142 JSHandle<JSMap> map(self); in Set() 143 JSMap::Set(thread, map, key, value); in Set() 160 JSHandle<JSMap> map(self); in Clear() 161 JSMap::Clear(thread, map); in Clear() 177 JSHandle<JSMap> map(self); in Delete() 179 bool flag = JSMap::Delete(thread, map, key); in Delete() 194 JSMap *jsMap = JSMap::Cast(*JSTaggedValue::ToObject(thread, self)); in Has() 211 JSMap *jsMap = JSMap::Cast(*JSTaggedValue::ToObject(thread, self)); in Get() 228 JSHandle<JSMap> map(thread, JSMap::Cast(*JSTaggedValue::ToObject(thread, self))); in ForEach() [all …]
|
/ark/js_runtime/ecmascript/builtins/tests/ |
D | builtins_map_test.cpp | 40 using JSMap = ecmascript::JSMap; typedef 81 JSMap *CreateBuiltinsMap(JSThread *thread) in CreateBuiltinsMap() 94 JSMap *jsMap = JSMap::Cast(reinterpret_cast<TaggedObject *>(result.GetRawData())); in CreateBuiltinsMap() 103 JSHandle<JSMap> map(thread, CreateBuiltinsMap(thread)); in HWTEST_F_L0() 134 … EXPECT_EQ(JSMap::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData()))->GetSize(), 5); in HWTEST_F_L0() 142 JSHandle<JSMap> map(thread, CreateBuiltinsMap(thread)); in HWTEST_F_L0() 151 JSMap *jsMap; in HWTEST_F_L0() 162 jsMap = JSMap::Cast(reinterpret_cast<TaggedObject *>(result2.GetRawData())); in HWTEST_F_L0() 185 JSHandle<JSMap> map(thread, CreateBuiltinsMap(thread)); in HWTEST_F_L0() 199 JSMap *jsMap = JSMap::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData())); in HWTEST_F_L0() [all …]
|
/ark/js_runtime/ecmascript/mem/ |
D | object_xray-inl.h | 134 JSMap::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
|
/ark/js_runtime/ecmascript/napi/ |
D | jsnapi.cpp | 75 using ecmascript::JSMap; 1485 JSHandle<JSMap> map(JSNApiHelper::ToJSHandle(this)); in GetSize()
|