/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | js_pandafile.h | 163 uint32_t GetMainMethodIndex(const CString &recordName = ENTRY_FUNCTION_NAME) const 168 auto info = jsRecordInfo_.find(recordName); 172 LOG_ECMA(ERROR) << "can not get main method index: " << recordName; 176 … const CUnorderedMap<uint32_t, uint64_t> *GetConstpoolMapByReocrd(const CString &recordName) const in GetConstpoolMapByReocrd() argument 178 auto info = jsRecordInfo_.find(recordName); in GetConstpoolMapByReocrd() 182 LOG_FULL(FATAL) << "find entryPoint failed: " << recordName; in GetConstpoolMapByReocrd() 194 …void UpdateMainMethodIndex(uint32_t mainMethodIndex, const CString &recordName = ENTRY_FUNCTION_NA… 199 auto info = jsRecordInfo_.find(recordName); 208 int GetModuleRecordIdx(const CString &recordName = ENTRY_FUNCTION_NAME) const 213 auto info = jsRecordInfo_.find(recordName); [all …]
|
/arkcompiler/ets_runtime/ecmascript/ts_types/ |
D | ts_type_parser.h | 39 const CString &recordName; member 51 …GlobalTSTypeRef PUBLIC_API CreateGT(const JSPandaFile *jsPandaFile, const CString &recordName, uin… 74 …TSTypeRef GetAndStoreGT(const JSPandaFile *jsPandaFile, uint32_t typeId, const CString &recordName, 79 tsManager_->AddElementToIdGTMap(gId, gt, recordName); 93 const CString &recordName, GlobalTSTypeRef gt) in GetAndStoreImportGT() argument 96 tsManager_->AddElementToIdGTMap(gId, gt, recordName, true); in GetAndStoreImportGT() 145 …GlobalTSTypeRef ParseType(const JSPandaFile *jsPandaFile, const CString &recordName, uint32_t type… 149 GlobalTSTypeRef ResolveType(const JSPandaFile *jsPandaFile, const CString &recordName, 152 GlobalTSTypeRef ResolveImportType(const JSPandaFile *jsPandaFile, const CString &recordName, 155 GlobalTSTypeRef ParseIndexSigType(const JSPandaFile *jsPandaFile, const CString &recordName, [all …]
|
D | ts_type_parser.cpp | 47 GlobalTSTypeRef TSTypeParser::CreateGT(const JSPandaFile *jsPandaFile, const CString &recordName, u… in CreateGT() argument 66 return ParseType(jsPandaFile, recordName, typeId); in CreateGT() 82 GlobalTSTypeRef TSTypeParser::ParseType(const JSPandaFile *jsPandaFile, const CString &recordName, … in ParseType() argument 90 return ResolveType(jsPandaFile, recordName, &typeLiteralExtractor); in ParseType() 93 …nt32_t moduleId = tableGenerator_.TryGetModuleId(jsPandaFile->GetNormalizedFileDesc(), recordName); in ParseType() 96 << recordName << " will not be parsed and will be treated as any."; in ParseType() 97 return GetAndStoreGT(jsPandaFile, typeId, recordName); in ParseType() 100 …JSHandle<TSTypeTable> table = tableGenerator_.GetOrGenerateTSTypeTable(jsPandaFile, recordName, mo… in ParseType() 104 … << "The TSType with typeId " << typeId << " in the record " << recordName in ParseType() 106 return GetAndStoreGT(jsPandaFile, typeId, recordName); in ParseType() [all …]
|
D | ts_manager.h | 41 …const CString recordName {""}; // distinguish different files which are all merged to one abc file. 48 if (index == moduleInfo.index && recordName < moduleInfo.recordName) { 51 if (index == moduleInfo.index && recordName == moduleInfo.recordName && 400 const CString &recordName = "", bool isImportType = false) 409 …auto value = std::make_tuple(id.GetJSPandaFile()->GetNormalizedFileDesc(), recordName, id.GetTypeI… 434 inline void AddTypeToModuleVarGtMap(const JSPandaFile *jsPandaFile, const CString &recordName, in AddTypeToModuleVarGtMap() argument 437 ModuleInfo key = {jsPandaFile, recordName, index}; in AddTypeToModuleVarGtMap() 445 inline bool HasExportGT(const JSPandaFile *jsPandaFile, const CString &recordName, in HasExportGT() argument 448 ModuleInfo key = {jsPandaFile, recordName, index}; in HasExportGT() 452 …nline GlobalTSTypeRef GetGTFromModuleMap(const JSPandaFile *jsPandaFile, const CString &recordName, in GetGTFromModuleMap() argument [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | pgo_bc_info.cpp | 28 recordNameToValCount_[detail.recordName]++; in Record() 31 uint32_t PGOBCInfo::Info::GetPGOExtendGTCount(const CString &recordName) const in GetPGOExtendGTCount() 33 auto it = recordNameToValCount_.find(recordName); in GetPGOExtendGTCount() 46 uint32_t PGOBCInfo::GetPGOExtendGTCount(const CString &recordName) const in GetPGOExtendGTCount() 50 count += info.GetPGOExtendGTCount(recordName); in GetPGOExtendGTCount() 63 const CString &recordName, const MethodLiteral *method) in Record() argument 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() [all …]
|
D | type_recorder.cpp | 30 … TSManager *tsManager, const CString &recordName, PGOProfilerDecoder *decoder, in TypeRecorder() argument 37 if (jsPandaFile->HasTSTypes(recordName)) { in TypeRecorder() 38 LoadTypes(jsPandaFile, methodLiteral, tsManager, recordName); in TypeRecorder() 40 LoadTypesFromPGO(jsPandaFile, methodLiteral, recordName); in TypeRecorder() 41 CreateTypesForPGO(jsPandaFile, methodLiteral, tsManager, recordName); in TypeRecorder() 46 TSManager *tsManager, const CString &recordName) in LoadTypes() argument 52 …GlobalTSTypeRef funcGT = typeParser.CreateGT(jsPandaFile, recordName, annoExtractor.GetMethodTypeO… in LoadTypes() 54 annoExtractor.EnumerateInstsAndTypes([this, &typeParser, &jsPandaFile, &recordName, in LoadTypes() 56 GlobalTSTypeRef gt = typeParser.CreateGT(jsPandaFile, recordName, typeId); in LoadTypes() 80 GlobalTSTypeRef gt = typeParser.CreateGT(jsPandaFile, recordName, pair.second); in LoadTypes() [all …]
|
D | bytecode_info_collector.h | 462 void AddRecordName(const CString &recordName) in AddRecordName() argument 464 recordNames_.emplace_back(recordName); in AddRecordName() 477 void AddMethodOffsetToRecordName(uint32_t methodOffset, CString recordName) in AddMethodOffsetToRecordName() argument 479 methodOffsetToRecordName_.emplace(methodOffset, recordName); in AddMethodOffsetToRecordName() 519 bool HasExportIndexToRecord(const CString &recordName, uint32_t index) const in HasExportIndexToRecord() argument 521 auto iter = recordNameToExportInfo_.find(recordName); in HasExportIndexToRecord() 528 bool HasStarExportToRecord(const CString &recordName) const in HasStarExportToRecord() argument 530 auto iter = recordNameToExportInfo_.find(recordName); in HasStarExportToRecord() 537 void AddExportIndexToRecord(const CString &recordName, uint32_t index) in AddExportIndexToRecord() argument 539 auto iter = recordNameToExportInfo_.find(recordName); in AddExportIndexToRecord() [all …]
|
D | compilation_driver.cpp | 171 auto dfs = [this, &newMethodIds] (const CString &recordName, in UpdatePGO() 174 if (!jsPandaFile_->HasTSTypes(recordName)) { in UpdatePGO() 177 uint32_t mainMethodOffset = jsPandaFile_->GetMainMethodIndex(recordName); in UpdatePGO() 178 SearchForCompilation(recordName, oldIds, newMethodIds, mainMethodOffset, false); in UpdatePGO() 194 bool CompilationDriver::FilterMethod(const CString &recordName, const MethodLiteral *methodLiteral, in FilterMethod() argument 198 !pfDecoder_.Match(jsPandaFile_, recordName, methodLiteral->GetMethodId())) { in FilterMethod() 203 return !FilterOption(optionSelectMethods_, ConvertToStdString(recordName), methodName); in FilterMethod() 205 return FilterOption(optionSkipMethods_, ConvertToStdString(recordName), methodName); in FilterMethod() 236 std::string recordName = str.substr(posComma + 1, str.size()); in ParseOption() local 238 optionMap[recordName] = methodNameVec; in ParseOption() [all …]
|
D | compilation_driver.h | 50 void UpdateCompileQueue(const CString &recordName, EntityId resolvedMethod) in UpdateCompileQueue() argument 54 …if (pfDecoder_.Match(jsPandaFile_, recordName, resolvedMethod) && !resolvedMethodInfo.IsTypeInferA… in UpdateCompileQueue() 59 auto dfs = [this, &fullResolvedMethodSet, resolvedMethod] (const CString &recordName, in UpdateCompileQueue() 63 uint32_t mainMethodOffset = jsPandaFile_->GetMainMethodIndex(recordName); in UpdateCompileQueue() 64 SearchForCompilation(recordName, currentResolvedMethodSet, in UpdateCompileQueue() 69 pfDecoder_.Update(jsPandaFile_, recordName, dfs); in UpdateCompileQueue() 72 bytecodeInfo_.AddRecordName(recordName); in UpdateCompileQueue() 144 void AddResolvedMethod(const CString &recordName, uint32_t classLiteralOffset) in AddResolvedMethod() argument 154 UpdateCompileQueue(recordName, resolvedMethodId); in AddResolvedMethod() 181 void AddDependList(const CString &recordName, uint32_t methodOffset, in AddDependList() argument [all …]
|
D | bytecode_info_collector.cpp | 99 const CString recordName = JSPandaFile::ParseEntryPoint(desc); in ProcessClasses() local 101 &recordNames, &methodPcInfos, &recordName, in ProcessClasses() 113 jsPandaFile_->UpdateMainMethodIndex(methodOffset, recordName); in ProcessClasses() 114 recordNames.emplace_back(recordName); in ProcessClasses() 136 recordName, methodOffset, classConstructIndexes); in ProcessClasses() 146 pfDecoder_.MatchAndMarkMethod(jsPandaFile_, recordName, name.c_str(), methodId); in ProcessClasses() 179 const CString recordName = JSPandaFile::ParseEntryPoint(desc); in ProcessMethod() local 180 recordNames.emplace_back(recordName); in ProcessMethod() 208 recordName, methodOffset, classConstructIndexes); in ProcessMethod() 308 MethodLiteral *method, std::vector<std::string> &classNameVec, const CString &recordName, in CollectMethodPcsFromBC() argument [all …]
|
D | pass_manager.cpp | 54 cmpDriver_->CompileMethod(jsFunction, [this, &fileName] (const CString recordName, in Compile() 78 << "] recordName [" << recordName << "] log:" << "\033[0m"; in Compile() 80 bool hasTypes = jsPandaFile->HasTSTypes(recordName); in Compile() 82 LOG_COMPILER(INFO) << "record: " << recordName << " has no types"; in Compile() 91 passOptions_->EnableTypeLowering(), fullName, recordName, decoder, false, in Compile() 98 … data_ = new PassData(builder_, circuit_, ctx_, log_, fullName, &methodInfo, hasTypes, recordName, in Compile() 216 cmpDriver.Run([this, &fileName, &collector](const CString recordName, in Compile() 236 << "] recordName [" << recordName << "] log:" << "\033[0m"; in Compile() 238 bool hasTypes = jsPandaFile->HasTSTypes(recordName); in Compile() 240 LOG_COMPILER(INFO) << "record: " << recordName << " has no types"; in Compile() [all …]
|
D | type_recorder.h | 37 TSManager *tsManager, const CString &recordName, PGOProfilerDecoder *decoder, 52 TSManager *tsManager, const CString &recordName); 55 TSManager *tsManager, const CString &recordName); 58 const CString &recordName);
|
D | pgo_bc_info.h | 39 const CString &recordName; member 50 uint32_t GetPGOExtendGTCount(const CString &recordName) const; 90 uint32_t GetPGOExtendGTCount(const CString &recordName) const; 93 const CString &recordName, const MethodLiteral *method);
|
/arkcompiler/ets_frontend/ets2panda/varbinder/ |
D | recordTable.cpp | 66 util::UString recordName(recordTable_->program_->Allocator()); in FormRecordName() local 67 recordName.Append(packageName); in FormRecordName() 68 recordName.Append(compiler::Signatures::METHOD_SEPARATOR); in FormRecordName() 69 recordName.Append(recordIdent_->Name()); in FormRecordName() 70 return recordName.View(); in FormRecordName() 73 util::UString recordName(recordTable_->program_->Allocator()); in FormRecordName() local 74 recordName.Append(prev_->FormRecordName()); in FormRecordName() 75 recordName.Append(compiler::Signatures::METHOD_SEPARATOR); in FormRecordName() 76 recordName.Append(recordIdent_->Name()); in FormRecordName() 77 return recordName.View(); in FormRecordName()
|
/arkcompiler/ets_runtime/ecmascript/module/ |
D | module_path_helper.cpp | 22 CString &baseFileName, CString recordName, CString requestName) in ConcatFileNameWithMerge() argument 27 entryPoint = ParsePrefixBundle(thread, jsPandaFile, baseFileName, requestName, recordName); in ConcatFileNameWithMerge() 35 entryPoint = MakeNewRecord(jsPandaFile, baseFileName, recordName, requestName); in ConcatFileNameWithMerge() 42 entryPoint = ParseThirdPartyPackage(jsPandaFile, recordName, requestName); in ConcatFileNameWithMerge() 46 "'. RecordName : '" << recordName << "'. RequestName : '" << requestName << "'."; in ConcatFileNameWithMerge() 49 recordName + "'. Please check the target path."; in ConcatFileNameWithMerge() 118 CString ModulePathHelper::ParseUrl(EcmaVM *vm, const CString &recordName) in ParseUrl() argument 121 StringHelper::SplitString(recordName, vec, 0, SEGMENTS_LIMIT_TWO); in ParseUrl() 123 LOG_ECMA(DEBUG) << "ParseUrl SplitString filed, please check Url" << recordName; in ParseUrl() 149 …ybe_unused]] CString &baseFileName, CString moduleRequestName, [[maybe_unused]] CString recordName) in ParsePrefixBundle() argument [all …]
|
D | module_path_helper.h | 101 … CString &baseFileName, CString recordName, CString requestName); 104 static CString ParseUrl(EcmaVM *vm, const CString &recordName); 106 …be_unused]] CString &baseFileName, CString moduleRequestName, [[maybe_unused]] CString recordName); 108 const CString &recordName, const CString &requestName); 112 const CString &recordName); 113 static CString ParseOhpmPackage(const JSPandaFile *jsPandaFile, const CString &recordName, 115 static CString ParseThirdPartyPackage(const JSPandaFile *jsPandaFile, const CString &recordName, 117 static CString ParseThirdPartyPackage(const JSPandaFile *jsPandaFile, const CString &recordName, 186 inline static CString GetModuleName(const CString recordName) in GetModuleName() argument 188 size_t pos1 = recordName.find(PathHelper::SLASH_TAG); in GetModuleName() [all …]
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
D | pgo_profiler.cpp | 359 const CString& recordName, in UpdateExtraProfileTypeInfo() argument 372 recordName, in UpdateExtraProfileTypeInfo() 401 CString recordName = ConvertToString(recordNameValue); in HandlePGOPreDump() local 407 UpdateExtraProfileTypeInfo(abcId, recordName, methodId, current); in HandlePGOPreDump() 410 ProfileType recordType = GetRecordProfileType(abcId, recordName); in HandlePGOPreDump() 412 ProfileBytecode(abcId, recordName, methodValue); in HandlePGOPreDump() 444 CString recordName = ConvertToString(recordNameValue); in HandlePGODump() local 450 UpdateExtraProfileTypeInfo(abcId, recordName, methodId, current); in HandlePGODump() 453 ProfileType recordType = GetRecordProfileType(abcId, recordName); in HandlePGODump() 457 ProfileBytecode(abcId, recordName, methodValue); in HandlePGODump() [all …]
|
D | pgo_profiler.h | 108 void ProfileBytecode(ApEntityId abcId, const CString &recordName, JSTaggedValue value); 111 …void DumpICByName(ApEntityId abcId, const CString &recordName, EntityId methodId, int32_t bcOffset… 113 …void DumpICByValue(ApEntityId abcId, const CString &recordName, EntityId methodId, int32_t bcOffse… 116 …void DumpICByNameWithPoly(ApEntityId abcId, const CString &recordName, EntityId methodId, int32_t … 118 …void DumpICByValueWithPoly(ApEntityId abcId, const CString &recordName, EntityId methodId, int32_t… 121 …void DumpICByNameWithHandler(ApEntityId abcId, const CString &recordName, EntityId methodId, int32… 123 …void DumpICByValueWithHandler(ApEntityId abcId, const CString &recordName, EntityId methodId, int3… 127 …void DumpOpType(ApEntityId abcId, const CString &recordName, EntityId methodId, int32_t bcOffset, … 129 …void DumpDefineClass(ApEntityId abcId, const CString &recordName, EntityId methodId, int32_t bcOff… 132 …void DumpCreateObject(ApEntityId abcId, const CString &recordName, EntityId methodId, int32_t bcOf… [all …]
|
D | pgo_profiler_decoder.h | 42 …bool PUBLIC_API Match(const JSPandaFile *jsPandaFile, const CString &recordName, PGOMethodId metho… 91 void Update(const JSPandaFile *jsPandaFile, const CString &recordName, Callback callback) in Update() argument 96 recordSimpleInfos_->Update(GetNormalizedFileDesc(jsPandaFile), recordName, callback); in Update() 100 …void GetTypeInfo(const JSPandaFile *jsPandaFile, const CString &recordName, const MethodLiteral *m… in GetTypeInfo() argument 112 …return recordSimpleInfos_->GetTypeInfo(GetNormalizedFileDesc(jsPandaFile), recordName, methodName,… in GetTypeInfo() 115 …recordSimpleInfos_->GetTypeInfo(GetNormalizedFileDesc(jsPandaFile), recordName, methodName, callba… in GetTypeInfo() 118 …void MatchAndMarkMethod(const JSPandaFile *jsPandaFile, const CString &recordName, const char *met… in MatchAndMarkMethod() argument 124 …recordSimpleInfos_->MatchAndMarkMethod(GetNormalizedFileDesc(jsPandaFile), recordName, methodName,… in MatchAndMarkMethod()
|
D | pgo_profiler_info.h | 291 void ProcessToText(uint32_t threshold, const CString &recordName, std::ofstream &stream) const; 330 bool Update(const CString &recordName, Callback callback) in Update() argument 332 std::unordered_set<EntityId> newIds = callback(recordName, candidateSet_); in Update() 373 …void GetMismatchResult(const CString &recordName, uint32_t &totalMethodCount, uint32_t &mismatchMe… 567 bool Match(const CString &abcNormalizedDesc, const CString &recordName, EntityId methodId); 577 auto recordName = iter->first; in Update() local 579 methodIds->Update(recordName, callback); in Update() 584 void Update(const CString &abcNormalizedDesc, const CString &recordName, Callback callback) in Update() argument 590 auto iter = abcMethodIds->second.find(recordName); in Update() 592 iter->second->Update(recordName, callback); in Update() [all …]
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | path_helper.h | 59 inline static void AdaptOldIsaRecord(CString &recordName) in AdaptOldIsaRecord() argument 61 size_t pos = recordName.find(SLASH_TAG); in AdaptOldIsaRecord() 63 pos = recordName.find(SLASH_TAG, pos + 1); in AdaptOldIsaRecord() 65 recordName = recordName.substr(pos + 1); in AdaptOldIsaRecord()
|
/arkcompiler/ets_frontend/es2panda/util/ |
D | patchFix.h | 45 …l generateSymbolFile, bool generatePatch, PatchFixKind patchFixKind, const std::string &recordName, in PatchFix() argument 48 recordName_(recordName), in PatchFix() 74 …void ProcessModule(const std::string &recordName, std::vector<panda::pandasm::LiteralArray::Litera… 75 … void ProcessJsonContentRecord(const std::string &recordName, const std::string &jsonFileContent); 77 std::string recordName); 89 void DumpModuleInfo(const std::string &recordName, 91 void ValidateModuleInfo(const std::string &recordName, 93 void DumpJsonContentRecInfo(const std::string &recordName, const std::string &jsonFileContent); 94 …void ValidateJsonContentRecInfo(const std::string &recordName, const std::string &jsonFileContent);
|
D | patchFix.cpp | 47 void PatchFix::ProcessModule(const std::string &recordName, in ProcessModule() argument 51 DumpModuleInfo(recordName, moduleBuffer); in ProcessModule() 56 ValidateModuleInfo(recordName, moduleBuffer); in ProcessModule() 61 void PatchFix::ProcessJsonContentRecord(const std::string &recordName, const std::string &jsonFileC… in ProcessJsonContentRecord() argument 64 DumpJsonContentRecInfo(recordName, jsonFileContent); in ProcessJsonContentRecord() 69 ValidateJsonContentRecInfo(recordName, jsonFileContent); in ProcessJsonContentRecord() 74 void PatchFix::DumpModuleInfo(const std::string &recordName, in DumpModuleInfo() argument 78 ss << recordName << SymbolTable::SECOND_LEVEL_SEPERATOR; in DumpModuleInfo() 83 void PatchFix::ValidateModuleInfo(const std::string &recordName, in ValidateModuleInfo() argument 86 auto it = originModuleInfo_->find(recordName); in ValidateModuleInfo() [all …]
|
D | symbolTable.cpp | 48 void SymbolTable::ReadRecordHashFunctionNames(std::string recordName, std::string funcInternalName, in ReadRecordHashFunctionNames() argument 51 auto recordHashFunctionNames = originRecordHashFunctionNames_.find(recordName); in ReadRecordHashFunctionNames() 56 originRecordHashFunctionNames_.insert({recordName, functionIndexNameMap}); in ReadRecordHashFunctionNames() 63 originRecordHashFunctionNames_.insert({recordName, functionIndexNameMap}); in ReadRecordHashFunctionNames() 87 info.recordName = funcItems[0].substr(0, funcItems[0].find_last_of(".")); in ReadSymbolTable() 104 ReadRecordHashFunctionNames(info.recordName, info.funcInternalName, specialFuncIndex); in ReadSymbolTable()
|
/arkcompiler/ets_runtime/ecmascript/debugger/ |
D | hot_reload_manager.cpp | 74 for (const auto &[recordName, _] : recordInfos) { in ExtractPatch() 75 … auto mainMethodIndex = panda_file::File::EntityId(jsPandaFile->GetMainMethodIndex(recordName)); in ExtractPatch() 81 notificationMgr->LoadModuleEvent(jsPandaFile->GetJSPandaFileDesc(), recordName); in ExtractPatch()
|