Lines Matching defs:map
43 JSHandle<JSMap> map =
46 map->SetLinkedMap(thread, hashMap);
47 return *map;
53 JSMap *map = CreateMap();
54 EXPECT_TRUE(map != nullptr);
61 JSHandle<JSMap> map(thread, CreateMap());
65 JSMap::Set(thread, map, key, value);
66 EXPECT_TRUE(map->Has(thread, key.GetTaggedValue()));
73 JSHandle<JSMap> map(thread, CreateMap());
81 JSMap::Set(thread, map, key, value);
82 EXPECT_TRUE(map->Has(thread, key.GetTaggedValue()));
84 EXPECT_EQ(map->GetSize(), 40);
88 EXPECT_EQ(map->GetValue(8), JSTaggedValue(8));
89 JSMap::Delete(thread, map, deleteKey);
90 EXPECT_FALSE(map->Has(thread, deleteKey.GetTaggedValue()));
91 EXPECT_EQ(map->GetSize(), 39);
98 JSHandle<JSMap> map(thread, CreateMap());
102 JSMap::Set(thread, map, key, value);
105 JSHandle<JSTaggedValue> keyIter(factory->NewJSMapIterator(map, IterationKind::KEY));
106 JSHandle<JSTaggedValue> valueIter(factory->NewJSMapIterator(map, IterationKind::VALUE));
107 JSHandle<JSTaggedValue> iter(factory->NewJSMapIterator(map, IterationKind::KEY_AND_VALUE));
126 JSMap::Delete(thread, map, key);
133 JSMap::Set(thread, map, key, key);