/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(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 | 191 …y::InvalidatePropertyBox(JSThread *thread, const JSHandle<GlobalDictionary> &dictHandle, int entry, in InvalidatePropertyBox() argument 194 PropertyBox *box = dictHandle->GetBox(entry); in InvalidatePropertyBox() 195 PropertyAttributes originAttr = dictHandle->GetAttributes(entry); in InvalidatePropertyBox() 201 GlobalDictionary::InvalidateAndReplaceEntry(thread, dictHandle, index, oldValue); in InvalidatePropertyBox() 202 dictHandle->SetAttributes(thread, entry, newAttr); in InvalidatePropertyBox() 205 …ctionary::InvalidateAndReplaceEntry(JSThread *thread, const JSHandle<GlobalDictionary> &dictHandle, in InvalidateAndReplaceEntry() argument 208 if (!dictHandle->IsValidateBox(entry)) { in InvalidateAndReplaceEntry() 214 PropertyBox *box = dictHandle->GetBox(entry); in InvalidateAndReplaceEntry() 215 PropertyAttributes attr = dictHandle->GetAttributes(entry); in InvalidateAndReplaceEntry() 224 dictHandle->SetAttributes(thread, entry, attr); in InvalidateAndReplaceEntry() [all …]
|
D | global_dictionary.h | 52 …id InvalidatePropertyBox(JSThread *thread, const JSHandle<GlobalDictionary> &dictHandle, int entry, 55 …atic void InvalidateAndReplaceEntry(JSThread *thread, const JSHandle<GlobalDictionary> &dictHandle,
|
D | js_array.cpp | 189 JSHandle<NumberDictionary> dictHandle(thread, element); in SetCapacity() local 197 int entry = dictHandle->FindEntry(key); in SetCapacity() 198 uint32_t attr = dictHandle->GetAttributes(entry).GetValue(); in SetCapacity() 201 … JSHandle<NumberDictionary> newDict = NumberDictionary::Remove(thread, dictHandle, entry); in SetCapacity()
|
D | object_operator.cpp | 409 JSHandle<GlobalDictionary> dictHandle(thread_, receiver->GetProperties()); in TransitionForAttributeChanged() local 410 dictHandle->SetAttributes(thread_, index, attr); in TransitionForAttributeChanged() 411 GlobalDictionary::InvalidatePropertyBox(thread_, dictHandle, GetIndex(), attr); in TransitionForAttributeChanged() 705 JSHandle<NumberDictionary> dictHandle(thread_, elements); in DeleteElementInHolder() local 706 … JSHandle<NumberDictionary> newDict = NumberDictionary::Remove(thread_, dictHandle, GetIndex()); in DeleteElementInHolder()
|
D | js_object.cpp | 290 JSHandle<GlobalDictionary> dictHandle(thread, obj->GetProperties()); in DeletePropertyInternal() local 291 JSHandle<GlobalDictionary> newDict = GlobalDictionary::Remove(thread, dictHandle, index); in DeletePropertyInternal() 303 JSHandle<NameDictionary> dictHandle(TransitionToDictionary(thread, obj)); in DeletePropertyInternal() local 304 int entry = dictHandle->FindEntry(key.GetTaggedValue()); in DeletePropertyInternal() 306 JSHandle<NameDictionary> newDict = NameDictionary::Remove(thread, dictHandle, entry); in DeletePropertyInternal() 311 JSHandle<NameDictionary> dictHandle(array); in DeletePropertyInternal() local 312 JSHandle<NameDictionary> newDict = NameDictionary::Remove(thread, dictHandle, index); in DeletePropertyInternal()
|
D | object_fast_operator-inl.h | 541 JSHandle<NameDictionary> dictHandle(array); in AddPropertyByName() 543 NameDictionary::PutIfAbsent(thread, dictHandle, keyHandle, valueHandle, attr); in AddPropertyByName()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs.cpp | 250 JSHandle<NameDictionary> dictHandle(JSObject::TransitionToDictionary(thread, objHandle)); in DEF_RUNTIME_STUBS() local 252 … PutIfAbsent(thread, dictHandle, keyHandle, valueHandle, propAttr).GetTaggedValue().GetRawData(); in DEF_RUNTIME_STUBS() 254 …JSHandle<NameDictionary> dictHandle(thread, JSTaggedValue(reinterpret_cast<TaggedObject *>(array))… in DEF_RUNTIME_STUBS() local 256 … PutIfAbsent(thread, dictHandle, keyHandle, valueHandle, propAttr).GetTaggedValue().GetRawData(); in DEF_RUNTIME_STUBS()
|
D | runtime_stubs-inl.h | 716 JSHandle<GlobalDictionary> dictHandle(thread, dict); in RuntimeStGlobalRecord() 723 …dict = *GlobalDictionary::PutIfAbsent(thread, dictHandle, prop, JSHandle<JSTaggedValue>(box), attr… in RuntimeStGlobalRecord()
|