/arkcompiler/ets_runtime/ecmascript/compiler/pgo_type/ |
H A D | pgo_hclass_generator.cpp | 40 auto rootType = type.GetProfileType(); in GenerateHClass() local 41 auto rootHClassDesc = desc->GetHClassLayoutDesc(rootType); in GenerateHClass() 55 if (rootType.IsGeneralizedPrototype()) { in GenerateHClass() 56 rootHClass = CreateRootPHClass(rootType, rootHClassDesc, maxNumOfProps, rootType.IsTransitionPrototype()); in GenerateHClass() 57 } else if (rootType.IsConstructor()) { in GenerateHClass() 58 rootHClass = CreateRootCHClass(rootType, rootHClassDesc, maxNumOfProps); in GenerateHClass() 60 rootHClass = CreateRootHClass(rootType, rootHClassDesc, maxNumOfProps, isCache); in GenerateHClass() 63 CreateChildHClass(rootType, desc, rootHClass, rootHClassDesc); in GenerateHClass() 73 auto rootType in GenerateIHClass() local 98 auto rootType = type.GetProfileType(); CaculateMaxNumOfObjIncludeProtoTransition() local 144 CreateRootPHClass( ProfileType rootType, const HClassLayoutDesc *layoutDesc, uint32_t maxNum, bool isTransitionPhc) const CreateRootPHClass() argument 156 CreateRootCHClass( ProfileType rootType, const HClassLayoutDesc *layoutDesc, uint32_t maxNum) const CreateRootCHClass() argument 166 CreateRootHClass( ProfileType rootType, const HClassLayoutDesc *layoutDesc, uint32_t maxNum, bool isCache) const CreateRootHClass() argument 179 CreateChildHClass(ProfileType rootType, const PGOHClassTreeDesc *desc, const JSHandle<JSHClass> &parent, const HClassLayoutDesc *parentLayoutDesc) const CreateChildHClass() argument [all...] |
H A D | pgo_type_parser.cpp | 45 auto rootType = defType.GetProfileType(); in RecordTypeInfo() local 58 ptManager_->RecordLocationToRootType(loc, rootType); in RecordTypeInfo() 72 auto rootType = ptManager_->GetRootIdByLocation(loc); in GenerateHClass() local 73 PGOSampleType iSampleType(rootType); in GenerateHClass() 97 auto rootType = defType.GetProfileType(); in RecordTypeInfo() local 98 if (!rootType.IsArrayLiteralType()) { in RecordTypeInfo() 105 auto traceId = rootType.GetId(); in RecordTypeInfo() 115 auto rootType = defType.GetProfileType(); in RecordTypeInfo() local 116 ptManager_->RecordLocationToRootType(loc, rootType); in RecordTypeInfo() 125 auto rootType in GenerateHClass() local 132 auto rootType = defType.GetProfileType(); RecordTypeInfo() local 159 auto rootType = ptManager_->GetRootIdByLocation(loc); GenerateHClass() local 229 GenerateHClassForClassType(ProfileType rootType, ProfileType protoPt, const PGOHClassGenerator &generator, bool isCache) GenerateHClassForClassType() argument 251 GenerateHClassForPrototype(ProfileType rootType, const PGOHClassGenerator &generator, bool isCache) GenerateHClassForPrototype() argument [all...] |
H A D | pgo_hclass_generator.h | 40 ProfileType rootType, const HClassLayoutDesc *layoutDesc, uint32_t maxNum, bool isTransitionPhc) const; 42 ProfileType rootType, const HClassLayoutDesc *layoutDesc, uint32_t maxNum) const; 44 ProfileType rootType, const HClassLayoutDesc *layoutDesc, uint32_t maxNum, bool isCache) const; 46 void CreateChildHClass(ProfileType rootType, const PGOHClassTreeDesc *desc, const JSHandle<JSHClass> &parent,
|
H A D | pgo_type_manager.h | 60 void RecordHClass(ProfileType rootType, ProfileType childType, JSTaggedType hclass, bool update = false); 66 JSTaggedValue PUBLIC_API QueryHClass(ProfileType rootType, ProfileType childType) ; 68 ElementsKind QueryElementKind(ProfileType rootType); 88 inline void RecordLocationToRootType(const PGOTypeLocation &loc, ProfileType rootType) in RecordLocationToRootType() argument 90 locToRootIdMap_.emplace(loc, rootType); in RecordLocationToRootType()
|
H A D | pgo_type_manager.cpp | 96 ProfileType rootType = root.first; in GenSymbolInfo() local 112 ProfileTypeTuple symbolIdKey = std::make_tuple(rootType, childType, slotIndex); in GenSymbolInfo() 141 ProfileType rootType = root.first; in GenHClassInfo() local 145 ProfileTyper key = std::make_pair(rootType, childType); in GenHClassInfo() 223 void PGOTypeManager::RecordHClass(ProfileType rootType, ProfileType childType, JSTaggedType hclass, bool update) in RecordHClass() argument 226 auto iter = hcData_.find(rootType); in RecordHClass() 230 hcData_.emplace(rootType, map); in RecordHClass() 301 JSTaggedValue PGOTypeManager::QueryHClass(ProfileType rootType, ProfileType childType) in QueryHClass() argument 305 auto iter = hcData_.find(rootType); in QueryHClass()
|
H A D | pgo_type_parser.h | 97 void GenerateHClassForClassType(ProfileType rootType, ProfileType protoPt, const PGOHClassGenerator &generator, 99 void GenerateHClassForPrototype(ProfileType rootType, const PGOHClassGenerator &generator, bool isCache);
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/types/ |
H A D | pgo_type_generator.h | 29 static ProfileType GenerateProfileType(JSTaggedType child, ProfileType rootType) in GenerateProfileType() argument 33 ProfileType type(rootType.GetAbcId(), traceId, rootType.GetKind()); in GenerateProfileType()
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/ |
H A D | gc_adaptive_marking_stack.cpp | 31 void GCAdaptiveMarkingStack::PushToStack(RootType rootType, ObjectHeader *object) in PushToStack() argument 33 LOG(DEBUG, GC) << "Add object to stack: " << GetDebugInfoAboutObject(object) << " accessed as a root: " << rootType; in PushToStack() 34 ValidateObject(rootType, object); in PushToStack()
|
H A D | gc_root_type.cpp | 20 std::ostream &operator<<(std::ostream &os, RootType rootType) in operator <<() argument 22 switch (rootType) { in operator <<()
|
H A D | gc_root_type.h | 39 PANDA_PUBLIC_API std::ostream &operator<<(std::ostream &os, RootType rootType);
|
H A D | gc_adaptive_marking_stack.h | 58 void PushToStack(RootType rootType, ObjectHeader *object);
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
H A D | pgo_profiler_layout.cpp | 106 bool PGOHClassTreeDesc::DumpForRoot(JSTaggedType root, ProfileType rootType) in DumpForRoot() argument 108 ASSERT(rootType.IsRootType()); in DumpForRoot() 110 auto iter = transitionLayout_.find(rootType); in DumpForRoot() 116 rootLayout = new RootHClassLayoutDesc(rootType, rootHClass->GetObjectType(), in DumpForRoot() 118 transitionLayout_.emplace(rootType, rootLayout); in DumpForRoot()
|
H A D | pgo_profiler_info.h | 477 bool AddRwUseInfo(ProfileType rootType); 478 bool AddRootLayout(JSTaggedType hclass, ProfileType rootType); 480 ProfileType rootType, JSTaggedType parent, ProfileType parentType, JSTaggedType child, ProfileType childType); 481 bool UpdateLayout(ProfileType rootType, JSTaggedType hclass, ProfileType curType); 482 void AddRootPtType(ProfileType rootType, ProfileType ptType); 483 bool IsDumped(ProfileType rootType, ProfileType curType) const;
|
H A D | pgo_profiler_info.cpp | 634 bool PGORecordDetailInfos::AddRootLayout(JSTaggedType hclass, ProfileType rootType) in AddRootLayout() argument 636 PGOHClassTreeDesc descInfo(rootType); in AddRootLayout() 639 return const_cast<PGOHClassTreeDesc &>(*iter).DumpForRoot(hclass, rootType); in AddRootLayout() 641 if (!descInfo.DumpForRoot(hclass, rootType)) { in AddRootLayout() 649 bool PGORecordDetailInfos::UpdateLayout(ProfileType rootType, JSTaggedType hclass, ProfileType curType) in UpdateLayout() argument 651 PGOHClassTreeDesc descInfo(rootType); in UpdateLayout() 666 ProfileType rootType, JSTaggedType parent, ProfileType parentType, JSTaggedType child, ProfileType childType) in UpdateTransitionLayout() 668 PGOHClassTreeDesc descInfo(rootType); in UpdateTransitionLayout() 681 void PGORecordDetailInfos::AddRootPtType(ProfileType rootType, ProfileType ptType) in AddRootPtType() argument 683 PGOHClassTreeDesc descInfo(rootType); in AddRootPtType() 665 UpdateTransitionLayout( ProfileType rootType, JSTaggedType parent, ProfileType parentType, JSTaggedType child, ProfileType childType) UpdateTransitionLayout() argument 693 IsDumped(ProfileType rootType, ProfileType curType) const IsDumped() argument [all...] |
H A D | pgo_profiler.cpp | 1540 ProfileType rootType = GetProfileType(rootHClass, true); in UpdateLayout() local 1541 if (!rootType.IsRootType()) { in UpdateLayout() 1550 recordInfos_->AddRootPtType(rootType, prototypeType); in UpdateLayout() 1555 auto curType = GetOrInsertProfileType(hclass, rootType); in UpdateLayout() 1556 recordInfos_->UpdateLayout(rootType, JSTaggedType(hclass), curType); in UpdateLayout() 1563 auto rootType = GetProfileType(rootHClass, true); in UpdateTransitionLayout() local 1564 if (!rootType.IsRootType()) { in UpdateTransitionLayout() 1589 recordInfos_->AddRootPtType(rootType, prototypeType); in UpdateTransitionLayout() 1600 auto childType = GetOrInsertProfileType(child, rootType); in UpdateTransitionLayout() 1602 rootType, JSTaggedTyp in UpdateTransitionLayout() 1861 GetOrInsertProfileType(JSHClass *child, ProfileType rootType) GetOrInsertProfileType() argument [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/refstorage/ |
H A D | global_object_storage.cpp | 120 void GlobalObjectStorage::VisitObjects(const GCRootVisitor &gcRootVisitor, mem::RootType rootType) in VisitObjects() argument 122 globalStorage_->VisitObjects(gcRootVisitor, rootType); in VisitObjects() 123 globalFixedStorage_->VisitObjects(gcRootVisitor, rootType); in VisitObjects()
|
H A D | ref_block.cpp | 54 void RefBlock::VisitObjects(const GCRootVisitor &gcRootVisitor, mem::RootType rootType) in VisitObjects() argument 66 gcRootVisitor({rootType, obj}); in VisitObjects()
|
H A D | global_object_storage.h | 99 void VisitObjects(const GCRootVisitor &gcRootVisitor, mem::RootType rootType); 299 void VisitObjects(const GCRootVisitor &gcRootVisitor, mem::RootType rootType) in VisitObjects() argument 308 gcRootVisitor({rootType, obj}); in VisitObjects()
|
H A D | ref_block.h | 120 void VisitObjects(const GCRootVisitor &gcRootVisitor, mem::RootType rootType);
|
H A D | reference_storage.h | 92 void VisitObjects(const GCRootVisitor &gcRootVisitor, mem::RootType rootType);
|
H A D | reference_storage.cpp | 328 void ReferenceStorage::VisitObjects(const GCRootVisitor &gcRootVisitor, mem::RootType rootType) in VisitObjects() argument 331 frame->VisitObjects(gcRootVisitor, rootType); in VisitObjects()
|
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | object_helpers.h | 85 inline void ValidateObject([[maybe_unused]] RootType rootType, [[maybe_unused]] const ObjectHeader *object) in ValidateObject() argument 92 LOG(FATAL, GC) << " Broken object doesn't have class: " << object << " accessed from root: " << rootType); in ValidateObject()
|
/arkcompiler/ets_runtime/ecmascript/compiler/aot_snapshot/ |
H A D | snapshot_constantpool_data.h | 71 JSHandle<JSTaggedValue> TryGetIHClass(ProfileType rootType, ProfileType childType, const ItemData &data, 74 JSHandle<JSTaggedValue> TryGetHClass(ProfileType rootType, ProfileType childType) const;
|
H A D | snapshot_constantpool_data.cpp | 36 JSHandle<JSTaggedValue> BaseSnapshotInfo::TryGetIHClass(ProfileType rootType, ProfileType childType, in TryGetIHClass() argument 39 JSHandle<JSTaggedValue> ihc = TryGetHClass(rootType, childType); in TryGetIHClass() 50 JSHandle<JSTaggedValue> BaseSnapshotInfo::TryGetHClass(ProfileType rootType, ProfileType childType) const in TryGetHClass() argument 53 JSTaggedValue hclass = ptManager->QueryHClass(rootType, childType); in TryGetHClass()
|
/arkcompiler/runtime_core/static_core/compiler/code_info/ |
H A D | code_info.h | 583 auto rootType = IS_DYNAMIC ? VRegInfo::Type::ANY : VRegInfo::Type::OBJECT; in EnumerateRoots() local 589 if (!callback(VRegInfo(regIdx, VRegInfo::Location::REGISTER, rootType, VRegInfo::VRegType::VREG))) { in EnumerateRoots() 615 VRegInfo vreg(regIdx, VRegInfo::Location::SLOT, rootType, VRegInfo::VRegType::VREG); in EnumerateRoots()
|