/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | js_pandafile_manager.cpp | 46 …red_ptr<JSPandaFile> JSPandaFileManager::LoadJSPandaFile(JSThread *thread, const CString &filename, in LoadJSPandaFile() argument 53 auto pf = panda_file::OpenPandaFileOrZip(filename, panda_file::File::READ_WRITE); in LoadJSPandaFile() 55 LOG_ECMA(ERROR) << "open file " << filename << " error"; in LoadJSPandaFile() 58 jsPandaFile = FindJSPandaFileWithChecksum(filename, pf->GetHeader()->checksum); in LoadJSPandaFile() 60 jsPandaFile = FindJSPandaFileUnlocked(filename); in LoadJSPandaFile() 84 …bool getBuffer = resolveBufferCallback(ModulePathHelper::ParseHapPath(filename), &data, &dataSize); in LoadJSPandaFile() 104 pf = panda_file::OpenPandaFileOrZip(filename, panda_file::File::READ_WRITE); in LoadJSPandaFile() 108 LOG_ECMA(ERROR) << "open file " << filename << " error"; in LoadJSPandaFile() 112 …std::shared_ptr<JSPandaFile> jsPandaFile = GenerateJSPandaFile(thread, pf.release(), filename, ent… in LoadJSPandaFile() 122 …red_ptr<JSPandaFile> JSPandaFileManager::LoadJSPandaFile(JSThread *thread, const CString &filename, in LoadJSPandaFile() argument [all …]
|
D | js_pandafile_executor.h | 28 … static Expected<JSTaggedValue, bool> ExecuteFromAbcFile(JSThread *thread, const CString &filename, 32 … std::string_view entryPoint, const CString &filename = "", 35 … const CString &filename = "", bool needUpdate = false); 36 …<JSTaggedValue, bool> CommonExecuteBuffer(JSThread *thread, bool isBundle, const CString &filename, 44 … const CString &filename = "", bool needUpdate = false); 46 const CString &filename = "", 48 …static Expected<JSTaggedValue, bool> CommonExecuteBuffer(JSThread *thread, const CString &filename,
|
D | js_pandafile_manager.h | 36 …std::shared_ptr<JSPandaFile> LoadJSPandaFile(JSThread *thread, const CString &filename, std::strin… 39 …std::shared_ptr<JSPandaFile> LoadJSPandaFile(JSThread *thread, const CString &filename, std::strin… 43 std::shared_ptr<JSPandaFile> LoadJSPandaFileSecure(JSThread *thread, const CString &filename, 47 std::shared_ptr<JSPandaFile> OpenJSPandaFile(const CString &filename); 49 std::shared_ptr<JSPandaFile> OpenJSPandaFile(const CString &filename, const CString &desc); 51 …_ptr<JSPandaFile> OpenJSPandaFileFromBuffer(uint8_t *buffer, size_t size, const CString &filename); 79 std::shared_ptr<JSPandaFile> FindJSPandaFile(const CString &filename); 96 …std::shared_ptr<JSPandaFile> FindJSPandaFileWithChecksum(const CString &filename, uint32_t checksu… 97 std::shared_ptr<JSPandaFile> FindJSPandaFileUnlocked(const CString &filename); 99 void ObsoleteLoadedJSPandaFile(const CString &filename);
|
D | js_pandafile_executor.cpp | 35 …ggedValue, bool> JSPandaFileExecutor::ExecuteFromAbcFile(JSThread *thread, const CString &filename, in ExecuteFromAbcFile() argument 38 LOG_ECMA(DEBUG) << "JSPandaFileExecutor::ExecuteFromFile filename " << filename; in ExecuteFromAbcFile() 45 name = filename; in ExecuteFromAbcFile() 48 CString normalName = PathHelper::NormalizePath(filename); in ExecuteFromAbcFile() 63 name = filename; in ExecuteFromAbcFile() 119 …const void *buffer, size_t size, std::string_view entryPoint, const CString &filename, bool needUp… in ExecuteFromBuffer() argument 121 LOG_ECMA(DEBUG) << "JSPandaFileExecutor::ExecuteFromBuffer filename " << filename; in ExecuteFromBuffer() 123 CString normalName = PathHelper::NormalizePath(filename); in ExecuteFromBuffer() 150 JSThread *thread, const void *buffer, size_t size, const CString &filename, bool needUpdate) in ExecuteModuleBuffer() argument 152 LOG_ECMA(DEBUG) << "JSPandaFileExecutor::ExecuteModuleBuffer filename " << filename; in ExecuteModuleBuffer() [all …]
|
/arkcompiler/runtime_core/static_core/bytecode_optimizer/tests/benchmark/ |
D | compare.py | 69 for filename in old_res.keys(): 70 if not exists("error", old_res[filename]): 71 if not exists("error", new_res[filename]): 72 if exists("code_item section", new_res[filename]): 73 old_size = old_res[filename]["code_item section"] 74 new_size = new_res[filename]["code_item section"] 78 result[filename] = {"old_size": old_size, 92 failed_log_new[filename] = new_res[filename] 95 failed_log_old[filename] = old_res[filename]
|
/arkcompiler/runtime_core/bytecode_optimizer/tests/benchmark/ |
D | compare.py | 69 for filename in old_res.keys(): 70 if not exists("error", old_res[filename]): 71 if not exists("error", new_res[filename]): 72 if exists("code_item section", new_res[filename]): 73 old_size = old_res[filename]["code_item section"] 74 new_size = new_res[filename]["code_item section"] 78 result[filename] = {"old_size": old_size, 92 failed_log_new[filename] = new_res[filename] 95 failed_log_old[filename] = old_res[filename]
|
/arkcompiler/runtime_core/static_core/verification/cache/ |
D | results_cache.cpp | 29 std::string filename; member 35 : filename {std::move(fileName)}, verifiedOk {dataStart, dataEnd} in Impl() 47 void VerificationResultCache::Initialize(const std::string &filename) in Initialize() argument 56 auto file = Open(filename, Mode::READONLY); in Initialize() 58 file = Open(filename, Mode::READWRITECREATE); in Initialize() 61 LOG(INFO, VERIFIER) << "Cannot open verification cache file '" << filename << "'"; in Initialize() 87 …impl_ = new (mem::AllocatorAdapter<Impl>().allocate(1)) Impl {filename, data.cbegin(), data.cend()… in Initialize() 105 auto file = Open(impl_->filename, Mode::READWRITECREATE); in Destroy() 107 … LOG(INFO, VERIFIER) << "Cannot open verification cache file '" << impl_->filename << "'"; in Destroy() 111 … LOG(INFO, VERIFIER) << "Cannot clear verification cache file '" << impl_->filename << "'"; in Destroy() [all …]
|
/arkcompiler/ets_runtime/ecmascript/require/ |
D | js_cjs_module.cpp | 34 … JSHandle<JSTaggedValue> &filename, JSHandle<JSTaggedValue> &dirname) in InitializeModule() argument 43 filename.GetTaggedValue()); in InitializeModule() 44 module->SetFilename(thread, filename.GetTaggedValue()); in InitializeModule() 49 …STaggedValue> CjsModule::SearchFromModuleCache(JSThread *thread, JSHandle<JSTaggedValue> &filename) in SearchFromModuleCache() argument 61 if (moduleCache->ContainsModule(filename.GetTaggedValue())) { in SearchFromModuleCache() 63 … moduleCache->GetModule(filename.GetTaggedValue())); in SearchFromModuleCache() 75 …ule::PutIntoCache(JSThread *thread, JSHandle<CjsModule> &module, JSHandle<JSTaggedValue> &filename) in PutIntoCache() argument 88 …andle<CjsModuleCache> newCache = CjsModuleCache::PutIfAbsentAndReset(thread, moduleCache, filename, in PutIntoCache() 105 JSMutableHandle<JSTaggedValue> filename(thread, JSTaggedValue::Undefined()); in Load() local 108 filename.Update(ResolveFilenameFromNative(thread, dirname.GetTaggedValue(), in Load() [all …]
|
/arkcompiler/runtime_core/libziparchive/tests/ |
D | libziparchive_tests.cpp | 88 static void UnzipFileCheckDirectory(const char *archivename, char *filename, int level = Z_BEST_COM… in UnzipFileCheckDirectory() argument 90 (void)sprintf_s(filename, MAX_DIR_SIZE, "directory/"); in UnzipFileCheckDirectory() 100 if (LocateFile(zipfile, filename) != 0) { in UnzipFileCheckDirectory() 132 GTEST_COUT << "Filename: " << filename << ", Uncompressed size: " << uncompressed_length in UnzipFileCheckDirectory() 141 static void UnzipFileCheckTxt(const char *archivename, char *filename, const char *data, int N, cha… in UnzipFileCheckTxt() argument 145 (void)sprintf_s(filename, MAX_DIR_SIZE, "%d.txt", i); in UnzipFileCheckTxt() 156 if (LocateFile(zipfile, filename) != 0) { in UnzipFileCheckTxt() 197 GTEST_COUT << "Filename: " << filename << ", Uncompressed size: " << uncompressed_length in UnzipFileCheckTxt() 248 …GTEST_COUT << "Successfully extracted file " << filename << " from " << archivename << ", size is " in UnzipFileCheckTxt() 259 static void UnzipFileCheckPandaFile(const char *archivename, char *filename, std::vector<uint8_t> &… in UnzipFileCheckPandaFile() argument [all …]
|
/arkcompiler/runtime_core/static_core/libziparchive/tests/ |
D | libziparchive_tests.cpp | 98 static void UnzipFileCheckDirectory(const char *archivename, char *filename, int level = Z_BEST_COM… in UnzipFileCheckDirectory() argument 101 int ret = sprintf_s(filename, MAX_DIR_SIZE, "directory/"); in UnzipFileCheckDirectory() 114 if (LocateFile(zipfile, filename) != 0) { in UnzipFileCheckDirectory() 146 GTEST_COUT << "Filename: " << filename << ", Uncompressed size: " << uncompressedLength in UnzipFileCheckDirectory() 155 static void UnzipFileCheckTxt(const char *archivename, char *filename, const char *data, int n, cha… in UnzipFileCheckTxt() argument 160 ret = sprintf_s(filename, MAX_DIR_SIZE, "%u.txt", i); in UnzipFileCheckTxt() 178 if (LocateFile(zipfile, filename) != 0) { in UnzipFileCheckTxt() 219 GTEST_COUT << "Filename: " << filename << ", Uncompressed size: " << uncompressedLength in UnzipFileCheckTxt() 268 …GTEST_COUT << "Successfully extracted file " << filename << " from " << archivename << ", size is " in UnzipFileCheckTxt() 279 static void UnzipFileCheckPandaFile(const char *archivename, char *filename, std::vector<uint8_t> &… in UnzipFileCheckPandaFile() argument [all …]
|
/arkcompiler/runtime_core/static_core/irtoc/lang/ |
D | irtoc.rb | 131 def include_relative(filename) argument 132 fixed_filename = "#{File.basename(filename)}.fixed" 133 filename = "#{File.dirname(@current_script)}/#{filename}" 134 preprocess(filename, fixed_filename) 135 self.instance_eval File.open(fixed_filename).read, filename 142 def read_plugin(filename) argument 145 Options.plugins[filename].each do |full_filename| 153 def preprocess(filename, output_filename) argument 155 File.open(filename).readlines.each do |line| 158 filename = line_matches.captures[0] [all …]
|
/arkcompiler/runtime_core/tests/fuzztest/open_fuzzer/ |
D | open_fuzzer.cpp | 22 const char *filename = "__OpenFuzzTest_data.tmp"; in OpenFuzzTest() local 23 FILE *fp = fopen(filename, "w"); in OpenFuzzTest() 31 panda::panda_file::File::Open(filename); in OpenFuzzTest() 34 (void)remove(filename); in OpenFuzzTest()
|
/arkcompiler/runtime_core/static_core/tests/fuzztest/open_fuzzer/ |
D | open_fuzzer.cpp | 22 const char *filename = "__OpenFuzzTest_data.tmp"; in OpenFuzzTest() local 23 FILE *fp = fopen(filename, "w"); in OpenFuzzTest() 31 panda::panda_file::File::Open(filename); in OpenFuzzTest() 34 (void)remove(filename); in OpenFuzzTest()
|
/arkcompiler/runtime_core/static_core/libpandafile/ |
D | file.cpp | 264 const auto &filename = (tryDefault ? g_archiveFilenames : archiveFilename); in OpenPandaFile() local 265 LOG(ERROR, PANDAFILE) << "Invalid panda file '" << filename << "'"; in OpenPandaFile() 408 File::File(std::string filename, os::mem::ConstBytePtr &&base) in File() argument 410 filename_(std::move(filename)), in File() 463 std::unique_ptr<const File> File::Open(std::string_view filename, OpenMode openMode) in Open() argument 465 trace::ScopedTrace scopedTrace("Open panda file " + std::string(filename)); in Open() 467 os::file::File file = os::file::Open(filename, mode); in Open() 469 PLOG(ERROR, PANDAFILE) << "Failed to open panda file '" << filename << "'"; in Open() 478 PLOG(ERROR, PANDAFILE) << "Failed to get size of panda file '" << filename << "'"; in Open() 485 LOG(ERROR, PANDAFILE) << "Invalid panda file '" << filename << "' - has not header"; in Open() [all …]
|
/arkcompiler/runtime_core/tests/fuzztest/readosfile_fuzzer/ |
D | readosfile_fuzzer.cpp | 24 const char *filename = "__OpenFuzzTest_data.tmp"; in ReadOsFileFuzzTest() local 25 FILE *fp = fopen(filename, "w"); in ReadOsFileFuzzTest() 33 panda::os::unix::native_stack::ReadOsFile(filename, &result); in ReadOsFileFuzzTest() 36 (void)remove(filename); in ReadOsFileFuzzTest()
|
/arkcompiler/runtime_core/libpandafile/ |
D | file.cpp | 411 File::File(std::string filename, os::mem::ConstBytePtr &&base) in File() argument 413 FILENAME(std::move(filename)), in File() 468 std::unique_ptr<const File> File::Open(std::string_view filename, OpenMode open_mode) in Open() argument 470 trace::ScopedTrace scoped_trace("Open panda file " + std::string(filename)); in Open() 472 os::file::File file = os::file::Open(filename, mode); in Open() 474 PLOG(ERROR, PANDAFILE) << "Failed to open panda file '" << filename << "'"; in Open() 482 PLOG(ERROR, PANDAFILE) << "Failed to get size of panda file '" << filename << "'"; in Open() 488 LOG(ERROR, PANDAFILE) << "Invalid panda file '" << filename << "' - has not header"; in Open() 494 PLOG(ERROR, PANDAFILE) << "Failed to map panda file '" << filename << "'"; in Open() 498 if (!CheckHeader(ptr, filename)) { in Open() [all …]
|
/arkcompiler/runtime_core/static_core/runtime/profilesaver/ |
D | profile_saver.cpp | 237 const PandaString &filename = it.first; in TranverseAndCacheResolvedClassAndMethods() local 267 ProfileDumpInfo *info = GetOrAddCachedProfiledInfo(filename); in TranverseAndCacheResolvedClassAndMethods() 273 ProfileDumpInfo *ProfileSaver::GetOrAddCachedProfiledInfo(const PandaString &filename) in GetOrAddCachedProfiledInfo() argument 275 auto infoIt = profileCache_.find(filename); in GetOrAddCachedProfiledInfo() 278 auto ret = profileCache_.insert(std::make_pair(filename, ProfileDumpInfo())); in GetOrAddCachedProfiledInfo() 285 ProfileSaver::CntStats *ProfileSaver::GetOrAddCachedProfiledStatsInfo(const PandaString &filename) in GetOrAddCachedProfiledStatsInfo() argument 287 auto infoIt = statcache.find(filename); in GetOrAddCachedProfiledStatsInfo() 290 auto ret = statcache.insert(std::make_pair(filename, CntStats())); in GetOrAddCachedProfiledStatsInfo() 304 const PandaString &filename = it.first; in MergeAndDumpProfileData() local 306 LOG(INFO, RUNTIME) << " filename = " << filename; in MergeAndDumpProfileData() [all …]
|
/arkcompiler/runtime_core/tests/fuzztest/checkheader_fuzzer/ |
D | checkheader_fuzzer.cpp | 23 const char *filename = "__ChechHeaderFuzzTest_data.tmp"; in CheckHeaderFuzzTest() local 24 FILE *fp = fopen(filename, "w+"); in CheckHeaderFuzzTest() 35 panda::panda_file::CheckHeader(ptr, filename); in CheckHeaderFuzzTest() 37 (void)remove(filename); in CheckHeaderFuzzTest()
|
/arkcompiler/runtime_core/static_core/tests/fuzztest/checkheader_fuzzer/ |
D | checkheader_fuzzer.cpp | 23 const char *filename = "__ChechHeaderFuzzTest_data.tmp"; in CheckHeaderFuzzTest() local 24 FILE *fp = fopen(filename, "w+"); in CheckHeaderFuzzTest() 35 panda::panda_file::CheckHeader(ptr, filename); in CheckHeaderFuzzTest() 37 (void)remove(filename); in CheckHeaderFuzzTest()
|
/arkcompiler/runtime_core/static_core/plugins/ets/templates/stdlib/ |
D | array.sh | 51 filename="$GENPATH/Array.ets" 52 cat header.ets.j2 > "$filename" 60 jinja2 "-DT=$atype" "$template" >> "$filename" 61 echo "" >> "$filename"
|
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
D | an_file_info.cpp | 29 void AnFileInfo::Save(const std::string &filename, Triple triple) in Save() argument 32 if (!RealPath(filename, realPath, false)) { in Save() 51 bool AnFileInfo::Load(const std::string &filename) in Load() argument 54 if (!RealPath(filename, realPath, false)) { in Load() 55 LOG_COMPILER(ERROR) << "Can not load aot file from path [ " << filename << " ], " in Load() 90 LOG_COMPILER(INFO) << "loaded an file: " << filename.c_str(); in Load() 95 void AnFileInfo::TryRemoveAnFile(const char *filename) in TryRemoveAnFile() argument 97 if (!FileExist(filename)) { in TryRemoveAnFile() 100 if (Unlink(filename) == -1) { in TryRemoveAnFile() 101 LOG_COMPILER(ERROR) << "remove " << filename << " failed and errno is " << errno; in TryRemoveAnFile()
|
/arkcompiler/runtime_core/libziparchive/ |
D | zip_archive.cpp | 100 int LocateFile(ZipArchiveHandle &handle, const char *filename) in LocateFile() argument 102 int err = unzLocateFile2(handle, filename, 0); in LocateFile() 104 LOG(ERROR, ZIPARCHIVE) << filename << " is not found in the zipfile"; in LocateFile() 156 int CreateOrAddFileIntoZip(const char *zipname, const char *filename, const void *pbuf, size_t buf_… in CreateOrAddFileIntoZip() argument 166 int err = zipOpenNewFileInZip(zfile, filename, nullptr, nullptr, 0, nullptr, 0, nullptr, in CreateOrAddFileIntoZip() 169 …IPARCHIVE) << "zipOpenNewFileInZip failed!, zipname is" << zipname << ", filename is " << filename; in CreateOrAddFileIntoZip() 174 …IPARCHIVE) << "zipWriteInFileInZip failed!, zipname is" << zipname << ", filename is " << filename; in CreateOrAddFileIntoZip() 179 … ZIPARCHIVE) << "zipCloseFileInZip failed!, zipname is" << zipname << ", filename is " << filename; in CreateOrAddFileIntoZip()
|
/arkcompiler/runtime_core/static_core/libziparchive/ |
D | zip_archive.cpp | 100 int LocateFile(ZipArchiveHandle &handle, const char *filename) in LocateFile() argument 102 int err = unzLocateFile2(handle, filename, 0); in LocateFile() 104 LOG(ERROR, ZIPARCHIVE) << filename << " is not found in the zipfile"; in LocateFile() 156 int CreateOrAddFileIntoZip(const char *zipname, const char *filename, const void *pbuf, size_t bufS… in CreateOrAddFileIntoZip() argument 166 int err = zipOpenNewFileInZip(zfile, filename, nullptr, nullptr, 0, nullptr, 0, nullptr, in CreateOrAddFileIntoZip() 169 …IPARCHIVE) << "zipOpenNewFileInZip failed!, zipname is" << zipname << ", filename is " << filename; in CreateOrAddFileIntoZip() 174 …IPARCHIVE) << "zipWriteInFileInZip failed!, zipname is" << zipname << ", filename is " << filename; in CreateOrAddFileIntoZip() 179 … ZIPARCHIVE) << "zipCloseFileInZip failed!, zipname is" << zipname << ", filename is " << filename; in CreateOrAddFileIntoZip()
|
/arkcompiler/runtime_core/static_core/compiler/tests/ |
D | class_hash_table_test.cpp | 177 std::string filename = os::GetAbsolutePath(aotFname.GetFileName()); in TEST_F() local 178 auto aotFileRet = AotFile::Open(filename, 0U, true); in TEST_F() 224 std::string filename = os::GetAbsolutePath(aotFname.GetFileName()); in TEST_F() local 225 auto res = os::exec::Exec(GetAotdumpFile(), "--show-code=disasm", filename.c_str()); in TEST_F() 256 std::string filename = os::GetAbsolutePath(aotFname.GetFileName()); in TEST_F() local 257 auto aotFileRet = AotFile::Open(filename, 0U, true); in TEST_F() 294 std::string filename = os::GetAbsolutePath(pandaFname.GetFileName()); in TEST_F() local 295 auto res = FileManager::LoadAbcFile(filename, panda_file::File::READ_ONLY); in TEST_F() 299 …Runtime::GetCurrent()->GetClassLinker()->EnumeratePandaFiles([&pfPtr, filename](const panda_file::… in TEST_F() 300 if (pf.GetFilename() == filename) { in TEST_F() [all …]
|
/arkcompiler/runtime_core/compiler/tests/ |
D | class_hash_table_test.cpp | 177 std::string filename = os::GetAbsolutePath(aot_fname.GetFileName()); in TEST_F() local 178 auto aot_file_ret = AotFile::Open(filename, 0, true); in TEST_F() 224 std::string filename = os::GetAbsolutePath(aot_fname.GetFileName()); in TEST_F() local 225 auto res = os::exec::Exec(GetAotdumpFile(), "--show-code=disasm", filename.c_str()); in TEST_F() 256 std::string filename = os::GetAbsolutePath(aot_fname.GetFileName()); in TEST_F() local 257 auto aot_file_ret = AotFile::Open(filename, 0, true); in TEST_F() 294 std::string filename = os::GetAbsolutePath(panda_fname.GetFileName()); in TEST_F() local 295 auto res = FileManager::LoadAbcFile(filename, panda_file::File::READ_ONLY); in TEST_F() 299 …Runtime::GetCurrent()->GetClassLinker()->EnumeratePandaFiles([&pf_ptr, filename](const panda_file:… in TEST_F() 300 if (pf.GetFilename() == filename) { in TEST_F() [all …]
|