/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | linked_hash_table_test.cpp | 60 JSHandle<LinkedHashMap> dictHandle = LinkedHashMap::Create(thread, numOfElement); in HWTEST_F_L0() local 61 EXPECT_TRUE(*dictHandle != nullptr); in HWTEST_F_L0() 75 dictHandle = LinkedHashMap::Set(thread, dictHandle, key1, value1); in HWTEST_F_L0() 76 EXPECT_EQ(dictHandle->NumberOfElements(), 1); in HWTEST_F_L0() 79 int entry1 = dictHandle->FindElement(thread, key1.GetTaggedValue()); in HWTEST_F_L0() 80 EXPECT_EQ(key1.GetTaggedValue(), dictHandle->GetKey(entry1)); in HWTEST_F_L0() 81 EXPECT_EQ(value1.GetTaggedValue(), dictHandle->GetValue(entry1)); in HWTEST_F_L0() 83 dictHandle = LinkedHashMap::Set(thread, dictHandle, key in HWTEST_F_L0() 138 JSHandle<LinkedHashMap> dictHandle = LinkedHashMap::Create(thread, numOfElement); HWTEST_F_L0() local 201 JSHandle<LinkedHashMap> dictHandle = LinkedHashMap::Create(thread, numOfElement); HWTEST_F_L0() local [all...] |
H A D | tagged_dictionary_test.cpp | 63 JSMutableHandle<NameDictionary> dictHandle(thread, dictJShandle); in HWTEST_F_L0() 80 JSHandle<NameDictionary> dict(NameDictionary::PutIfAbsent(thread, dictHandle, key1, value1, metaData1)); in HWTEST_F_L0() 81 dictHandle.Update(dict.GetTaggedValue()); in HWTEST_F_L0() 89 JSHandle<NameDictionary> dict2(NameDictionary::PutIfAbsent(thread, dictHandle, key2, value2, metaData2)); in HWTEST_F_L0() 92 dict = NameDictionary::Remove(thread, dictHandle, entry1); in HWTEST_F_L0() 108 JSHandle<NameDictionary> dictHandle(NameDictionary::Create(thread, numOfElement)); in HWTEST_F_L0() 109 EXPECT_TRUE(*dictHandle != nullptr); in HWTEST_F_L0() 113 JSHandle<NameDictionary> tempHandle = dictHandle; in HWTEST_F_L0() 122 dictHandle = NameDictionary::PutIfAbsent(thread, tempHandle, keyHandle, valueHandle, metaData); in HWTEST_F_L0() 124 EXPECT_EQ(dictHandle in HWTEST_F_L0() 241 JSHandle<NumberDictionary> dictHandle = NumberDictionary::Create(thread, numOfElement); HWTEST_F_L0() local 273 JSHandle<NumberDictionary> dictHandle = NumberDictionary::Create(thread, numOfElement); HWTEST_F_L0() local [all...] |
H A D | global_dictionary_test.cpp | 201 JSMutableHandle<GlobalDictionary> dictHandle(thread, handleDict); in HWTEST_F_L0() 207 JSHandle<GlobalDictionary> dict(GlobalDictionary::PutIfAbsent(thread, dictHandle, in HWTEST_F_L0() 209 dictHandle.Update(dict.GetTaggedValue()); in HWTEST_F_L0() 215 dictHandle->GetAllKeys(thread, offset, *keyArray); in HWTEST_F_L0() 242 JSMutableHandle<GlobalDictionary> dictHandle(thread, handleDict); in HWTEST_F_L0() 254 JSHandle<GlobalDictionary> dict(GlobalDictionary::PutIfAbsent(thread, dictHandle, in HWTEST_F_L0() 256 dictHandle.Update(dict.GetTaggedValue()); in HWTEST_F_L0() 263 dictHandle->GetEnumAllKeys(thread, offset, *keyArray, &keys); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | global_dictionary-inl.h | 210 void GlobalDictionary::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 void GlobalDictionary::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()
|
H A D | global_dictionary.h | 52 inline static void InvalidatePropertyBox(JSThread *thread, const JSHandle<GlobalDictionary> &dictHandle, int entry); 54 inline static void InvalidateAndReplaceEntry(JSThread *thread, const JSHandle<GlobalDictionary> &dictHandle,
|
H A D | js_array.cpp | 213 JSHandle<NumberDictionary> dictHandle(thread, element); in SetCapacity() 221 int entry = dictHandle->FindEntry(key); in SetCapacity() 222 auto attr = dictHandle->GetAttributes(entry).GetValue(); in SetCapacity() 225 JSHandle<NumberDictionary> newDict = NumberDictionary::Remove(thread, dictHandle, entry); in SetCapacity()
|
H A D | object_operator.cpp | 618 JSHandle<GlobalDictionary> dictHandle(thread_, receiver->GetProperties()); in TransitionForAttributeChanged() 619 dictHandle->SetAttributes(thread_, index, attr); in TransitionForAttributeChanged() 620 GlobalDictionary::InvalidatePropertyBox(thread_, dictHandle, index); in TransitionForAttributeChanged() 937 JSHandle<NumberDictionary> dictHandle(thread_, elements); in DeleteElementInHolder() 938 JSHandle<NumberDictionary> newDict = NumberDictionary::Remove(thread_, dictHandle, GetIndex()); in DeleteElementInHolder()
|
H A D | js_object.cpp | 458 JSHandle<GlobalDictionary> dictHandle(thread, obj->GetProperties()); in DeletePropertyInternal() 459 PropertyBox* box = dictHandle->GetBox(index); in DeletePropertyInternal() 461 JSHandle<GlobalDictionary> newDict = GlobalDictionary::Remove(thread, dictHandle, index); in DeletePropertyInternal() 467 JSHandle<NameDictionary> dictHandle(TransitionToDictionary(thread, obj)); in DeletePropertyInternal() 469 int entry = dictHandle->FindEntry(key.GetTaggedValue()); in DeletePropertyInternal() 471 JSHandle<NameDictionary> newDict = NameDictionary::Remove(thread, dictHandle, entry); in DeletePropertyInternal() 476 JSHandle<NameDictionary> dictHandle(array); in DeletePropertyInternal() 477 JSHandle<NameDictionary> newDict = NameDictionary::Remove(thread, dictHandle, index); in DeletePropertyInternal()
|
H A D | object_fast_operator-inl.h | 956 JSHandle<NameDictionary> dictHandle(array); in AddPropertyByName() 958 NameDictionary::PutIfAbsent(thread, dictHandle, keyHandle, valueHandle, attr); in AddPropertyByName()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
H A D | runtime_stubs.cpp | 391 JSHandle<NameDictionary> dictHandle(JSObject::TransitionToDictionary(thread, objHandle)); in DEF_RUNTIME_STUBS() 394 PutIfAbsent(thread, dictHandle, keyHandle, valueHandle, propAttr).GetTaggedValue().GetRawData(); in DEF_RUNTIME_STUBS() 396 JSHandle<NameDictionary> dictHandle(thread, JSTaggedValue(reinterpret_cast<TaggedObject *>(array))); in DEF_RUNTIME_STUBS() 398 PutIfAbsent(thread, dictHandle, keyHandle, valueHandle, propAttr).GetTaggedValue().GetRawData(); in DEF_RUNTIME_STUBS()
|
H A D | runtime_stubs-inl.h | 804 JSHandle<GlobalDictionary> dictHandle(thread, dict); in RuntimeStGlobalRecord() 809 dict = *GlobalDictionary::PutIfAbsent(thread, dictHandle, prop, JSHandle<JSTaggedValue>(box), attributes); in RuntimeStGlobalRecord()
|