/arkcompiler/ets_runtime/ecmascript/ |
H A D | layout_info-inl.h | 25 inline int LayoutInfo::GetPropertiesCapacity() const in GetPropertiesCapacity() 30 inline int LayoutInfo::NumberOfElements() const in NumberOfElements() 35 inline void LayoutInfo::SetNumberOfElements([[maybe_unused]] const JSThread *thread, int properties) in SetNumberOfElements() 40 inline uint32_t LayoutInfo::GetKeyIndex(int index) const in GetKeyIndex() 45 inline uint32_t LayoutInfo::GetAttrIndex(int index) const in GetAttrIndex() 50 inline void LayoutInfo::SetWithoutBarrier(uint32_t idx, const JSTaggedValue &value) in SetWithoutBarrier() 59 inline void LayoutInfo::SetPropertyInit(const JSThread *thread, int index, const JSTaggedValue &key, 67 inline void LayoutInfo::SetNormalAttr(const JSThread *thread, int index, const PropertyAttributes &attr) 75 inline JSTaggedValue LayoutInfo::GetKey(int index) const 81 inline PropertyAttributes LayoutInfo [all...] |
H A D | layout_info.h | 30 class LayoutInfo : private TaggedArray { class 37 inline static LayoutInfo *Cast(TaggedObject *obj) in Cast() 40 return reinterpret_cast<LayoutInfo *>(obj); in Cast() 43 inline static LayoutInfo *UncheckCast(TaggedObject *obj) in UncheckCast() 45 return reinterpret_cast<LayoutInfo *>(obj); in UncheckCast() 48 static LayoutInfo* GetLayoutInfoFromHClass(const JSHClass* hclass) in GetLayoutInfoFromHClass() 50 return LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in GetLayoutInfoFromHClass()
|
H A D | layout_info.cpp | 21 void LayoutInfo::Initialize(const JSThread *thread, int num) in Initialize() 31 void LayoutInfo::GetAllKeys(const JSThread *thread, int end, int offset, TaggedArray *keyArray, in GetAllKeys() 61 void LayoutInfo::GetAllKeysByFilter(const JSThread *thread, uint32_t numberOfProps, uint32_t &keyArrayEffectivelength, in GetAllKeysByFilter() 103 void LayoutInfo::GetAllKeysForSerialization(int end, std::vector<JSTaggedValue> &keyVector) in GetAllKeysForSerialization() 114 std::pair<uint32_t, uint32_t> LayoutInfo::GetNumOfEnumKeys(int end, const JSObject *object) const in GetNumOfEnumKeys() 136 void LayoutInfo::GetAllEnumKeys(JSThread *thread, int end, int offset, JSHandle<TaggedArray> keyArray, in GetAllEnumKeys() 167 void LayoutInfo::GetAllEnumKeys(JSThread *thread, int end, int offset, JSHandle<TaggedArray> keyArray, in GetAllEnumKeys() 188 bool LayoutInfo::IsUninitializedProperty(const JSObject *object, uint32_t index) const in IsUninitializedProperty() 199 CString LayoutInfo::GetSymbolKeyString(JSTaggedValue key) in GetSymbolKeyString() 220 void LayoutInfo [all...] |
H A D | js_hclass-inl.h | 61 LayoutInfo* layoutInfo = LayoutInfo::Cast(cachedHClass->GetLayout().GetTaggedObject()); in AddTransitions() 99 LayoutInfo* layoutInfo = LayoutInfo::Cast(cachedHClass->GetLayout().GetTaggedObject()); in AddProtoTransitions() 129 LayoutInfo *layoutInfo = LayoutInfo::Cast(cachedHClass->GetLayout().GetTaggedObject()); in FindTransitions() 191 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in CheckHClassForRep() 211 LayoutInfo *layoutInfo = LayoutInfo in UpdatePropertyMetaData() [all...] |
H A D | js_hclass.cpp | 339 JSMutableHandle<LayoutInfo> layoutInfoHandle(thread, attrs); in TransitionExtension() 373 JSMutableHandle<LayoutInfo> layoutInfoHandle(thread, layout); in TransitionProto() 538 JSMutableHandle<LayoutInfo> layoutInfoHandle(thread, layout); in OptimizePrototypeForIC() 595 JSHandle<LayoutInfo> layoutInfoHandle = factory->CreateLayoutInfo(numberOfProperties); in OptimizeAsFastProperties() 637 JSHandle<LayoutInfo> oldLayout(thread, newHClass->GetLayout()); in TransitionForRepChange() 639 JSHandle<LayoutInfo> newLayout(factory->CopyLayoutInfo(oldLayout)); in TransitionForRepChange() 786 auto layout = LayoutInfo::Cast(current->GetLayout().GetTaggedObject()); in VisitAndUpdateLayout() 814 auto layout = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in ConvertOrTransitionWithRep() 1130 PropertyAttributes attr = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject())->GetAttr(entry); in LookupPropertyInAotHClass() 1169 PropertyAttributes attr = LayoutInfo in LookupPropertyInPGOHClass() [all...] |
H A D | vtable.cpp | 25 LayoutInfo *layoutInfo = LayoutInfo::Cast(phcPoint->GetLayout().GetTaggedObject()); in CreateTuple()
|
H A D | object_fast_operator-inl.h | 232 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in TryGetPropertyByNameThroughCacheAtLocal() 294 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in GetPropertyByName() 355 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in TrySetPropertyByNameThroughCacheAtLocal() 438 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in SetPropertyByName() 539 LayoutInfo *receiverLayoutInfo = LayoutInfo in SetPropertyByName() [all...] |
H A D | object_factory.h | 107 class LayoutInfo; 417 JSHandle<LayoutInfo> PUBLIC_API CreateLayoutInfo(int properties, MemSpaceType type = MemSpaceType::SEMI_SPACE, 420 JSHandle<LayoutInfo> ExtendLayoutInfo(const JSHandle<LayoutInfo> &old, int properties); 422 JSHandle<LayoutInfo> CopyLayoutInfo(const JSHandle<LayoutInfo> &old); 424 JSHandle<LayoutInfo> CopyAndReSort(const JSHandle<LayoutInfo> &old, int end, int capacity); 852 JSHandle<LayoutInfo> CopyAndReSortSLayoutInfo(const JSHandle<LayoutInfo> [all...] |
H A D | shared_object_factory.cpp | 61 JSHandle<LayoutInfo> layoutInfoHandle = CreateSLayoutInfo(JSFunction::LENGTH_OF_INLINE_PROPERTIES); in CreateSFunctionClass() 398 JSHandle<LayoutInfo> ObjectFactory::CreateSLayoutInfo(uint32_t properties) in CreateSLayoutInfo() 400 uint32_t arrayLength = LayoutInfo::ComputeArrayLength(properties); in CreateSLayoutInfo() 401 JSHandle<LayoutInfo> layoutInfoHandle = JSHandle<LayoutInfo>::Cast(NewSTaggedArrayWithoutInit(arrayLength)); in CreateSLayoutInfo() 406 JSHandle<LayoutInfo> ObjectFactory::NewSEmptyLayoutInfo() in NewSEmptyLayoutInfo() 408 JSHandle<LayoutInfo> layoutInfoHandle = JSHandle<LayoutInfo>::Cast( in NewSEmptyLayoutInfo() 436 JSHandle<LayoutInfo> ObjectFactory::CopyAndReSortSLayoutInfo(const JSHandle<LayoutInfo> [all...] |
H A D | object_factory.cpp | 646 auto layout = LayoutInfo::Cast(klass->GetLayout().GetTaggedObject()); in CloneObjectLiteral() 758 auto layout = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in CloneClassCtor() 856 JSHandle<LayoutInfo> layoutInfoHandle = CreateLayoutInfo(1); in CreateJSRegExpInstanceClass() 880 JSHandle<LayoutInfo> layoutInfoHandle = CreateLayoutInfo(1); in CreateJSArrayInstanceClass() 908 JSHandle<LayoutInfo> layoutInfoHandle = CreateLayoutInfo(JSArguments::LENGTH_OF_INLINE_PROPERTIES); in CreateJSArguments() 1808 JSHandle<LayoutInfo> layoutInfoHandle = CreateLayoutInfo(JSFunction::LENGTH_OF_INLINE_PROPERTIES); in CreateFunctionClass() 1866 JSHandle<LayoutInfo> layoutInfoHandle = CreateLayoutInfo(JSFunction::LENGTH_OF_INLINE_PROPERTIES); in CreateBoundFunctionClass() 1898 JSHandle<LayoutInfo> layout = CreateLayoutInfo(size, MemSpaceType::OLD_SPACE, GrowMode::KEEP); in CreateDefaultClassPrototypeHClass() 1918 JSHandle<LayoutInfo> layout = CreateLayoutInfo(size, MemSpaceType::OLD_SPACE, GrowMode::KEEP); in CreateDefaultClassConstructorHClass() 3052 JSHandle<LayoutInfo> ObjectFactor [all...] |
H A D | js_object.cpp | 179 JSHandle<LayoutInfo> layoutInfoHandle(thread, jshclass->GetLayout()); in TransitionToDictionary() 367 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in IsArrayLengthWritable() 489 LayoutInfo::Cast(obj->GetJSHClass()->GetLayout().GetTaggedObject()) in GetAllKeys() 513 LayoutInfo::Cast(obj->GetJSHClass()->GetLayout().GetTaggedObject())-> in GetAllKeysByFilter() 537 LayoutInfo::Cast(obj->GetJSHClass()->GetLayout().GetTaggedObject())->GetAllKeysForSerialization(end, in GetAllKeysForSerialization() 571 LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()) in GetAllEnumKeys() 598 LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()) in GetAllEnumKeys() 781 LayoutInfo *layout = LayoutInfo in GetNumberOfEnumKeys() [all...] |
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | layout_info_test.cpp | 30 JSHandle<LayoutInfo> layoutInfoHandle = factory->CreateLayoutInfo(infoLength); in HWTEST_F_L0() 44 JSHandle<LayoutInfo> layoutInfoHandle = factory->CreateLayoutInfo(infoLength); in HWTEST_F_L0() 60 JSHandle<LayoutInfo> layoutInfoHandle = factory->CreateLayoutInfo(infoLength); in HWTEST_F_L0() 81 JSHandle<LayoutInfo> layoutInfoHandle = factory->CreateLayoutInfo(infoLength); in HWTEST_F_L0() 96 JSHandle<LayoutInfo> newLayoutInfo = factory->ExtendLayoutInfo(layoutInfoHandle, newPropertiesLength); in HWTEST_F_L0() 122 JSHandle<LayoutInfo> layoutInfoHandle = factory->CreateLayoutInfo(infoLength); in GetAllKeysCommon()
|
H A D | js_shared_array_test.cpp | 203 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in HWTEST_F_L0() 228 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in HWTEST_F_L0()
|
H A D | shared_object_factory_test.cpp | 100 JSHandle<LayoutInfo> emptyLayout = factory->CreateSLayoutInfo(0); in HWTEST_F_L0()
|
H A D | js_hclass_test.cpp | 418 LayoutInfo *layoutInfo = LayoutInfo::Cast(objClass->GetLayout().GetTaggedObject()); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | shared_builtins.cpp | 425 JSHandle<LayoutInfo> layout = factory_->CreateSLayoutInfo(length); in CreateSObjectFunctionHClass() 451 JSHandle<LayoutInfo> layout = factory_->CreateSLayoutInfo(length); in CreateSObjectPrototypeHClass() 473 JSHandle<LayoutInfo> layout = factory_->CreateSLayoutInfo(length); in CreateSFunctionHClass() 498 JSHandle<LayoutInfo> layout = factory_->CreateSLayoutInfo(length); in CreateSArrayBufferFunctionHClass() 527 JSHandle<LayoutInfo> layout = factory_->CreateSLayoutInfo(length); in CreateSSetFunctionHClass() 556 JSHandle<LayoutInfo> layout = factory_->CreateSLayoutInfo(length); in CreateSMapFunctionHClass() 584 JSHandle<LayoutInfo> layout = factory_->CreateSLayoutInfo(length); in CreateSFunctionPrototypeHClass() 613 JSHandle<LayoutInfo> layout = factory_->CreateSLayoutInfo(length); in CreateSArrayBufferPrototypeHClass() 642 JSHandle<LayoutInfo> layout = factory_->CreateSLayoutInfo(length); in CreateSSetPrototypeHClass() 673 JSHandle<LayoutInfo> layou in CreateSMapPrototypeHClass() [all...] |
H A D | builtins_lazy_callback.cpp | 227 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in ResetLazyInternalAttr()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | fast_json_stringifier.cpp | 511 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in TryCacheSerializeKeysFromPropertiesArray() 552 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in TryCacheSerializeKeysFromEnumCache() 658 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in SerializeKeysWithCache() 841 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in SerializeKeysFromLayout() 931 LayoutInfo *layoutInfo = LayoutInfo in SerializeKeyValue() [all...] |
H A D | json_stringifier.cpp | 684 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in SerializeKeys() 739 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in SerializeKeys()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | ntype_bytecode_lowering.cpp | 374 LayoutInfo *LayoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in LowerNTypedStOwnByName() local 375 PropertyAttributes attr(LayoutInfo->GetAttr(entry)); in LowerNTypedStOwnByName()
|
/arkcompiler/ets_runtime/ecmascript/compiler/pgo_type/ |
H A D | pgo_type_manager.cpp | 74 LayoutInfo* layoutInfo = LayoutInfo::GetLayoutInfoFromHClass(hclass); in GetSymbolCountFromHClassData() 104 LayoutInfo* layoutInfo = LayoutInfo::GetLayoutInfoFromHClass(hclass); in GenSymbolInfo()
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
H A D | class_info_extractor.cpp | 208 JSHandle<LayoutInfo> layout = factory->CreateLayoutInfo(length, MemSpaceType::OLD_SPACE, GrowMode::KEEP); in CreatePrototypeHClass() 258 JSHandle<LayoutInfo> layout = factory->CreateLayoutInfo(length, MemSpaceType::OLD_SPACE, GrowMode::KEEP); in CreateConstructorHClass() 317 JSHandle<LayoutInfo> layout(thread, constructorHClass->GetLayout()); in CorrectConstructorHClass() 350 JSHandle<LayoutInfo> layout = factory->CreateSLayoutInfo(length + extraLength); in CreateSendableHClass() 760 auto layout = JSHandle<LayoutInfo>(thread, constructorHClass->GetLayout()); in DefineSendableClassFromExtractor() 948 uint32_t length, const JSHandle<LayoutInfo> &layout, in AddFieldTypeToHClass() 1028 JSHandle<LayoutInfo> layout = factory->CreateSLayoutInfo(fieldNum); in DefineSendableInstanceHClass() 1045 JSHandle<LayoutInfo> baseLayout(thread, baseIHClass->GetLayout()); in DefineSendableInstanceHClass() 1051 JSHandle<LayoutInfo> layout = factory->CopyAndReSortSLayoutInfo(baseLayout, baseLength, newLength); in DefineSendableInstanceHClass()
|
H A D | class_info_extractor.h | 178 uint32_t length, const JSHandle<LayoutInfo> &layout, const JSHandle<JSHClass> &hclass,
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | verification.cpp | 101 auto layout = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in VisitAllObjects() 597 auto layout = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in VerifyMark() 648 auto layout = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in VerifyMark() 709 auto layout = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in VerifySweep() 761 auto layout = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in VerifySweep()
|
H A D | parallel_marker-inl.h | 36 auto layout = LayoutInfo::UncheckCast(hclass->GetLayout().GetTaggedObject()); in VisitBodyInObj() 194 auto layout = LayoutInfo::UncheckCast(dst); in VisitBodyInObj()
|