/arkcompiler/ets_runtime/ecmascript/tests/ |
D | tagged_dictionary_test.cpp | 87 JSMutableHandle<NameDictionary> dictHandle(thread, dictJShandle); in HWTEST_F_L0() local 104 …JSHandle<NameDictionary> dict(NameDictionary::PutIfAbsent(thread, dictHandle, key1, value1, metaDa… in HWTEST_F_L0() 105 dictHandle.Update(dict.GetTaggedValue()); in HWTEST_F_L0() 113 …JSHandle<NameDictionary> dict2(NameDictionary::PutIfAbsent(thread, dictHandle, key2, value2, metaD… in HWTEST_F_L0() 116 dict = NameDictionary::Remove(thread, dictHandle, entry1); in HWTEST_F_L0() 132 JSHandle<NameDictionary> dictHandle(NameDictionary::Create(thread, numOfElement)); in HWTEST_F_L0() local 133 EXPECT_TRUE(*dictHandle != nullptr); in HWTEST_F_L0() 137 JSHandle<NameDictionary> tempHandle = dictHandle; in HWTEST_F_L0() 146 … dictHandle = NameDictionary::PutIfAbsent(thread, tempHandle, keyHandle, valueHandle, metaData); in HWTEST_F_L0() 148 EXPECT_EQ(dictHandle->EntriesCount(), 9); in HWTEST_F_L0() [all …]
|
D | linked_hash_table_test.cpp | 84 JSHandle<LinkedHashMap> dictHandle = LinkedHashMap::Create(thread, numOfElement); in HWTEST_F_L0() local 85 EXPECT_TRUE(*dictHandle != nullptr); in HWTEST_F_L0() 99 dictHandle = LinkedHashMap::Set(thread, dictHandle, key1, value1); in HWTEST_F_L0() 100 EXPECT_EQ(dictHandle->NumberOfElements(), 1); in HWTEST_F_L0() 103 int entry1 = dictHandle->FindElement(thread, key1.GetTaggedValue()); in HWTEST_F_L0() 104 EXPECT_EQ(key1.GetTaggedValue(), dictHandle->GetKey(entry1)); in HWTEST_F_L0() 105 EXPECT_EQ(value1.GetTaggedValue(), dictHandle->GetValue(entry1)); in HWTEST_F_L0() 107 dictHandle = LinkedHashMap::Set(thread, dictHandle, key2, value2); in HWTEST_F_L0() 108 EXPECT_EQ(dictHandle->NumberOfElements(), 2); in HWTEST_F_L0() 110 dictHandle = LinkedHashMap::Delete(thread, dictHandle, key1); in HWTEST_F_L0() [all …]
|
D | global_dictionary_test.cpp | 225 JSMutableHandle<GlobalDictionary> dictHandle(thread, handleDict); in HWTEST_F_L0() local 231 JSHandle<GlobalDictionary> dict(GlobalDictionary::PutIfAbsent(thread, dictHandle, in HWTEST_F_L0() 233 dictHandle.Update(dict.GetTaggedValue()); in HWTEST_F_L0() 239 dictHandle->GetAllKeys(thread, offset, *keyArray); in HWTEST_F_L0() 266 JSMutableHandle<GlobalDictionary> dictHandle(thread, handleDict); in HWTEST_F_L0() local 278 JSHandle<GlobalDictionary> dict(GlobalDictionary::PutIfAbsent(thread, dictHandle, in HWTEST_F_L0() 280 dictHandle.Update(dict.GetTaggedValue()); in HWTEST_F_L0() 287 dictHandle->GetEnumAllKeys(thread, offset, *keyArray, &keys); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | global_dictionary-inl.h | 210 …y::InvalidatePropertyBox(JSThread *thread, const JSHandle<GlobalDictionary> &dictHandle, int entry) in InvalidatePropertyBox() argument 212 PropertyBox *box = dictHandle->GetBox(entry); in InvalidatePropertyBox() 216 GlobalDictionary::InvalidateAndReplaceEntry(thread, dictHandle, entry, oldValue); in InvalidatePropertyBox() 219 …ctionary::InvalidateAndReplaceEntry(JSThread *thread, const JSHandle<GlobalDictionary> &dictHandle, in InvalidateAndReplaceEntry() argument 222 if (!dictHandle->IsValidateBox(entry)) { in InvalidateAndReplaceEntry() 228 PropertyBox *box = dictHandle->GetBox(entry); in InvalidateAndReplaceEntry() 229 PropertyAttributes attr = dictHandle->GetAttributes(entry); in InvalidateAndReplaceEntry() 238 dictHandle->SetAttributes(thread, entry, attr); in InvalidateAndReplaceEntry() 239 dictHandle->UpdateValue(thread, entry, newBox.GetTaggedValue()); in InvalidateAndReplaceEntry()
|
D | global_dictionary.h | 52 …d InvalidatePropertyBox(JSThread *thread, const JSHandle<GlobalDictionary> &dictHandle, int entry); 54 …atic void InvalidateAndReplaceEntry(JSThread *thread, const JSHandle<GlobalDictionary> &dictHandle,
|
D | js_array.cpp | 206 JSHandle<NumberDictionary> dictHandle(thread, element); in SetCapacity() local 214 int entry = dictHandle->FindEntry(key); in SetCapacity() 215 uint32_t attr = dictHandle->GetAttributes(entry).GetValue(); in SetCapacity() 218 … JSHandle<NumberDictionary> newDict = NumberDictionary::Remove(thread, dictHandle, entry); in SetCapacity()
|
D | object_operator.cpp | 599 JSHandle<GlobalDictionary> dictHandle(thread_, receiver->GetProperties()); in TransitionForAttributeChanged() local 600 GlobalDictionary::InvalidatePropertyBox(thread_, dictHandle, GetIndex()); in TransitionForAttributeChanged() 883 JSHandle<NumberDictionary> dictHandle(thread_, elements); in DeleteElementInHolder() local 884 … JSHandle<NumberDictionary> newDict = NumberDictionary::Remove(thread_, dictHandle, GetIndex()); in DeleteElementInHolder()
|
D | js_object.cpp | 405 JSHandle<GlobalDictionary> dictHandle(thread, obj->GetProperties()); in DeletePropertyInternal() local 406 PropertyBox* box = dictHandle->GetBox(index); in DeletePropertyInternal() 408 JSHandle<GlobalDictionary> newDict = GlobalDictionary::Remove(thread, dictHandle, index); in DeletePropertyInternal() 414 JSHandle<NameDictionary> dictHandle(TransitionToDictionary(thread, obj)); in DeletePropertyInternal() local 415 int entry = dictHandle->FindEntry(key.GetTaggedValue()); in DeletePropertyInternal() 417 JSHandle<NameDictionary> newDict = NameDictionary::Remove(thread, dictHandle, entry); in DeletePropertyInternal() 422 JSHandle<NameDictionary> dictHandle(array); in DeletePropertyInternal() local 423 JSHandle<NameDictionary> newDict = NameDictionary::Remove(thread, dictHandle, index); in DeletePropertyInternal()
|
D | object_fast_operator-inl.h | 668 JSHandle<NameDictionary> dictHandle(array); in AddPropertyByName() 670 NameDictionary::PutIfAbsent(thread, dictHandle, keyHandle, valueHandle, attr); in AddPropertyByName()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs.cpp | 306 JSHandle<NameDictionary> dictHandle(JSObject::TransitionToDictionary(thread, objHandle)); in DEF_RUNTIME_STUBS() local 308 … PutIfAbsent(thread, dictHandle, keyHandle, valueHandle, propAttr).GetTaggedValue().GetRawData(); in DEF_RUNTIME_STUBS() 310 …JSHandle<NameDictionary> dictHandle(thread, JSTaggedValue(reinterpret_cast<TaggedObject *>(array))… in DEF_RUNTIME_STUBS() local 312 … PutIfAbsent(thread, dictHandle, keyHandle, valueHandle, propAttr).GetTaggedValue().GetRawData(); in DEF_RUNTIME_STUBS()
|
D | runtime_stubs-inl.h | 740 JSHandle<GlobalDictionary> dictHandle(thread, dict); in RuntimeStGlobalRecord() 745 …dict = *GlobalDictionary::PutIfAbsent(thread, dictHandle, prop, JSHandle<JSTaggedValue>(box), attr… in RuntimeStGlobalRecord()
|