/arkcompiler/ets_runtime/ecmascript/extractortool/src/ |
H A D | extractor.cpp | 133 bool Extractor::IsSameHap(const std::string& hapPath) const in IsSameHap() 135 return !hapPath_.empty() && !hapPath.empty() && hapPath_ == hapPath; in IsSameHap() 227 std::string ExtractorUtil::GetLoadFilePath(const std::string &hapPath) in GetLoadFilePath() argument 230 if (StringStartWith(hapPath, Constants::ABS_CODE_PATH, std::string(Constants::ABS_CODE_PATH).length())) { in GetLoadFilePath() 231 loadPath = GetLoadPath(hapPath); in GetLoadFilePath() 233 loadPath = hapPath; in GetLoadFilePath() 238 std::shared_ptr<Extractor> ExtractorUtil::GetExtractor(const std::string &hapPath, bool &newCreate, bool cache) in GetExtractor() argument 241 if (hapPath.empty()) { in GetExtractor() 246 auto mapIter = extractorMap_.find(hapPath); in GetExtractor() 264 DeleteExtractor(const std::string &hapPath) DeleteExtractor() argument [all...] |
H A D | extractor.h | 75 bool IsSameHap(const std::string& hapPath) const; 107 static std::string GetLoadFilePath(const std::string &hapPath); 108 static std::shared_ptr<Extractor> GetExtractor(const std::string &hapPath, bool &newCreate, bool cache = false); 109 static void DeleteExtractor(const std::string &hapPath);
|
H A D | source_map.h | 73 void Init(const std::string& hapPath); 90 bool ReadSourceMapData(const std::string& hapPath, std::string& content);
|
H A D | source_map.cpp | 54 bool SourceMap::ReadSourceMapData(const std::string& hapPath, std::string& content) in ReadSourceMapData() argument 56 if (hapPath.empty()) { in ReadSourceMapData() 61 ExtractorUtil::GetLoadFilePath(hapPath), newCreate); in ReadSourceMapData() 97 void SourceMap::Init(const std::string& hapPath) in Init() argument 101 if (ReadSourceMapData(hapPath, sourceMapData)) { in Init()
|
H A D | file_path_utils.h | 43 std::string GetLoadPath(const std::string& hapPath);
|
H A D | file_path_utils.cpp | 443 std::string GetLoadPath(const std::string& hapPath) in GetLoadPath() argument 446 std::string loadPath = std::regex_replace(hapPath, hapPattern, ""); in GetLoadPath()
|
/arkcompiler/ets_runtime/ecmascript/ohos/ |
H A D | ohos_preload_app_info.h | 34 static std::string GetPreloadAOTFileName(const std::string &hapPath, const std::string &moduleName) in GetPreloadAOTFileName() argument 43 if (hapPath.find(PRELOAD_PATH_PREFIX) != std::string::npos) { in GetPreloadAOTFileName() 44 folderEnd = hapPath.find_last_of('/'); in GetPreloadAOTFileName() 48 folderPath = hapPath.substr(0, folderEnd); in GetPreloadAOTFileName() 55 appPath = hapPath.substr(0, appEnd); in GetPreloadAOTFileName()
|
H A D | ohos_pkg_args.h | 119 std::string hapPath; in GetJSPandaFile() local 123 hapPath = GetPath(); in GetJSPandaFile() 128 hapPath = runtimeOptions.GetHapPath(); in GetJSPandaFile() 137 if (!RealPath(hapPath, realPath, false)) { in GetJSPandaFile()
|
/arkcompiler/ets_runtime/test/fuzztest/getjspandafile_fuzzer/ |
H A D | getjspandafile_fuzzer.cpp | 49 std::string hapPath(data, data + size); in GetJSPandaFileFuzzTest() 62 runtimeOptions.SetHapPath(hapPath); in GetJSPandaFileFuzzTest()
|
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/ |
H A D | js_stackinfo.h | 85 std::string hapPath;
member 87 JsFrameDebugInfo(EntityId methodId, uint32_t offset, std::string &hapPath, std::string &filePath)
in JsFrameDebugInfo() 88 : methodId(methodId), offset(offset), hapPath(hapPath), filePath(filePath) {}
in JsFrameDebugInfo() 144 void CreateSourceMap(const std::string &hapPath);
|
H A D | js_stackinfo.cpp | 1390 std::string ArkGetFileName(int pid, uintptr_t jsPandaFileAddr, std::string &hapPath) 1409 hapPath = ArkReadCStringFromAddr(pid, hapPathAddr); 1417 std::unique_ptr<uint8_t[]> ArkReadData([[maybe_unused]] const std::string &hapPath, 1425 ExtractorUtil::GetLoadFilePath(hapPath), newCreate); 1427 LOG_ECMA(ERROR) << "Ark read data failed, hapPath: " << hapPath; 1431 LOG_ECMA(ERROR) << "Ark read data failed, hap/hsp path: " << hapPath << ", file name: " << fileName; 1438 std::shared_ptr<JSPandaFile> OpenJSPandaFileByReadData(const std::string &hapPath, const std::string &fileName) 1441 auto data = ArkReadData(hapPath, fileName, dataSize); 1461 auto fileIter = jsPandaFileTable.find(JsFrameDebugInfos[i].hapPath); [all...] |
/arkcompiler/ets_runtime/ecmascript/extractortool/tests/ |
H A D | extractor_test.cpp | 66 void DeleteExtractor(const std::string &hapPath) in DeleteExtractor() argument 68 return extractorUtil_.DeleteExtractor(hapPath); in DeleteExtractor()
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
H A D | js_pandafile_manager.cpp | 531 std::string hapPath; in GenerateJSPandaFile() local 534 callback(moduleName, hapPath); in GenerateJSPandaFile() 536 << ", fileName:" << desc << ", hapPath: " << hapPath; in GenerateJSPandaFile() local 537 newJsPandaFile->SetHapPath(hapPath.c_str()); in GenerateJSPandaFile()
|
H A D | js_pandafile.h | 116 void SetHapPath(const CString &hapPath) in SetHapPath() argument 118 hapPath_ = hapPath; in SetHapPath()
|
/arkcompiler/ets_runtime/ecmascript/module/ |
H A D | module_path_helper.h | 220 CString hapPath = baseFileName.substr(startStrLen); in ParseHapPath() local 221 size_t pos = hapPath.find(MERGE_ABC_ETS_MODULES); in ParseHapPath() 223 return hapPath.substr(0, pos).c_str(); in ParseHapPath()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | aot_compiler_preprocessor.cpp | 504 std::string hapPath; in HasPreloadAotFile() local 507 hapPath = GetMainPkgArgs()->GetPath(); in HasPreloadAotFile() 510 std::string fileName = OhosPreloadAppInfo::GetPreloadAOTFileName(hapPath, moduleName); in HasPreloadAotFile()
|
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
H A D | aot_file_manager.cpp | 147 std::string hapPath = jsPandaFile->GetJSPandaFileHapPath().c_str(); in LoadAiFile() local 148 aiFilename = OhosPreloadAppInfo::GetPreloadAOTFileName(hapPath, moduleName) + FILE_EXTENSION_AI; in LoadAiFile()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | ecma_vm.h | 107 using SearchHapPathCallBack = std::function<bool(const std::string moduleName, std::string &hapPath)>;
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
H A D | jsnapi_expo.cpp | 5051 std::string hapPath = ""; in LoadAotFileInternal() local 5054 callback(moduleName, hapPath); in LoadAotFileInternal() 5056 aotFileName = ecmascript::OhosPreloadAppInfo::GetPreloadAOTFileName(hapPath, moduleName); in LoadAotFileInternal() 5616 std::function<bool(const std::string moduleName, std::string &hapPath)> cb) in SetSearchHapPathTracker()
|
/arkcompiler/ets_runtime/ecmascript/napi/include/ |
H A D | jsnapi_expo.h | 1733 std::string &hapPath)> cb);
|