Lines Matching defs:handleDict

89     JSHandle<GlobalDictionary> handleDict = GlobalDictionary::Create(thread, 4);
90 EXPECT_TRUE(*handleDict != nullptr);
91 handleDict->SetEntry(thread, 0, globalKey.GetTaggedValue(), propertyBox.GetTaggedValue(), attribute);
94 handleDict->PutIfAbsent(thread, handleDict, globalKey1, propertyBox1, attribute);
96 EXPECT_TRUE(handleDict->GetBox(0) != nullptr);
97 EXPECT_EQ(handleDict->GetValue(0).GetInt(), 123);
115 JSHandle<GlobalDictionary> handleDict = GlobalDictionary::Create(thread, numberofElements);
116 EXPECT_TRUE(*handleDict != nullptr);
119 handleDict->SetAttributes(thread, i, PropertyAttributes(i));
120 EXPECT_EQ(handleDict->GetAttributes(i).GetPropertyMetaData(), i);
135 JSHandle<GlobalDictionary> handleDict = GlobalDictionary::Create(thread, numberofElements);
136 EXPECT_TRUE(*handleDict != nullptr);
141 handleDict->SetEntry(thread, i, handleValueKey.GetTaggedValue(),
145 EXPECT_EQ(handleDict->GetAttributes(3).GetPropertyMetaData(), 3);
146 handleDict->ClearEntry(thread, 3);
147 EXPECT_EQ(handleDict->GetAttributes(3).GetPropertyMetaData(), 0);
161 JSHandle<GlobalDictionary> handleDict = GlobalDictionary::Create(thread, numberofElements);
162 EXPECT_TRUE(*handleDict != nullptr);
168 handleDict->SetEntry(thread, i, handleValueKey.GetTaggedValue(),
172 EXPECT_EQ(handleDict->GetAttributes(5).GetPropertyMetaData(), 5);
173 EXPECT_EQ(handleDict->GetValue(5).GetInt(), 5);
178 handleDict->UpdateValueAndAttributes(thread, i, propertyBox.GetTaggedValue(),
182 EXPECT_EQ(handleDict->GetAttributes(5).GetPropertyMetaData(), 6);
183 EXPECT_EQ(handleDict->GetValue(5).GetInt(), 6);
199 JSHandle<GlobalDictionary> handleDict = GlobalDictionary::Create(thread, numberofElements);
200 EXPECT_TRUE(*handleDict != nullptr);
201 JSMutableHandle<GlobalDictionary> dictHandle(thread, handleDict);
240 JSHandle<GlobalDictionary> handleDict = GlobalDictionary::Create(thread, numberofElements);
241 EXPECT_TRUE(*handleDict != nullptr);
242 JSMutableHandle<GlobalDictionary> dictHandle(thread, handleDict);
299 JSHandle<GlobalDictionary> handleDict = GlobalDictionary::Create(thread, numberofElements);
300 EXPECT_TRUE(*handleDict != nullptr);
314 handleDict->SetEntry(thread, i, handleKey.GetTaggedValue(),
319 GlobalDictionary::InvalidatePropertyBox(thread, handleDict, invalidatedPosition);
320 EXPECT_EQ(handleDict->GetAttributes(invalidatedPosition).GetBoxType(), PropertyBoxType::MUTABLE);
321 EXPECT_EQ(handleDict->GetAttributes(invalidatedSet).GetDictionaryOrder(), invalidatedPosition);
322 EXPECT_EQ(handleDict->GetValue(invalidatedPosition).GetInt(), invalidatedPosition);