Home
last modified time | relevance | path

Searched refs:hapPath (Results 1 - 20 of 20) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/extractortool/src/
H A Dextractor.cpp133 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 Dextractor.h75 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 Dsource_map.h73 void Init(const std::string& hapPath);
90 bool ReadSourceMapData(const std::string& hapPath, std::string& content);
H A Dsource_map.cpp54 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 Dfile_path_utils.h43 std::string GetLoadPath(const std::string& hapPath);
H A Dfile_path_utils.cpp443 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 Dohos_preload_app_info.h34 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 Dohos_pkg_args.h119 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 Dgetjspandafile_fuzzer.cpp49 std::string hapPath(data, data + size); in GetJSPandaFileFuzzTest()
62 runtimeOptions.SetHapPath(hapPath); in GetJSPandaFileFuzzTest()
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/
H A Djs_stackinfo.h85 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 Djs_stackinfo.cpp1390 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 Dextractor_test.cpp66 void DeleteExtractor(const std::string &hapPath) in DeleteExtractor() argument
68 return extractorUtil_.DeleteExtractor(hapPath); in DeleteExtractor()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
H A Djs_pandafile_manager.cpp531 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 Djs_pandafile.h116 void SetHapPath(const CString &hapPath) in SetHapPath() argument
118 hapPath_ = hapPath; in SetHapPath()
/arkcompiler/ets_runtime/ecmascript/module/
H A Dmodule_path_helper.h220 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 Daot_compiler_preprocessor.cpp504 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 Daot_file_manager.cpp147 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 Decma_vm.h107 using SearchHapPathCallBack = std::function<bool(const std::string moduleName, std::string &hapPath)>;
/arkcompiler/ets_runtime/ecmascript/napi/
H A Djsnapi_expo.cpp5051 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 Djsnapi_expo.h1733 std::string &hapPath)> cb);

Completed in 29 milliseconds