/arkcompiler/ets_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() 46 void JSMap::Clear(const JSThread *thread, const JSHandle<JSMap> &map) in Clear() 54 bool JSMap::Has(JSTaggedValue key) const in Has() 59 JSTaggedValue JSMap::Get(JSTaggedValue key) const in Get() 64 uint32_t JSMap::GetSize() const in GetSize() 69 JSTaggedValue JSMap::GetKey(uint32_t entry) const in GetKey() 75 JSTaggedValue JSMap::GetValue(uint32_t entry) const in GetValue()
|
D | js_map.h | 23 class JSMap : public JSObject { 25 CAST_CHECK(JSMap, IsJSMap); 27 …static bool Delete(const JSThread *thread, const JSHandle<JSMap> &map, const JSHandle<JSTaggedValu… 29 … static void Set(JSThread *thread, const JSHandle<JSMap> &map, const JSHandle<JSTaggedValue> &key, 31 static void Clear(const JSThread *thread, const JSHandle<JSMap> &map);
|
D | js_map_iterator.cpp | 115 JSHandle<JSTaggedValue> iter(factory->NewJSMapIterator(JSHandle<JSMap>(obj), kind)); in CreateMapIterator()
|
D | js_serializer.cpp | 630 JSHandle<JSMap> map = JSHandle<JSMap>::Cast(value); in WriteJSMap() 1538 JSHandle<JSMap> jsMap = JSHandle<JSMap>::Cast(factory_->NewJSObjectByConstructor(mapFunction)); in ReadJSMap() 1559 JSMap::Set(thread_, jsMap, key, value); in ReadJSMap()
|
D | object_factory.h | 58 class JSMap; variable 404 JSHandle<JSMapIterator> NewJSMapIterator(const JSHandle<JSMap> &map, IterationKind kind);
|
D | dump.cpp | 703 JSMap::Cast(obj)->Dump(os); in DumpObject() 1598 void JSMap::Dump(std::ostream &os) const in Dump() 3756 JSMap::Cast(obj)->DumpForSnapshot(vec); in DumpObject() 4470 void JSMap::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) const in DumpForSnapshot()
|
D | object_factory.cpp | 1081 JSMap::Cast(*obj)->SetLinkedMap(thread_, JSTaggedValue::Undefined()); in InitializeJSObject() 2735 JSHandle<JSMapIterator> ObjectFactory::NewJSMapIterator(const JSHandle<JSMap> &map, IterationKind k… in NewJSMapIterator()
|
/arkcompiler/ets_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 | js_map_iterator_test.cpp | 53 JSHandle<JSMap> CreateJSMap(JSThread *thread) in CreateJSMap() 59 …JSHandle<JSMap> jsMap(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(builtinsMapFunc), bui… in CreateJSMap() 74 JSHandle<JSMap> jsMap = CreateJSMap(thread); in HWTEST_F_L0() 106 JSHandle<JSMap> jsMap1 = CreateJSMap(thread); in HWTEST_F_L0() 107 JSHandle<JSMap> jsMap2 = CreateJSMap(thread); in HWTEST_F_L0() 129 JSHandle<JSMap> jsMap = CreateJSMap(thread); in HWTEST_F_L0() 151 JSHandle<JSMap> jsMap = CreateJSMap(thread); in HWTEST_F_L0() 174 JSHandle<JSMap> jsMap1(thread, CreateJSMap(thread).GetTaggedValue()); in HWTEST_F_L0() 175 JSHandle<JSMap> jsMap2(thread, CreateJSMap(thread).GetTaggedValue()); in HWTEST_F_L0() 181 JSMap::Set(thread, jsMap1, keyHandle1, keyHandle1); in HWTEST_F_L0() [all …]
|
D | dump_test.cpp | 181 static JSHandle<JSMap> NewJSMap(JSThread *thread, ObjectFactory *factory, JSHandle<JSTaggedValue> p… in NewJSMap() 183 JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSMap::SIZE, JSType::JS_MAP, proto); in NewJSMap() 184 JSHandle<JSMap> jsMap = JSHandle<JSMap>::Cast(factory->NewJSObjectWithInit(mapClass)); in NewJSMap() 560 CHECK_DUMP_FIELDS(JSObject::SIZE, JSMap::SIZE, 1U); in HWTEST_F_L0() 561 JSHandle<JSMap> jsMap = NewJSMap(thread, factory, proto); in HWTEST_F_L0()
|
D | js_serializer_test.cpp | 467 void JSMapTest(std::pair<uint8_t *, size_t> data, const JSHandle<JSMap> &originMap) in JSMapTest() 474 JSHandle<JSMap> resMap = JSHandle<JSMap>::Cast(res); in JSMapTest() 1485 JSMap *CreateMap(JSThread *thread) in CreateMap() 1490 JSHandle<JSMap> map = in CreateMap() 1491 …JSHandle<JSMap>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), constru… in CreateMap() 1499 JSHandle<JSMap> map(thread, CreateMap(thread)); in HWTEST_F_L0() 1503 JSMap::Set(thread, map, key1, value1); in HWTEST_F_L0() 1506 JSMap::Set(thread, map, key2, value2); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_map.cpp | 44 JSHandle<JSMap> map = JSHandle<JSMap>::Cast(obj); in MapConstructor() 84 JSHandle<JSMap> map(self); in Set() 85 JSMap::Set(thread, map, key, value); in Set() 102 JSHandle<JSMap> map(self); in Clear() 103 JSMap::Clear(thread, map); in Clear() 119 JSHandle<JSMap> map(self); in Delete() 121 bool flag = JSMap::Delete(thread, map, key); in Delete() 136 JSMap *jsMap = JSMap::Cast(*JSTaggedValue::ToObject(thread, self)); in Has() 154 JSMap *jsMap = JSMap::Cast(*JSTaggedValue::ToObject(thread, self)); in Get() 172 JSHandle<JSMap> map(self); in ForEach() [all …]
|
D | builtins.cpp | 1383 factory_->NewEcmaHClass(JSMap::SIZE, JSType::JS_MAP, mapFuncPrototypeValue); in InitializeMap()
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_map_test.cpp | 40 using JSMap = ecmascript::JSMap; typedef 81 JSMap *CreateBuiltinsMap(JSThread *thread) in CreateBuiltinsMap() 95 JSMap *jsMap = JSMap::Cast(reinterpret_cast<TaggedObject *>(result.GetRawData())); in CreateBuiltinsMap() 104 JSHandle<JSMap> map(thread, CreateBuiltinsMap(thread)); in HWTEST_F_L0() 137 … EXPECT_EQ(JSMap::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData()))->GetSize(), 5); in HWTEST_F_L0() 145 JSHandle<JSMap> map(thread, CreateBuiltinsMap(thread)); in HWTEST_F_L0() 154 JSMap *jsMap; in HWTEST_F_L0() 165 jsMap = JSMap::Cast(reinterpret_cast<TaggedObject *>(result2.GetRawData())); in HWTEST_F_L0() 188 JSHandle<JSMap> map(thread, CreateBuiltinsMap(thread)); in HWTEST_F_L0() 203 JSMap *jsMap = JSMap::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData())); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
D | jsnapi.cpp | 126 using ecmascript::JSMap; 2537 JSHandle<JSMap> map(JSNApiHelper::ToJSHandle(this)); in Get() 2546 JSHandle<JSMap> map(JSNApiHelper::ToJSHandle(this)); in Set() 2548 …JSMap::Set(vm->GetJSThread(), map, JSNApiHelper::ToJSHandle(key), JSNApiHelper::ToJSHandle(value)); in Set() 2558 JSHandle<JSMap> map = in New() 2559 …JSHandle<JSMap>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), constru… in New() 2568 JSHandle<JSMap> map(JSNApiHelper::ToJSHandle(this)); in GetSize() 2575 JSHandle<JSMap> map(JSNApiHelper::ToJSHandle(this)); in GetTotalElements() 2584 JSHandle<JSMap> map(JSNApiHelper::ToJSHandle(this)); in GetKey() 2593 JSHandle<JSMap> map(JSNApiHelper::ToJSHandle(this)); in GetValue()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | object_xray.h | 235 JSMap::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
|