/arkcompiler/ets_runtime/ecmascript/ |
H A D | tagged_dictionary.h | 55 PropertyAttributes PUBLIC_API GetAttributes(int entry) const; 56 void PUBLIC_API SetAttributes(const JSThread *thread, int entry, const PropertyAttributes &metaData); 58 const PropertyAttributes &metaData); 60 const PropertyAttributes &metaData); 62 void UpdateAttributes(int entry, const PropertyAttributes &metaData); 72 static inline bool CompHandleKey(const std::pair<JSHandle<JSTaggedValue>, PropertyAttributes> &a, in CompHandleKey() 73 const std::pair<JSHandle<JSTaggedValue>, PropertyAttributes> &b) in CompHandleKey() 77 static inline bool CompKey(const std::pair<JSTaggedValue, PropertyAttributes> &a, in CompKey() 78 const std::pair<JSTaggedValue, PropertyAttributes> &b) in CompKey() 82 static inline bool CompIndex(const PropertyAttributes in CompKey() [all...] |
H A D | property_attributes.h | 84 class PropertyAttributes { class in panda::ecmascript::TrackType 86 PropertyAttributes() = default; 87 ~PropertyAttributes() = default; 89 DEFAULT_NOEXCEPT_MOVE_SEMANTIC(PropertyAttributes); 90 DEFAULT_COPY_SEMANTIC(PropertyAttributes); 92 explicit PropertyAttributes(uint64_t v) : value_(v) {} in PropertyAttributes() function in panda::ecmascript::TrackType::PropertyAttributes 93 explicit PropertyAttributes(JSTaggedValue v) : value_(JSTaggedValue::UnwrapToUint64(v)) {} in PropertyAttributes() function in panda::ecmascript::TrackType::PropertyAttributes 94 explicit PropertyAttributes(const PropertyDescriptor &desc); 159 static PropertyAttributes Default() in Default() 161 return PropertyAttributes(GetDefaultAttribute in Default() [all...] |
H A D | tagged_dictionary.cpp | 71 CVector<std::pair<JSTaggedValue, PropertyAttributes>> sortArr; in GetAllKeys() 75 PropertyAttributes attr = GetAttributes(hashIndex); in GetAllKeys() 76 std::pair<JSTaggedValue, PropertyAttributes> pair(key, attr); in GetAllKeys() 93 PropertyAttributes attr = GetAttributes(hashIndex); in UpdateAllAttributesToNoWitable() 104 CVector<std::pair<JSTaggedValue, PropertyAttributes>> sortArr; in GetAllKeysByFilter() 108 PropertyAttributes attr = GetAttributes(hashIndex); in GetAllKeysByFilter() 109 bool bIgnore = FilterHelper::IgnoreKeyByFilter<PropertyAttributes>(attr, filter); in GetAllKeysByFilter() 119 std::pair<JSTaggedValue, PropertyAttributes> pair(key, attr); in GetAllKeysByFilter() 138 PropertyAttributes attr = GetAttributes(hashIndex); in GetNumOfEnumKeys() 153 CVector<std::pair<JSHandle<JSTaggedValue>, PropertyAttributes>> sortAr in GetAllEnumKeys() [all...] |
H A D | global_dictionary-inl.h | 61 PropertyAttributes GlobalDictionary::GetAttributes(int entry) const in GetAttributes() 64 return PropertyAttributes(Get(index)); in GetAttributes() 68 const PropertyAttributes &attributes) in SetEntry() 78 PropertyAttributes metaData; in ClearEntry() 83 const PropertyAttributes &metaData) in UpdateValueAndAttributes() 89 void GlobalDictionary::SetAttributes(const JSThread *thread, int entry, const PropertyAttributes &metaData) in SetAttributes() 111 PropertyAttributes attr = GetAttributes(hashIndex); in GetAllKeys() 135 PropertyAttributes attr = GetAttributes(hashIndex); in GetAllKeysByFilter() 136 bool bIgnore = FilterHelper::IgnoreKeyByFilter<PropertyAttributes>(attr, filter); in GetAllKeysByFilter() 166 PropertyAttributes att in GetNumOfEnumKeys() [all...] |
H A D | layout_info-inl.h | 60 const PropertyAttributes &attr) 67 inline void LayoutInfo::SetNormalAttr(const JSThread *thread, int index, const PropertyAttributes &attr) 70 PropertyAttributes oldAttr(TaggedArray::Get(fixedIdx)); 81 inline PropertyAttributes LayoutInfo::GetAttr(int index) const 84 return PropertyAttributes(TaggedArray::Get(fixedIdx)); 101 PropertyAttributes attr(TaggedArray::Get(fixedIdx)); 194 PropertyAttributes attr(TaggedArray::Get(fixedIdx)); in SetIsNotHole() 199 inline void LayoutInfo::UpdateTrackTypeAttr(int index, const PropertyAttributes &attr) in UpdateTrackTypeAttr() 202 PropertyAttributes oldAttr(TaggedArray::Get(fixedIdx)); in UpdateTrackTypeAttr() 211 PropertyAttributes att in SetIsPGODumped() [all...] |
H A D | object_operator.h | 61 const PropertyAttributes &attr); 64 const JSHandle<JSTaggedValue> &value, const PropertyAttributes &attr); 170 inline PropertyAttributes GetAttr() const in GetAttr() 177 attributes_ = PropertyAttributes(attr); in SetAttr() 180 inline void SetAttr(const PropertyAttributes &attr) in SetAttr() 311 SetFound(NOT_FOUND_INDEX, JSTaggedValue::Undefined(), PropertyAttributes::GetDefaultAttributes(), false, false); in SetAsDefaultAttr() 321 bool AddProperty(const JSHandle<JSObject> &receiver, const JSHandle<JSTaggedValue> &value, PropertyAttributes attr); 322 inline bool AddPropertyInHolder(const JSHandle<JSTaggedValue> &value, PropertyAttributes attr) in AddPropertyInHolder() 373 PropertyAttributes attr, bool attrChanged); 374 void TransitionForAttributeChanged(const JSHandle<JSObject> &receiver, PropertyAttributes att [all...] |
H A D | global_dictionary.h | 63 inline PropertyAttributes GetAttributes(int entry) const; 66 const PropertyAttributes &detail); 71 const PropertyAttributes &metaData); 75 inline void SetAttributes(const JSThread *thread, int entry, const PropertyAttributes &metaData);
|
H A D | layout_info.h | 33 static constexpr int MAX_PROPERTIES_LENGTH = PropertyAttributes::MAX_FAST_PROPS_CAPACITY; 60 void SetPropertyInit(const JSThread *thread, int index, const JSTaggedValue &key, const PropertyAttributes &attr); 62 void SetNormalAttr(const JSThread *thread, int index, const PropertyAttributes &attr); 64 PropertyAttributes GetAttr(int index) const; 69 void AddKey(const JSThread *thread, int index, const JSTaggedValue &key, const PropertyAttributes &attr); 71 void UpdateTrackTypeAttr(int index, const PropertyAttributes &attr);
|
H A D | layout_info.cpp | 25 auto attr = PropertyAttributes(); in Initialize() 76 PropertyAttributes attr = GetAttr(static_cast<int>(i)); in GetAllKeysByFilter() 77 bool bIgnore = FilterHelper::IgnoreKeyByFilter<PropertyAttributes>(attr, filter); in GetAllKeysByFilter() 91 PropertyAttributes attr = GetAttr(static_cast<int>(i)); in GetAllKeysByFilter() 92 bool bIgnore = FilterHelper::IgnoreKeyByFilter<PropertyAttributes>(attr, filter); in GetAllKeysByFilter() 190 PropertyAttributes attr = GetAttr(index); in IsUninitializedProperty()
|
H A D | tagged_hash_table.h | 419 dict->SetNextEnumerationIndex(thread, PropertyAttributes::INITIAL_PROPERTY_INDEX); in Create() 425 const PropertyAttributes &metaData) in PutIfAbsent() 434 PropertyAttributes attr(metaData); in PutIfAbsent() 452 const PropertyAttributes &metaData) in Put() 455 PropertyAttributes attr(metaData); in Put() 501 if (!PropertyAttributes::IsValidIndex(index)) { in NextEnumerationIndex() 506 int enumIndex = PropertyAttributes::INITIAL_PROPERTY_INDEX + i; in NextEnumerationIndex() 507 PropertyAttributes attr = table->GetAttributes(oldIndex); in NextEnumerationIndex() 512 index = PropertyAttributes::INITIAL_PROPERTY_INDEX + length; in NextEnumerationIndex() 528 PropertyAttributes attr in GetEnumerationOrder() [all...] |
H A D | js_hclass.cpp | 281 const PropertyAttributes &attr, const Representation &rep) in AddProperty() 599 PropertyAttributes attributes = properties->GetAttributes(indexOrder[i]); in OptimizeAsFastProperties() 629 const JSHandle<JSTaggedValue> &key, PropertyAttributes attr) in TransitionForRepChange() 753 void JSHClass::UpdateFieldType(JSHClass *hclass, const PropertyAttributes &attr) in UpdateFieldType() 760 JSHClass *JSHClass::FindFieldOwnHClass(JSHClass *hclass, const PropertyAttributes &attr) in FindFieldOwnHClass() 776 void JSHClass::VisitAndUpdateLayout(JSHClass *ownHClass, const PropertyAttributes &attr) in VisitAndUpdateLayout() 811 PropertyAttributes &attr) in ConvertOrTransitionWithRep() 1130 PropertyAttributes attr = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject())->GetAttr(entry); in LookupPropertyInAotHClass() 1169 PropertyAttributes attr = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject())->GetAttr(entry); in LookupPropertyInPGOHClass() 1217 PropertyAttributes att in LookupPropertyInBuiltinPrototypeHClass() [all...] |
H A D | object_operator.cpp | 199 const PropertyAttributes &attr) in ObjectOperator() 205 const JSHandle<JSTaggedValue> &value, const PropertyAttributes &attr) in FastAdd() 567 PropertyAttributes attr(layoutInfo->GetAttr(entry)); in LookupPropertyInlinedProps() 598 void ObjectOperator::TransitionForAttributeChanged(const JSHandle<JSObject> &receiver, PropertyAttributes attr) in TransitionForAttributeChanged() 607 PropertyAttributes origin = dict->GetAttributes(index); in TransitionForAttributeChanged() 627 PropertyAttributes origin = dict->GetAttributes(index); in TransitionForAttributeChanged() 641 PropertyAttributes attr, bool attrChanged) in UpdateValueAndDetails() 704 PropertyAttributes attr = dict->GetAttributes(GetIndex()); in UpdateDataValue() 727 PropertyAttributes attr = GetAttr(); in UpdateDataValue() 765 PropertyAttributes att in WriteDataProperty() [all...] |
H A D | object_fast_operator.h | 111 static inline PropertyAttributes AddPropertyByName(JSThread *thread, JSHandle<JSObject> objHandle, 114 PropertyAttributes attr); 126 PropertyAttributes attr);
|
H A D | js_object-inl.h | 64 return PropertyAttributes::MAX_FAST_PROPS_CAPACITY - inlineProps; in GetNonInlinedFastPropsCapacity() 247 std::pair<bool, JSTaggedValue> JSObject::ConvertValueWithRep(PropertyAttributes attr, JSTaggedValue value) in ConvertValueWithRep() 286 JSTaggedValue JSObject::GetPropertyInlinedPropsWithRep(uint32_t index, PropertyAttributes attr) const in GetPropertyInlinedPropsWithRep() 292 PropertyAttributes attr) const in GetPropertyInlinedPropsWithRep() 327 JSTaggedValue JSObject::GetProperty(const JSHClass *hclass, PropertyAttributes attr) const in GetProperty() 337 void JSObject::SetProperty(const JSThread *thread, const JSHClass *hclass, PropertyAttributes attr, JSTaggedValue value) in SetProperty() 378 PropertyAttributes::DictionaryOrderField::MaxValue()) { in ShouldTransToFastElements()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | layout_info_test.cpp | 41 PropertyAttributes defaultAttr = PropertyAttributes::Default(); in HWTEST_F_L0() 56 PropertyAttributes defaultAttr = PropertyAttributes::Default(); in HWTEST_F_L0() 75 PropertyAttributes defaultAttr = PropertyAttributes::Default(); in HWTEST_F_L0() 117 PropertyAttributes defaultAttr = PropertyAttributes::Default(); in GetAllKeysCommon()
|
H A D | global_dictionary_test.cpp | 87 PropertyAttributes attribute(1); in HWTEST_F_L0() 119 handleDict->SetAttributes(thread, i, PropertyAttributes(i)); in HWTEST_F_L0() 142 handleValue.GetTaggedValue(), PropertyAttributes(i)); in HWTEST_F_L0() 169 propertyBox.GetTaggedValue(), PropertyAttributes(i)); in HWTEST_F_L0() 179 PropertyAttributes(static_cast<int>(i + 1))); in HWTEST_F_L0() 205 PropertyAttributes metaData; in HWTEST_F_L0() 247 PropertyAttributes metaData; in HWTEST_F_L0() 307 PropertyAttributes metaData; in HWTEST_F_L0() 318 PropertyAttributes newAttr(10); in HWTEST_F_L0()
|
H A D | tagged_dictionary_test.cpp | 71 PropertyAttributes metaData1; in HWTEST_F_L0() 77 PropertyAttributes metaData2; in HWTEST_F_L0() 120 PropertyAttributes metaData; in HWTEST_F_L0() 151 PropertyAttributes metaData; in HWTEST_F_L0() 204 PropertyAttributes metaData1; in HWTEST_F_L0() 208 PropertyAttributes metaData2; in HWTEST_F_L0() 249 PropertyAttributes metaData; in HWTEST_F_L0() 280 PropertyAttributes metaData; in HWTEST_F_L0() 305 PropertyAttributes metaData; in HWTEST_F_L0()
|
H A D | js_hclass_test.cpp | 230 PropertyAttributes attr = PropertyAttributes::Default(); in HWTEST_F_L0() 240 auto repE = PropertyAttributes::TranslateToRep(valueE.GetTaggedValue()); in HWTEST_F_L0() 245 auto repF = PropertyAttributes::TranslateToRep(valueF.GetTaggedValue()); in HWTEST_F_L0() 259 PropertyAttributes attr = PropertyAttributes::Default(); in HWTEST_F_L0() 293 PropertyAttributes attr = PropertyAttributes(0); in HWTEST_F_L0() 331 PropertyAttributes attr = PropertyAttributes( in HWTEST_F_L0() [all...] |
H A D | object_operator_third_test.cpp | 53 PropertyAttributes handleAttr(4); in HWTEST_F_L0() 55 objectOperator.SetAttr(PropertyAttributes(3)); in HWTEST_F_L0() 87 PropertyAttributes handleAttr(2); in HWTEST_F_L0() 98 thread, globalDict, handleKey, JSHandle<JSTaggedValue>(cellHandle1), PropertyAttributes(4)); in HWTEST_F_L0() 131 objectOperator1.SetAttr(PropertyAttributes(1)); in HWTEST_F_L0() 144 objectOperator2.SetAttr(PropertyAttributes(handleDesc)); in HWTEST_F_L0() 159 PropertyAttributes handleAttr(elementIndex); in HWTEST_F_L0() 189 PropertyAttributes handleDefaultAttr(elementIndex); in HWTEST_F_L0() 190 PropertyAttributes handleAttr(elementIndex); in HWTEST_F_L0() 224 PropertyAttributes handleAtt in HWTEST_F_L0() [all...] |
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | shared_builtins.cpp | 420 PropertyAttributes attributes = PropertyAttributes::Default(false, false, false); in CreateSObjectFunctionHClass() 446 PropertyAttributes attributes = PropertyAttributes::Default(false, false, false); in CreateSObjectPrototypeHClass() 468 PropertyAttributes attributes = PropertyAttributes::Default(false, false, false); in CreateSFunctionHClass() 492 PropertyAttributes attributes = PropertyAttributes::Default(false, false, false); in CreateSArrayBufferFunctionHClass() 521 PropertyAttributes attributes = PropertyAttributes in CreateSSetFunctionHClass() [all...] |
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
H A D | class_info_extractor.cpp | 206 if (LIKELY(length <= PropertyAttributes::MAX_FAST_PROPS_CAPACITY)) { in CreatePrototypeHClass() 212 PropertyAttributes attributes = PropertyAttributes::Default(true, false, true); // non-enumerable in CreatePrototypeHClass() 256 if (LIKELY(length <= PropertyAttributes::MAX_FAST_PROPS_CAPACITY)) { in CreateConstructorHClass() 262 PropertyAttributes attributes; in CreateConstructorHClass() 265 attributes = PropertyAttributes::Default(false, false, true); in CreateConstructorHClass() 269 attributes = PropertyAttributes::Default(false, false, true); in CreateConstructorHClass() 272 attributes = PropertyAttributes::Default(true, false, true); in CreateConstructorHClass() 276 attributes = PropertyAttributes::DefaultAccessor(false, false, false); in CreateConstructorHClass() 279 attributes = PropertyAttributes in CreateConstructorHClass() [all...] |
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | fast_json_stringifier.cpp | 421 PropertyAttributes attr = numberDic->GetAttributes(hashIndex); in TryCacheSerializeElements() 517 PropertyAttributes attr(layoutInfo->GetAttr(index)); in TryCacheSerializeKeysFromPropertiesArray() 554 PropertyAttributes attr(layoutInfo->GetAttr(index)); in TryCacheSerializeKeysFromEnumCache() 580 CVector<std::pair<JSHandle<JSTaggedValue>, PropertyAttributes>> sortArr; in TryCacheSerializeKeysFromGlobalObject() 586 PropertyAttributes attr = globalDic->GetAttributes(hashIndex); in TryCacheSerializeKeysFromGlobalObject() 590 std::pair<JSHandle<JSTaggedValue>, PropertyAttributes> pair(JSHandle<JSTaggedValue>(thread_, key), attr); in TryCacheSerializeKeysFromGlobalObject() 617 CVector<std::pair<JSHandle<JSTaggedValue>, PropertyAttributes>> sortArr; in TryCacheSerializeKeysFromNameDictionary() 623 PropertyAttributes attr = nameDic->GetAttributes(hashIndex); in TryCacheSerializeKeysFromNameDictionary() 627 std::pair<JSHandle<JSTaggedValue>, PropertyAttributes> pair(JSHandle<JSTaggedValue>(thread_, key), attr); in TryCacheSerializeKeysFromNameDictionary() 659 PropertyAttributes att in SerializeKeysWithCache() [all...] |
H A D | json_helper.h | 78 static inline bool CompareKey(const std::pair<JSHandle<JSTaggedValue>, PropertyAttributes> &a, in CompareKey() 79 const std::pair<JSHandle<JSTaggedValue>, PropertyAttributes> &b) in CompareKey()
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
H A D | pgo_profiler_layout.h | 39 PropertyAttributes::PropertyMetaDataField::NextField<TrackType, PropertyAttributes::TRACK_TYPE_NUM>; 66 bool SetAttribute(const JSThread *thread, PropertyAttributes &attr) const; 90 PropertyAttributes::PropertyMetaDataField::Set(meta, &value_); in SetPropertyMeta() 95 return PropertyAttributes::PropertyMetaDataField::Get(value_); in GetPropertyMeta() 100 return PropertyAttributes::IsAccessorField::Get(value_); in IsAccessor() 105 return PropertyAttributes::WritableField::Get(value_); in IsWritable() 110 return PropertyAttributes::EnumerableField::Get(value_); in IsEnumerable() 115 return PropertyAttributes::ConfigurableField::Get(value_); in IsConfigurable()
|
/arkcompiler/ets_runtime/ecmascript/shared_objects/ |
H A D | js_shared_object.h | 27 static constexpr uint32_t MAX_INLINE = PropertyAttributes::MAX_FAST_PROPS_CAPACITY -
|