| /arkcompiler/ets_runtime/ecmascript/compiler/type_inference/ |
| D | global_type_infer.h | 24 GlobalTypeInfer(PassContext *ctx, const uint32_t methodOffset, const CString &recordName, 33 inline MethodTypeInfer *GetTypeInfer(const uint32_t methodOffset) const in GetTypeInfer() argument 35 auto it = typeInfers_.find(methodOffset); in GetTypeInfer() 42 inline bool IsLegalMethod(const uint32_t methodOffset) const in IsLegalMethod() argument 44 return (methodOffset != 0); in IsLegalMethod() 47 void NewTypeInfer(const uint32_t methodOffset); 48 void CollectNamespaceMethod(const uint32_t methodOffset); 49 void CollectNamespaceMethods(const uint32_t methodOffset);
|
| D | global_type_infer.cpp | 19 GlobalTypeInfer::GlobalTypeInfer(PassContext *ctx, const uint32_t methodOffset, const CString &reco… in GlobalTypeInfer() argument 21 …jsPandaFile_(ctx_->GetJSPandaFile()), bcInfo_(ctx->GetBytecodeInfo()), methodOffset_(methodOffset), in GlobalTypeInfer() 26 CollectNamespaceMethods(methodOffset); in GlobalTypeInfer() 56 void GlobalTypeInfer::NewTypeInfer(const uint32_t methodOffset) in NewTypeInfer() argument 60 MethodInfo &methodInfo = methodList.at(methodOffset); in NewTypeInfer() 63 auto methodLiteral = jsPandaFile_->FindMethodLiteral(methodOffset); in NewTypeInfer() 81 typeInfers_.insert(std::make_pair(methodOffset, typeInfer)); in NewTypeInfer() 84 void GlobalTypeInfer::CollectNamespaceMethod(const uint32_t methodOffset) in CollectNamespaceMethod() argument 87 MethodInfo &methodInfo = methodList.at(methodOffset); in CollectNamespaceMethod() 99 void GlobalTypeInfer::CollectNamespaceMethods(const uint32_t methodOffset) in CollectNamespaceMethods() argument [all …]
|
| D | initialization_analysis.cpp | 94 auto methodOffset = acc_.TryGetMethodOffset(gate); in CollectInitializationType() local 95 JSTaggedValue propKey = tsManager_->GetStringFromConstantPool(methodOffset, index); in CollectInitializationType() 118 auto methodOffset = acc_.TryGetMethodOffset(gate); in CollectInitializationInfo() local 119 JSTaggedValue propKey = tsManager_->GetStringFromConstantPool(methodOffset, index); in CollectInitializationInfo()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | pgo_bc_info.h | 40 uint32_t methodOffset; member 53 void IterateValByMethodOffset(uint32_t methodOffset, Type type, const Callback &cb) const in IterateValByMethodOffset() argument 55 if (methodOffsetToValVec_.find(methodOffset) != methodOffsetToValVec_.end()) { in IterateValByMethodOffset() 56 const ValVec &valVec = methodOffsetToValVec_.at(methodOffset); in IterateValByMethodOffset() 64 void IterateValByMethodOffsetAndType(uint32_t methodOffset, const Callback &cb) const in IterateValByMethodOffsetAndType() argument 66 if (methodOffsetToValVec_.find(methodOffset) != methodOffsetToValVec_.end()) { in IterateValByMethodOffsetAndType() 67 const ValVec &valVec = methodOffsetToValVec_.at(methodOffset); in IterateValByMethodOffsetAndType() 96 void IterateInfoAndType(uint32_t methodOffset, const Callback &cb) const in IterateInfoAndType() argument 100 infos_[idx].IterateValByMethodOffset(methodOffset, type, cb); in IterateInfoAndType() 105 void IterateInfoByType(uint32_t methodOffset, Type type, const Callback &cb) const in IterateInfoByType() argument [all …]
|
| D | pgo_bc_info.cpp | 21 auto it = methodOffsetToValVec_.find(detail.methodOffset); in Record() 23 methodOffsetToValVec_[detail.methodOffset] = in Record() 66 uint32_t methodOffset = method->GetMethodId().GetOffset(); in Record() local 70 … Record(InfoDetail {recordName, methodOffset, bcIndex, bcOffset, cpIndex}, Type::OBJ_LITERAL); in Record() 73 … Record(InfoDetail {recordName, methodOffset, bcIndex, bcOffset, cpIndex}, Type::ARRAY_LITERAL); in Record() 75 Record(InfoDetail {recordName, methodOffset, bcIndex, bcOffset, 0}, Type::EMPTY_ARRAY); in Record() 77 Record(InfoDetail {recordName, methodOffset, bcIndex, bcOffset, 0}, Type::CALL_TARGET); in Record() 79 Record(InfoDetail {recordName, methodOffset, bcIndex, bcOffset, 0}, Type::CLASS); in Record() 81 Record(InfoDetail {recordName, methodOffset, bcIndex, bcOffset, 0}, Type::FUNCTION); in Record()
|
| D | bytecode_info_collector.h | 435 bool IsSkippedMethod(uint32_t methodOffset) const in IsSkippedMethod() argument 437 if (skippedMethods_.find(methodOffset) == skippedMethods_.end()) { in IsSkippedMethod() 448 void AddSkippedMethod(uint32_t methodOffset) in AddSkippedMethod() argument 450 skippedMethods_.insert(methodOffset); in AddSkippedMethod() 453 void EraseSkippedMethod(uint32_t methodOffset) in EraseSkippedMethod() argument 455 if (skippedMethods_.find(methodOffset) != skippedMethods_.end()) { in EraseSkippedMethod() 456 skippedMethods_.erase(methodOffset); in EraseSkippedMethod() 472 bool FindMethodOffsetToRecordName(uint32_t methodOffset) in FindMethodOffsetToRecordName() argument 474 return methodOffsetToRecordName_.find(methodOffset) != methodOffsetToRecordName_.end(); in FindMethodOffsetToRecordName() 477 void AddMethodOffsetToRecordName(uint32_t methodOffset, CString recordName) in AddMethodOffsetToRecordName() argument [all …]
|
| D | compilation_driver.h | 84 uint32_t methodOffset, in CompileMethod() argument 89 SetCurrentConstantPool(methodOffset); in CompileMethod() 90 cb(bytecodeInfo_.GetRecordName(index), methodName, methodLiteral, methodOffset, in CompileMethod() 181 void AddDependList(const CString &recordName, uint32_t methodOffset, in AddDependList() argument 191 auto &methodInfo = methodList.at(methodOffset); in AddDependList() 204 bool VerifyAndMarkCurMethod(uint32_t methodOffset, std::unordered_set<EntityId> &newMethodSet) in VerifyAndMarkCurMethod() argument 207 if (methodOffset == MethodInfo::DEFAULT_OUTMETHOD_OFFSET) { in VerifyAndMarkCurMethod() 212 auto iter = methodList.find(methodOffset); in VerifyAndMarkCurMethod() 223 panda_file::File::EntityId methodId(methodOffset); in VerifyAndMarkCurMethod() 269 uint32_t methodOffset = methodId.GetOffset(); in SearchForCompilation() local [all …]
|
| D | bytecode_info_collector.cpp | 110 auto methodOffset = methodId.GetOffset(); in ProcessClasses() local 113 jsPandaFile_->UpdateMainMethodIndex(methodOffset, recordName); in ProcessClasses() 132 auto it = processedMethod.find(methodOffset); in ProcessClasses() 136 recordName, methodOffset, classConstructIndexes); in ProcessClasses() 137 … processedMethod[methodOffset] = std::make_pair(methodPcInfos.size() - 1, methodOffset); in ProcessClasses() 144 SetMethodPcInfoIndex(methodOffset, processedMethod[methodOffset]); in ProcessClasses() 189 auto methodOffset = methodId.GetOffset(); in ProcessMethod() local 208 recordName, methodOffset, classConstructIndexes); in ProcessMethod() 209 processedMethod[methodOffset] = std::make_pair(methodPcInfos.size() - 1, methodOffset); in ProcessMethod() 215 SetMethodPcInfoIndex(methodOffset, processedMethod[methodOffset]); in ProcessMethod() [all …]
|
| D | type_recorder.cpp | 50 uint32_t methodOffset = fieldId.GetOffset(); in LoadTypes() local 51 TypeAnnotationExtractor annoExtractor(jsPandaFile, methodOffset); in LoadTypes() 55 &thisGT, tsManager, methodOffset](const int32_t bcIdx, const uint32_t typeId) { in LoadTypes() 60 TypeLocation loc(jsPandaFile, methodOffset, bcIdx); in LoadTypes() 75 auto methodIter = methodList.find(methodOffset); in LoadTypes() 157 uint32_t methodOffset = methodLiteral->GetMethodId().GetOffset(); in CreateTypesForPGO() local 159 …bcInfo->IterateInfoAndType(methodOffset, [this, &typeParser, methodOffset, &recordName, &jsPandaFi… in CreateTypesForPGO() 197 TypeLocation loc(jsPandaFile, methodOffset, bcIdx); in CreateTypesForPGO() 202 …STypeRef gt = typeParser.CreatePGOGT(TSTypeParser::PGOInfo { jsPandaFile, recordName, methodOffset, in CreateTypesForPGO() 214 uint32_t methodOffset = methodLiteral->GetMethodId().GetOffset(); in BindPgoTypeToGateType() local [all …]
|
| D | pass_manager.cpp | 57 uint32_t methodOffset, in Compile() 62 … LOG_COMPILER(INFO) << "JIT Compile Method Start: " << methodName << ", " << methodOffset << "\n"; in Compile() 71 tsManager->SetCurConstantPool(jsPandaFile, methodOffset); in Compile() 94 TimeScope timeScope("BytecodeToCircuit", methodName, methodOffset, log_); in Compile() 99 methodLiteral, methodOffset, vm_->GetNativeAreaAllocator(), decoder, passOptions_); in Compile() 219 uint32_t methodOffset, in Compile() 229 tsManager->SetCurConstantPool(jsPandaFile, methodOffset); in Compile() 253 TimeScope timeScope("BytecodeToCircuit", methodName, methodOffset, log_); in Compile() 258 … methodLiteral, methodOffset, vm_->GetNativeAreaAllocator(), decoder, passOptions_); in Compile()
|
| D | type_info_accessors.cpp | 333 auto methodOffset = acc_.TryGetMethodOffset(gate_); in GetAccessorFuncGT() local 334 auto prop = tsManager_->GetStringFromConstantPool(methodOffset, propIndex); in GetAccessorFuncGT() 343 auto methodOffset = acc_.TryGetMethodOffset(gate_); in GetAccessorPlr() local 344 auto prop = tsManager_->GetStringFromConstantPool(methodOffset, propIndex); in GetAccessorPlr() 381 uint32_t methodOffset = 0; in GetCallMethodId() local 383 methodOffset = GetFuncMethodOffsetFromPGO(); in GetCallMethodId() 384 if (methodOffset == base::PGO_POLY_INLINE_REP) { in GetCallMethodId() 385 methodOffset = 0; in GetCallMethodId() 386 return methodOffset; in GetCallMethodId() 389 if (methodOffset == 0) { in GetCallMethodId() [all …]
|
| D | ts_hcr_opt_pass.cpp | 95 auto methodOffset = acc_.TryGetMethodOffset(gate); in IsSingleCharString() local 96 JSTaggedValue str = GetStringFromCP(methodOffset, strId); in IsSingleCharString() 119 auto methodOffset = acc_.TryGetMethodOffset(gate); in ConvertConstSingleCharToInt32() local 120 JSTaggedValue str = tsManager_->GetStringFromConstantPool(methodOffset, strId); in ConvertConstSingleCharToInt32()
|
| D | aot_compiler_preprocessor.cpp | 211 uint32_t methodOffset = method.first; in GenerateGlobalTypes() local 212 tsManager->SetCurConstantPool(jsPandaFile, methodOffset); in GenerateGlobalTypes() 213 CString recordName = MethodLiteral::GetRecordName(jsPandaFile, EntityId(methodOffset)); in GenerateGlobalTypes() 214 auto methodLiteral = jsPandaFile->FindMethodLiteral(methodOffset); in GenerateGlobalTypes() 215 auto &methodInfo = methodList.at(methodOffset); in GenerateGlobalTypes() 221 bcInfo->IterateInfoByType(methodOffset, PGOBCInfo::Type::ARRAY_LITERAL, in GenerateGlobalTypes()
|
| D | ts_hcr_opt_pass.h | 50 JSTaggedValue GetStringFromCP(uint32_t methodOffset, uint32_t cpIdx) const in GetStringFromCP() argument 52 return tsManager_->GetStringFromConstantPool(methodOffset, cpIdx); in GetStringFromCP()
|
| D | ts_inline_lowering.cpp | 58 uint32_t methodOffset = 0; in GetInlinedMethodId() local 62 methodOffset = tsManager_->GetFuncMethodOffset(gt); in GetInlinedMethodId() 64 if (methodOffset == 0) { in GetInlinedMethodId() 67 methodOffset = pgoType.GetCallMethodId(); in GetInlinedMethodId() 70 acc_.UpdateMethodOffset(gate, methodOffset); in GetInlinedMethodId() 123 uint32_t methodOffset = info.GetCallMethodId(); in TryInline() local 124 if (methodOffset == 0 || ctx_->IsSkippedMethod(methodOffset)) { in TryInline() 127 if (IsRecursiveFunc(info, methodOffset)) { in TryInline() 130 inlinedMethod = ctx_->GetJSPandaFile()->FindMethodLiteral(methodOffset); in TryInline() 135 auto &methodInfo = bytecodeInfo.GetMethodList().at(methodOffset); in TryInline() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/pgo_type/ |
| D | pgo_type_location.h | 31 explicit PGOTypeLocation(const JSPandaFile *jsPandaFile, uint32_t methodOffset, in PGOTypeLocation() argument 33 … : abcName_(jsPandaFile->GetNormalizedFileDesc()), methodOffset_(methodOffset), bcIdx_(bcIdx) {} in PGOTypeLocation() 34 explicit PGOTypeLocation(const CString &abcName, uint32_t methodOffset, in PGOTypeLocation() argument 36 : abcName_(abcName), methodOffset_(methodOffset), bcIdx_(bcIdx) {} in PGOTypeLocation()
|
| D | pgo_type_parser.cpp | 26 const PGOHClassGenerator &generator, uint32_t methodOffset) in Parse() argument 31 bcInfo->IterateInfoByType(methodOffset, type_, in Parse() 32 [this, jsPandaFile, &typeRecorder, &generator, methodOffset]( in Parse() 39 PGOTypeLocation loc(jsPandaFile, methodOffset, bcIdx); in Parse() 234 collector.IterateAllMethods([this, jsPandaFile, &collector](uint32_t methodOffset) { in CreatePGOType() argument 235 PGOTypeRecorder typeRecorder(decoder_, jsPandaFile, methodOffset); in CreatePGOType() 238 parser->Parse(collector, typeRecorder, generator, methodOffset); in CreatePGOType()
|
| D | pgo_type_manager.cpp | 34 …TypeManager::GetConstantPoolIDByMethodOffset(const JSPandaFile *jsPandaFile, uint32_t methodOffset) in GetConstantPoolIDByMethodOffset() argument 37 panda_file::File::EntityId(methodOffset)); in GetConstantPoolIDByMethodOffset() 159 void PGOTypeManager::SetCurConstantPool(const JSPandaFile *jsPandaFile, uint32_t methodOffset) in SetCurConstantPool() argument 161 curCPID_ = GetConstantPoolIDByMethodOffset(jsPandaFile, methodOffset); in SetCurConstantPool()
|
| D | pgo_type_recorder.cpp | 26 const PGOProfilerDecoder &decoder, const JSPandaFile *jsPandaFile, uint32_t methodOffset) in PGOTypeRecorder() argument 40 const CString recordName = MethodLiteral::GetRecordName(jsPandaFile, EntityId(methodOffset)); in PGOTypeRecorder() 41 auto methodLiteral = jsPandaFile->FindMethodLiteral(methodOffset); in PGOTypeRecorder()
|
| D | pgo_type_manager.h | 28 …tic int32_t GetConstantPoolIDByMethodOffset(const JSPandaFile *jsPandaFile, uint32_t methodOffset); 38 void SetCurConstantPool(const JSPandaFile *jsPandaFile, uint32_t methodOffset);
|
| /arkcompiler/ets_runtime/ecmascript/compiler/aot_snapshot/ |
| D | snapshot_constantpool_data.cpp | 71 … auto methodOffset = JSHandle<JSFunction>(valueHandle)->GetCallTarget()->GetMethodId().GetOffset(); in CollectLiteralInfo() local 72 if (skippedMethods.find(methodOffset) != skippedMethods.end()) { in CollectLiteralInfo() 75 methodOffsetVec.emplace_back(methodOffset); in CollectLiteralInfo() 83 auto methodOffset = methodOffsetVec[i]; in CollectLiteralInfo() local 84 aotLiteralInfo->SetObjectToCache(thread_, i, JSTaggedValue(methodOffset)); in CollectLiteralInfo() 126 uint32_t methodOffset = cp->GetEntityId(data.constantPoolIdx_).GetOffset(); in StoreDataToGlobalData() local 134 ProfileType pt(abcId, methodOffset, ProfileType::Kind::ClassId, true); in StoreDataToGlobalData() 143 if (skippedMethods.find(methodOffset) == skippedMethods.end()) { in StoreDataToGlobalData() 144 aotLiteralInfo->SetObjectToCache(thread_, 0, JSTaggedValue(methodOffset)); in StoreDataToGlobalData() 252 uint32_t methodOffset = method->GetMethodId().GetOffset(); in Record() local [all …]
|
| D | snapshot_global_data.cpp | 50 uint32_t methodOffset = static_cast<uint32_t>(methodOffsetVal.GetInt()); in Resolve() local 53 << methodOffset << ") "; in Resolve() 55 AnFileInfo::FuncEntryIndexKey key = std::make_pair(name, methodOffset); in Resolve()
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/ |
| D | type_literal_extractor.cpp | 36 static uint32_t GetMethodAnnoOffset(const JSPandaFile *jsPandaFile, uint32_t methodOffset, const ch… in GetMethodAnnoOffset() argument 39 EntityId methodId(methodOffset); in GetMethodAnnoOffset() 231 …tionExtractor::TypeAnnotationExtractor(const JSPandaFile *jsPandaFile, const uint32_t methodOffset) in TypeAnnotationExtractor() argument 233 ProcessTypeAnnotation(jsPandaFile, methodOffset); in TypeAnnotationExtractor() 237 …tationExtractor::ProcessTypeAnnotation(const JSPandaFile *jsPandaFile, const uint32_t methodOffset) in ProcessTypeAnnotation() argument 239 uint32_t annoOffset = GetMethodAnnoOffset(jsPandaFile, methodOffset, TYPE_ANNO_ELEMENT_NAME); in ProcessTypeAnnotation() 336 uint32_t methodOffset = jsPandaFile->GetMainMethodIndex(recordName); in ProcessExportTable() local 337 uint32_t annoOffset = GetMethodAnnoOffset(jsPandaFile, methodOffset, name); in ProcessExportTable()
|
| /arkcompiler/ets_runtime/ecmascript/ts_types/ |
| D | global_type_info.h | 81 explicit TypeLocation(const JSPandaFile *jsPandaFile, uint32_t methodOffset, in TypeLocation() argument 83 : jsPandaFile_(jsPandaFile), methodOffset_(methodOffset), bcIdx_(bcIdx) {} in TypeLocation()
|
| D | ts_manager.h | 226 void PUBLIC_API SetFuncMethodOffset(GlobalTSTypeRef gt, uint32_t methodOffset); 324 inline void StoreNamespaceType(const uint32_t methodOffset, const kungfu::GateType type) in StoreNamespaceType() argument 326 methodOffsetToType_.insert(std::make_pair(methodOffset, type)); in StoreNamespaceType() 329 inline kungfu::GateType GetNamespaceObjType(const uint32_t methodOffset) const in GetNamespaceObjType() argument 331 ASSERT(HasInferredNamespaceType(methodOffset)); in GetNamespaceObjType() 332 return methodOffsetToType_.at(methodOffset); in GetNamespaceObjType() 335 inline bool HasInferredNamespaceType(const uint32_t methodOffset) const in HasInferredNamespaceType() argument 337 return methodOffsetToType_.find(methodOffset) != methodOffsetToType_.end(); in HasInferredNamespaceType() 494 void PUBLIC_API SetCurConstantPool(const JSPandaFile *jsPandaFile, uint32_t methodOffset); 496 … PUBLIC_API GetConstantPoolIDByMethodOffset(const JSPandaFile *jsPandaFile, uint32_t methodOffset);
|