/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | file_path_helper_test.cpp | 55 std::string realPath; in HWTEST_F_L0() local 56 bool result = RealPath(filePath, realPath, false); in HWTEST_F_L0() 60 stream.open(realPath, std::ios::out); in HWTEST_F_L0() 62 EXPECT_TRUE(std::fopen(realPath.c_str(), "r") != nullptr); in HWTEST_F_L0() 67 std::remove(realPath.c_str()); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
D | pgo_profiler_decoder.cpp | 131 std::string realPath; in LoadAPBinaryFile() local 132 if (!RealPath(inPath_, realPath)) { in LoadAPBinaryFile() 137 if (realPath.compare(realPath.length() - endString.length(), endString.length(), endString)) { in LoadAPBinaryFile() 138 LOG_ECMA(ERROR) << "The file path( " << realPath << ") does not end with .ap"; in LoadAPBinaryFile() 141 LOG_ECMA(INFO) << "Load profiler from file:" << realPath; in LoadAPBinaryFile() 142 fileMapAddr_ = FileMap(realPath.c_str(), FILE_RDONLY, prot); in LoadAPBinaryFile()
|
D | pgo_profiler_encoder.cpp | 228 std::string realPath; in LoadAPTextFile() local 229 if (!RealPath(inPath, realPath)) { in LoadAPTextFile() 233 std::ifstream fileStream(realPath.c_str()); in LoadAPTextFile()
|
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/ |
D | snapshot.cpp | 50 std::string realPath; in Serialize() local 51 if (!RealPath(std::string(fileName), realPath, false)) { in Serialize() 54 std::fstream writer(realPath.c_str(), std::ios::out | std::ios::binary | std::ios::trunc); in Serialize() 78 std::string realPath; in Serialize() local 79 if (!RealPath(std::string(fileName), realPath, false)) { in Serialize() 82 std::fstream writer(realPath.c_str(), std::ios::out | std::ios::binary | std::ios::trunc); in Serialize() 105 std::string realPath; in SerializeBuiltins() local 106 if (!RealPath(std::string(fileName), realPath, false)) { in SerializeBuiltins() 109 std::fstream write(realPath.c_str(), std::ios::out | std::ios::binary | std::ios::app); in SerializeBuiltins() 142 std::string realPath; in Deserialize() local [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
D | an_file_info.cpp | 30 std::string realPath; in Save() local 31 if (!RealPath(filename, realPath, false)) { in Save() 34 const char *rawPath = realPath.c_str(); in Save() 52 std::string realPath; in Load() local 53 if (!RealPath(filename, realPath, false)) { in Load() 59 fileMapMem_ = FileMap(realPath.c_str(), FILE_RDONLY, PAGE_PROT_READ); in Load()
|
D | stub_file_info.cpp | 30 std::string realPath; in Save() local 31 if (!RealPath(filename, realPath, false)) { in Save() 35 std::ofstream file(realPath.c_str(), std::ofstream::binary); in Save() 62 std::string realPath; in MmapLoad() local 63 if (!RealPath(filename, realPath, false)) { in MmapLoad() 69 fileMapMem_ = FileMap(realPath.c_str(), FILE_RDONLY, PAGE_PROT_READ); in MmapLoad()
|
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
D | file_stream.cpp | 55 std::pair<bool, std::string> realPath = FilePathValid(fileName); in Initialize() local 56 if (!realPath.first) { in Initialize() 61 fileStream_.open(realPath.second.c_str(), std::ios::out); in Initialize()
|
/arkcompiler/ets_runtime/ecmascript/platform/unix/ |
D | file.cpp | 36 bool RealPath(const std::string &path, std::string &realPath, bool readOnly) in RealPath() argument 46 realPath = path; in RealPath() 52 realPath = std::string(buffer); in RealPath()
|
/arkcompiler/ets_runtime/ecmascript/platform/windows/ |
D | file.cpp | 48 bool RealPath(const std::string &path, std::string &realPath, [[maybe_unused]] bool readOnly) in RealPath() argument 50 realPath = ""; in RealPath() 60 realPath = std::string(buffer); in RealPath()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | aot_compiler.cpp | 62 std::string realPath; in CreateAndVerifyJSPandaFile() local 63 if (!RealPath(hapPath, realPath, false)) { in CreateAndVerifyJSPandaFile() 67 MemMap fileMapMem = FileMap(realPath.c_str(), FILE_RDONLY, PAGE_PROT_READ); in CreateAndVerifyJSPandaFile()
|
D | file_generators.cpp | 406 std::string realPath; in CreateDirIfNotExist() local 407 if (!panda::ecmascript::RealPath(filename, realPath, false)) { in CreateDirIfNotExist() 410 auto index = realPath.find_last_of('/'); in CreateDirIfNotExist() 414 std::string path = realPath.substr(0, index); in CreateDirIfNotExist()
|
/arkcompiler/ets_runtime/ecmascript/platform/ |
D | file.h | 66 bool RealPath(const std::string &path, std::string &realPath, bool readOnly = true);
|
/arkcompiler/ets_frontend/legacy_bin/api8/src/ |
D | index.js | 2 …realPath),a),(n||(n=new e.Map)).set(s,o))},setSymlinkedDirectoryFromSymlinkedFile:function(n,i){th… property
|