Home
last modified time | relevance | path

Searched refs:profileType (Results 1 - 16 of 16) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ap_file/
H A Dpgo_profile_type_pool.h67 auto profileType = type_.GetRaw(); variable
68 stream.write(reinterpret_cast<const char *>(&(profileType)), sizeof(ProfileType));
136 bool TryAdd(const ProfileType &profileType, ApEntityId &entryId) in TryAdd() argument
138 return pool_->TryAdd(profileType, entryId); in TryAdd()
141 bool GetEntryId(const ProfileType &profileType, ApEntityId &entryId) const in GetEntryId() argument
143 return pool_->GetEntryId(profileType, entryId); in GetEntryId()
H A Dpgo_record_pool.h168 ProfileType profileType(context, profileTypeRef);
169 pool_.try_emplace(profileType, base::ReadBuffer(buffer));
204 void Add(ProfileType profileType, const CString &recordName) in Add() argument
206 ASSERT(profileType.GetKind() == ProfileType::Kind::RecordClassId); in Add()
207 auto result = pool_.try_emplace(profileType, recordName); in Add()
209 LOG_ECMA(DEBUG) << "Add Record. profile: " << profileType.GetTypeString() << ", recordName: " << recordName; in Add()
213 const char *GetName(ProfileType profileType) const in GetName()
215 auto iter = pool_.find(profileType); in GetName()
/arkcompiler/ets_runtime/ecmascript/compiler/pgo_type/
H A Dpgo_type_recorder.cpp60 auto profileType = info.GetProfileType(); in GetElementsKindsForUser() local
61 if (profileType.IsBuiltinsArray()) { in GetElementsKindsForUser()
62 elementsKinds.emplace_back(profileType.GetElementsKindBeforeTransition()); in GetElementsKindsForUser()
85 auto profileType = info.GetProfileType(); in GetTransitionElementsKindsForUser() local
86 if (profileType.IsBuiltinsArray()) { in GetTransitionElementsKindsForUser()
87 elementsKinds.emplace_back(profileType.GetElementsKindAfterTransition()); in GetTransitionElementsKindsForUser()
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dtype_info_accessors.h373 auto profileType = acc_.TryGetPGOType(gate_).GetPGOSampleType(); in GetMethodId() local
374 if (!profileType->IsNone()) { in GetMethodId()
375 return profileType->GetProfileType().GetId(); in GetMethodId()
432 auto profileType = acc_.TryGetPGOType(gate_).GetPGOSampleType(); in IsHotnessFunc() local
433 bool haveProfileType = !profileType->IsNone(); in IsHotnessFunc()
436 uint32_t methodId = profileType->GetProfileType().GetId(); in IsHotnessFunc()
447 auto profileType = acc_.TryGetPGOType(gate_).GetPGOSampleType(); in GetFunctionTypeLength() local
448 bool haveProfileType = !profileType->IsNone(); in GetFunctionTypeLength()
450 uint32_t methodId = profileType->GetProfileType().GetId(); in GetFunctionTypeLength()
466 auto profileType in IsNoGC() local
484 auto profileType = acc_.TryGetPGOType(gate_).GetPGOSampleType(); GetMethodIndex() local
508 auto profileType = acc_.TryGetPGOType(gate_).GetPGOSampleType(); GetMethodId() local
517 auto profileType = acc_.TryGetPGOType(gate_).GetPGOSampleType(); MethodOffsetIsVaild() local
526 auto profileType = acc_.TryGetPGOType(gate_).GetPGOSampleType(); CanFastCall() local
543 auto profileType = acc_.TryGetPGOType(gate_).GetPGOSampleType(); GetFuncMethodOffset() local
[all...]
H A Dtype_info_accessors.cpp279 ProfileType profileType = sampleType->GetProfileType(); in FindHClass() local
280 auto type = std::make_pair(profileType, profileType); in FindHClass()
285 profileType.UpdateKind(pgo::ProfileType::Kind::TransitionClassId); in FindHClass()
286 auto transType = std::make_pair(profileType, profileType); in FindHClass()
317 ProfileType profileType = sampleType->GetProfileType(); in GetHClass() local
318 auto type = std::make_pair(profileType, profileType); in GetHClass()
321 profileType in GetHClass()
412 auto profileType = acc_.TryGetPGOType(gate_).GetPGOSampleType(); CanOptimizeAsFastCall() local
[all...]
H A Dtyped_bytecode_lowering.cpp1881 auto profileType = acc_.TryGetPGOType(gate).GetPGOSampleType(); in GetCalleePandaFile() local
1882 bool haveProfileType = profileType->IsProfileType() && !profileType->IsProfileTypeNone(); in GetCalleePandaFile()
1887 auto abcId = profileType->GetProfileType().GetAbcId(); in GetCalleePandaFile()
/arkcompiler/ets_runtime/ecmascript/compiler/type_inference/
H A Dpgo_type_infer.cpp174 ProfileType profileType = pgoRwTypes->GetObjectInfo(i).GetProfileType(); in TrySetOnHeapMode() local
175 if (profileType.IsBuiltinsType()) { in TrySetOnHeapMode()
176 ProfileType::BuiltinsTypedArrayId id(profileType.GetId()); in TrySetOnHeapMode()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
H A Dpgo_profiler_decoder.cpp210 bool PGOProfilerDecoder::GetHClassTreeDesc(PGOSampleType profileType, PGOHClassTreeDesc **desc) const in GetHClassTreeDesc() argument
215 return recordSimpleInfos_->GetHClassTreeDesc(profileType, desc); in GetHClassTreeDesc()
H A Dpgo_profiler_layout.h436 auto profileType(*GetChildType(i)); in Convert()
437 desc->AddChildHClassLayoutDesc(profileType.Remap(context)); in Convert()
518 auto profileType(*GetChildType(i)); in Convert()
519 desc->AddChildHClassLayoutDesc(profileType.Remap(context)); in Convert()
H A Dpgo_profiler.cpp1365 LOG_ECMA(DEBUG) << "The profileType of constructor root hclass was not found."; in DumpDefineClass()
1376 LOG_ECMA(DEBUG) << "The profileType of prototype root hclass was not found."; in DumpDefineClass()
1401 ProfileType profileType = GetProfileType(rootHClass); in DumpCreateObject() local
1402 if (!profileType.IsRootType()) { in DumpCreateObject()
1405 ASSERT(profileType.GetKind() == ProfileType::Kind::ObjectLiteralId); in DumpCreateObject()
1406 PGOSampleType currentType(profileType); in DumpCreateObject()
1407 PGODefineOpType objDefType(profileType); in DumpCreateObject()
1409 recordInfos_->AddRootLayout(JSTaggedType(rootHClass), profileType); in DumpCreateObject() local
1413 auto profileType = currentType.GetProfileType(); in DumpCreateObject() local
1414 PGODefineOpType objDefType(profileType); in DumpCreateObject()
1424 recordInfos_->AddRootLayout(JSTaggedType(hclass), profileType); DumpCreateObject() local
1813 auto profileType = ProfileType::CreateBuiltinsArray(abcId, type, elementsKind, transitionElementsKind, AddBuiltinsInfo() local
1819 auto profileType = ProfileType::CreateBuiltinsTypedArray(abcId, jsType, onHeap, everOutOfBounds); AddBuiltinsInfo() local
[all...]
H A Dpgo_profiler_decoder.h135 bool PUBLIC_API GetHClassTreeDesc(PGOSampleType profileType, PGOHClassTreeDesc **desc) const;
H A Dpgo_profiler_info.cpp748 // step2: [abc pool merge] remap decoder's profileType pool's abcId field. in ParseFromBinary()
858 auto profileType = PGOSampleType(typeInfo.GetProfileType()); in ProcessToBinaryForLayout() local
864 PGOSampleTypeRef classRef = PGOSampleTypeRef::ConvertFrom(*this, profileType); in ProcessToBinaryForLayout()
910 ProfileType profileType(0, recordId, ProfileType::Kind::RecordClassId); in ParseFromText()
911 auto methodInfosIter = recordInfos_.find(profileType); in ParseFromText()
915 recordInfos_.emplace(profileType, methodInfos); in ParseFromText()
1013 // step2: [abc pool merge] remap decoder's profileType pool's abcId field. in ParseFromBinary()
H A Dpgo_profiler_info.h651 bool GetHClassTreeDesc(PGOSampleType profileType, PGOHClassTreeDesc **desc) const in GetHClassTreeDesc() argument
653 auto iter = hclassTreeDescInfos_.find(PGOHClassTreeDesc(profileType.GetProfileType())); in GetHClassTreeDesc()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/types/
H A Dpgo_profile_type.h553 uint64_t operator()(const ProfileType &profileType) const in operator ()()
555 return profileType.GetRaw(); in operator ()()
H A Dpgo_profiler_type.h118 static PGOSampleTemplate CreateProfileType(ApEntityId recordId, int32_t profileType, in CreateProfileType() argument
122 return PGOSampleTemplate(PGOProfileType(recordId, profileType, kind, isRoot)); in CreateProfileType()
/arkcompiler/ets_runtime/ecmascript/jit/
H A Djit_profiler.cpp926 auto profileType = ProfileType::CreateBuiltinsArray(abcId, type, elementsKind, transitionElementsKind, in AddBuiltinsInfo() local
928 PGOObjectInfo info(profileType); in AddBuiltinsInfo()
932 auto profileType = ProfileType::CreateBuiltinsTypedArray(abcId, jsType, onHeap, everOutOfBounds); in AddBuiltinsInfo() local
933 PGOObjectInfo info(profileType); in AddBuiltinsInfo()

Completed in 32 milliseconds