/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | path_helper.cpp | 22 CString PathHelper::NormalizePath(const CString &fileName) in NormalizePath() argument 24 if (fileName.empty() || (fileName.find(DOUBLE_SLASH_TAG) == CString::npos && in NormalizePath() 25 fileName.find(CURRENT_DIREATORY_TAG) == CString::npos && in NormalizePath() 26 fileName[fileName.size() - 1] != SLASH_TAG)) { in NormalizePath() 27 return fileName; in NormalizePath() 31 size_t curr = fileName.find(SLASH_TAG); in NormalizePath() 36 CString elem = fileName.substr(prev, curr - prev); in NormalizePath() 44 curr = fileName in NormalizePath() 63 ResolveDirPath(const CString &fileName) ResolveDirPath() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
H A D | an_file_data_manager.cpp | 56 void AnFileDataManager::SafeDestroyAnData(const std::string &fileName) in SafeDestroyAnData() argument 59 std::string anBasename = JSFilePath::GetBaseName(fileName); in SafeDestroyAnData() 68 bool AnFileDataManager::SafeLoad(const std::string &fileName, Type type, [[maybe_unused]] std::function<bool in SafeLoad() argument 69 (std::string fileName, uint8_t **buff, size_t *buffSize)> cb) in SafeLoad() 76 return UnsafeLoadFromStub(fileName); in SafeLoad() 78 const std::shared_ptr<const AOTFileInfo> aotFileInfo = UnsafeFind(fileName); in SafeLoad() 83 return UnsafeLoadFromAOT(fileName, cb); in SafeLoad() 85 return UnsafeLoadFromAOT(fileName); in SafeLoad() 90 std::shared_ptr<AnFileInfo> AnFileDataManager::UnsafeFind(const std::string &fileName) const in UnsafeFind() 94 const auto iter = anFileNameToIndexMap_.find(fileName); in UnsafeFind() 102 UnsafeLoadFromStub(const std::string &fileName) UnsafeLoadFromStub() argument 125 UnsafeLoadFromAOTInternal(const std::string &fileName, std::shared_ptr<AnFileInfo> &info) UnsafeLoadFromAOTInternal() argument 133 UnsafeLoadFromAOT(const std::string &fileName) UnsafeLoadFromAOT() argument 145 UnsafeLoadFromAOT(const std::string &fileName, std::function<bool (std::string fileName, uint8_t **buff, size_t *buffSize)> cb) UnsafeLoadFromAOT() argument 158 UnSafeGetFileInfoIndex(const std::string &fileName) UnSafeGetFileInfoIndex() argument 167 SafeGetFileInfoIndex(const std::string &fileName) SafeGetFileInfoIndex() argument [all...] |
H A D | an_file_data_manager.h | 33 bool SafeLoad(const std::string &fileName, Type type, [[maybe_unused]] std::function<bool 34 (std::string fileName, uint8_t **buff, size_t *buffSize)> cb = nullptr); 35 uint32_t SafeGetFileInfoIndex(const std::string &fileName); 44 void SafeDestroyAnData(const std::string &fileName); 71 std::shared_ptr<AnFileInfo> UnsafeFind(const std::string &fileName) const; 72 bool UnsafeLoadFromAOTInternal(const std::string &fileName, std::shared_ptr<AnFileInfo> &info); 73 bool UnsafeLoadFromAOT(const std::string &fileName); 75 bool UnsafeLoadFromAOT(const std::string &fileName, 76 std::function<bool(std::string fileName, uint8_t **buff, size_t *buffSize)> cb); 78 bool UnsafeLoadFromStub(const std::string &fileName); [all...] |
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
H A D | pgo_profiler_manager.cpp | 43 for (const auto &fileName : apFileNames) { in MergeApFiles() 44 if (!base::StringHelper::EndsWith(fileName, ".ap")) { in MergeApFiles() 45 LOG_ECMA(ERROR) << "The file path (" << fileName << ") does not end with .ap"; in MergeApFiles() 48 PGOProfilerDecoder decoder(fileName, hotnessThreshold); in MergeApFiles() 50 LOG_ECMA(ERROR) << "Fail to load file path (" << fileName << "), skip it."; in MergeApFiles() 54 firstApFileName = fileName; in MergeApFiles() 56 if (!merger.VerifyPandaFileMatched(decoder.GetPandaFileInfos(), firstApFileName, fileName)) { in MergeApFiles() 61 LOG_ECMA(ERROR) << "The ap file (" << fileName << ") is not compatible with AOT version. skip it"; in MergeApFiles() 91 for (const auto &fileName : pandaFileNames) { in MergeApFiles() 92 PGOProfilerDecoder decoder(fileName, hotnessThreshol in MergeApFiles() [all...] |
/arkcompiler/ets_runtime/ecmascript/extractortool/src/ |
H A D | extractor.cpp | 80 bool Extractor::HasEntry(const std::string &fileName) const in HasEntry() 86 return zipFile_.HasEntry(fileName); in HasEntry() 100 bool Extractor::ExtractByName(const std::string &fileName, std::ostream &dest) const in ExtractByName() argument 105 if (!zipFile_.ExtractFile(fileName, dest)) { in ExtractByName() 111 bool Extractor::ExtractFile(const std::string &fileName, const std::string &targetPath) const in ExtractFile() argument 121 if ((!ExtractByName(fileName, fileStream)) || (!fileStream.good())) { in ExtractFile() 138 std::unique_ptr<FileMapper> Extractor::GetData(const std::string &fileName, bool) const in GetData() argument 140 std::string relativePath = GetRelativePath(fileName); in GetData() 144 std::shared_ptr<FileMapper> Extractor::GetSafeData(const std::string &fileName) in GetSafeData() argument 146 std::string relativePath = GetRelativePath(fileName); in GetSafeData() 154 GetMmapData(const std::string &fileName) GetMmapData() argument 169 ExtractToBufByName(const std::string &fileName, std::unique_ptr<uint8_t[]> &dataPtr, size_t &len) ExtractToBufByName() argument 176 GetFileInfo(const std::string &fileName, FileInfo &fileInfo) const GetFileInfo() argument [all...] |
H A D | extractor.h | 33 std::string fileName; member 53 * @param fileName Indicates the file name. 57 bool ExtractByName(const std::string &fileName, std::ostream &dest) const; 60 * @param fileName Indicates the file name. 64 bool ExtractFile(const std::string &fileName, const std::string &targetPath) const; 70 bool HasEntry(const std::string &fileName) const; 77 std::unique_ptr<FileMapper> GetData(const std::string &fileName, bool safeRegion = false) const; 83 std::unique_ptr<FileMapper> GetMmapData(const std::string &fileName); 88 bool GetFileInfo(const std::string &fileName, FileInfo &fileInfo) const; 90 bool IsHapCompress(const std::string &fileName) cons [all...] |
H A D | zip_file.cpp | 118 std::string fileName(fileLength, 0); in ParseOneEntry() 119 if (memcpy_s(&(fileName[0]), fileLength, entryPtr, fileLength) != EOK) { in ParseOneEntry() 124 currentEntry.fileName = fileName; in ParseOneEntry() 125 entriesMap_[fileName] = currentEntry; in ParseOneEntry() 126 AddEntryToTree(fileName); in ParseOneEntry() 131 void ZipFile::AddEntryToTree(const std::string &fileName) in AddEntryToTree() argument 136 while (cur < fileName.size() && fileName[cur] == FILE_SEPARATOR_CHAR) { in AddEntryToTree() 139 if (cur >= fileName in AddEntryToTree() 417 std::string fileName = buff.substr(sizeof(LocalHeader)); CheckCoherencyLocalHeader() local 634 CreateFileMapper(const std::string &fileName, FileMapperType type) const CreateFileMapper() argument 736 ExtractToBufByName(const std::string &fileName, std::unique_ptr<uint8_t[]> &dataPtr, size_t &len) const ExtractToBufByName() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/ |
H A D | js_pandafile_test.cpp | 77 const CString fileName = "test.pa"; in HWTEST_F_L0() local 78 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName); in HWTEST_F_L0() 87 const CString fileName = "test.pa"; in HWTEST_F_L0() local 88 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName); in HWTEST_F_L0() 98 const CString fileName = "test.pa"; in HWTEST_F_L0() local 99 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName); in HWTEST_F_L0() 111 const CString fileName = "test.pa"; in HWTEST_F_L0() local 112 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName); in HWTEST_F_L0() 127 const CString fileName = "test.pa"; in HWTEST_F_L0() local 128 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName); in HWTEST_F_L0() 161 const CString fileName = "test.pa"; HWTEST_F_L0() local 211 const CString fileName = "test.pa"; HWTEST_F_L0() local 244 const CString fileName = "test.pa"; HWTEST_F_L0() local 278 const CString fileName = "test.pa"; HWTEST_F_L0() local 293 const CString fileName = "test.pa"; HWTEST_F_L0() local 305 const CString fileName = "test.pa"; HWTEST_F_L0() local 318 CString fileName = "/data/storage/el1/bundle/entry/ets/modules.abc"; HWTEST_F_L0() local [all...] |
H A D | js_pandafile_executor_test.cpp | 61 const char *fileName = "__JSPandaFileExecutorTest1.abc"; in HWTEST_F_L0() local 73 std::shared_ptr<JSPandaFile> pf = pfManager->NewJSPandaFile(pfPtr.release(), CString(fileName)); in HWTEST_F_L0() 96 const char *fileName = "__JSPandaFileExecutorTest2.abc"; in HWTEST_F_L0() local 108 std::shared_ptr<JSPandaFile> pf = pfManager->NewJSPandaFile(pfPtr.release(), CString(fileName)); in HWTEST_F_L0() 123 JSPandaFileExecutor::ExecuteFromAbcFile(thread, CString(fileName), JSPandaFile::ENTRY_MAIN_FUNCTION); in HWTEST_F_L0() 127 std::shared_ptr<JSPandaFile> foundPf = pfManager->FindJSPandaFile(fileName); in HWTEST_F_L0() 133 const char *fileName = "__JSPandaFileExecutorTest3.abc"; in HWTEST_F_L0() local 145 std::shared_ptr<JSPandaFile> pf = pfManager->NewJSPandaFile(pfPtr.release(), CString(fileName)); in HWTEST_F_L0() 160 thread, (void *)data, sizeof(data), JSPandaFile::ENTRY_MAIN_FUNCTION, CString(fileName)); in HWTEST_F_L0() 164 std::shared_ptr<JSPandaFile> foundPf = pfManager->FindJSPandaFile(fileName); in HWTEST_F_L0() [all...] |
/arkcompiler/ets_runtime/ecmascript/require/tests/ |
H A D | js_cjs_module_cache_test.cpp | 66 JSHandle<JSTaggedValue> fileName(factory->NewFromUtf8("ark/js_runtime/test.js")); in HWTEST_F_L0() 68 CjsModule::InitializeModule(thread, module, fileName, dirName); in HWTEST_F_L0() 70 JSHandle<JSTaggedValue>::Cast(fileName), in HWTEST_F_L0() 73 newCacheTested->GetModule(fileName.GetTaggedValue())); in HWTEST_F_L0() 75 EXPECT_TRUE(newCacheTested->ContainsModule(fileName.GetTaggedValue())); in HWTEST_F_L0() 77 EXPECT_EQ(EcmaStringAccessor::Compare(vm, fileNameTested, JSHandle<EcmaString>(fileName)), 0); in HWTEST_F_L0() 93 JSHandle<JSTaggedValue> fileName(factory->NewFromUtf8("ark/js_runtime/test.js")); in HWTEST_F_L0() 96 CjsModule::InitializeModule(thread, module, fileName, dirName); in HWTEST_F_L0() 97 CjsModule::InitializeModule(thread, moduleWithNewExp, fileName, dirName); in HWTEST_F_L0() 100 JSHandle<JSTaggedValue>::Cast(fileName), in HWTEST_F_L0() [all...] |
H A D | js_cjs_manager_test.cpp | 67 JSHandle<JSTaggedValue> fileName(factory->NewFromUtf8("ark/js_runtime/test.js")); in HWTEST_F_L0() 69 CJSInfo cjsInfo(module, require, exports, fileName, dirName); in HWTEST_F_L0() 95 JSHandle<JSTaggedValue> fileName(factory->NewFromUtf8("ark/js_runtime/test.js")); in HWTEST_F_L0() 97 CJSInfo cjsInfo1(module1, require, exports, fileName, dirName); in HWTEST_F_L0() 102 CjsModule::InitializeModule(thread, module2, fileName, dirName); in HWTEST_F_L0() 107 CJSInfo cjsInfo2(module2, require, exports, fileName, dirName); in HWTEST_F_L0() 109 JSHandle<JSTaggedValue> test = CjsModule::SearchFromModuleCache(thread, fileName); in HWTEST_F_L0()
|
/arkcompiler/runtime_core/static_core/compiler/aot/ |
H A D | aot_manager.cpp | 23 Expected<bool, std::string> AotManager::AddFile(const std::string &fileName, RuntimeInterface *runtime, uint32_t gcType, in AddFile() argument 26 if (GetFile(fileName) != nullptr) { in AddFile() 27 LOG(DEBUG, AOT) << "Trying to add already existing AOT file: '" << fileName << "'"; in AddFile() 30 auto aotFile = AotFile::Open(fileName, gcType); in AddFile() 32 EVENT_AOT_MANAGER(fileName, events::AotManagerAction::OPEN_FAILED); in AddFile() 40 LOG(DEBUG, AOT) << "AOT file '" << fileName << "' has been loaded, code=" << aotFile.Value()->GetCode() in AddFile() 57 EVENT_AOT_MANAGER(fileName, events::AotManagerAction::ADDED); in AddFile() 61 const AotPandaFile *AotManager::FindPandaFile(const std::string &fileName) in FindPandaFile() argument 63 if (fileName.empty()) { in FindPandaFile() 66 auto it = filesMap_.find(fileName); in FindPandaFile() [all...] |
/arkcompiler/runtime_core/static_core/compiler/aot/aot_builder/ |
H A D | llvm_aot_builder.cpp | 21 const std::string &fileName) in GetSectionsAddresses() 25 return GetSectionsAddressesImpl<Arch::AARCH32>(cmdline, fileName); in GetSectionsAddresses() 27 return GetSectionsAddressesImpl<Arch::AARCH64>(cmdline, fileName); in GetSectionsAddresses() 29 return GetSectionsAddressesImpl<Arch::X86>(cmdline, fileName); in GetSectionsAddresses() 31 return GetSectionsAddressesImpl<Arch::X86_64>(cmdline, fileName); in GetSectionsAddresses() 40 const std::string &fileName) in GetSectionsAddressesImpl() 46 PrepareElfBuilder(builder, cmdline, fileName); in GetSectionsAddressesImpl() 47 builder.Build(fileName); in GetSectionsAddressesImpl() 20 GetSectionsAddresses(const std::string &cmdline, const std::string &fileName) GetSectionsAddresses() argument 39 GetSectionsAddressesImpl(const std::string &cmdline, const std::string &fileName) GetSectionsAddressesImpl() argument
|
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
H A D | file_stream.cpp | 30 FileStream::FileStream(const std::string &fileName) in FileStream() argument 32 Initialize(fileName); in FileStream() 52 void FileStream::Initialize(const std::string &fileName) in Initialize() argument 55 std::pair<bool, std::string> realPath = FilePathValid(fileName); in Initialize() 67 std::pair<bool, std::string> FileStream::FilePathValid(const std::string &fileName) in FilePathValid() argument 69 if (fileName.empty() || fileName.size() > PATH_MAX) { in FilePathValid() 73 auto result = realpath(fileName.c_str(), resolvedPath); in FilePathValid()
|
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/ |
H A D | debug_info_cache.cpp | 49 ASSERT_TRUE(pandasm::AsmEmitter::Emit(fileName, res.Value())); in SetUpTestSuite() 50 auto pf = panda_file::OpenPandaFile(fileName); in SetUpTestSuite() 82 static const std::string fileName; member in ark::tooling::inspector::test::DebugInfoCacheTest 90 const std::string DebugInfoCacheTest::fileName = "source.abc"; member in ark::tooling::inspector::test::DebugInfoCacheTest 101 ASSERT_NE(curr.find(PtLocation(fileName.c_str(), methodFoo->GetFileId(), 2U)), curr.end()); in TEST_F() 102 ASSERT_NE(curr.find(PtLocation(fileName.c_str(), methodFoo->GetFileId(), 3U)), curr.end()); in TEST_F() 103 ASSERT_NE(curr.find(PtLocation(fileName.c_str(), methodFoo->GetFileId(), 4U)), curr.end()); in TEST_F() 107 ASSERT_NE(curr.find(PtLocation(fileName.c_str(), methodFoo->GetFileId(), 5U)), curr.end()); in TEST_F() 108 ASSERT_NE(curr.find(PtLocation(fileName.c_str(), methodFoo->GetFileId(), 6U)), curr.end()); in TEST_F() 112 ASSERT_NE(curr.find(PtLocation(fileName in TEST_F() [all...] |
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | relayout_profiler.cpp | 31 PandaString fileName = file.first.substr(pos, file.first.length() - pos); in WriteProfileData() local 32 PandaString profileFileName = profileRecordRoot + fileName + ".txt"; in WriteProfileData() 69 void RelayoutProfiler::AddProfileItem(const std::string &fileName, const std::string &item, RelayoutItemType type) in AddProfileItem() argument 71 auto pandaFileName = ConvertToString(fileName); in AddProfileItem() 84 std::string fileName = in AddProfileClassItem() local 87 AddProfileItem(fileName, item, RelayoutProfiler::RelayoutItemType::CLASS_ITEM); in AddProfileClassItem() 92 std::string fileName = method->GetPandaFile()->GetFilename(); in AddProfileCodeItem() local 94 AddProfileItem(fileName, item, RelayoutProfiler::RelayoutItemType::CODE_ITEM); in AddProfileCodeItem()
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
H A D | compileQueue.cpp | 81 auto cacheFileIter = options_->cacheFiles.find(src_->fileName); in RetrieveProgramFromCacheFiles() 87 auto bufToHash = buffer + src_->fileName + src_->recordName + src_->sourcefile + src_->pkgName; in RetrieveProgramFromCacheFiles() 97 progsInfo_.insert({src_->fileName, cache}); in RetrieveProgramFromCacheFiles() 108 panda::Timer::timerStart(panda::EVENT_READ_INPUT_AND_CACHE, src_->fileName); in Run() 109 if (!src_->fileName.empty() && src_->isSourceMode) { in Run() 110 if (!util::Helpers::ReadFileToBuffer(src_->fileName, ss)) { in Run() 116 panda::Timer::timerEnd(panda::EVENT_READ_INPUT_AND_CACHE, src_->fileName); in Run() 120 panda::Timer::timerEnd(panda::EVENT_READ_INPUT_AND_CACHE, src_->fileName); in Run() 131 panda::Timer::timerStart(panda::EVENT_COMPILE_FILE, src_->fileName); in CompileProgram() 133 panda::Timer::timerEnd(panda::EVENT_COMPILE_FILE, src_->fileName); in CompileProgram() [all...] |
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
H A D | abc_buffer_cache.h | 50 void AddAbcBufferToCache(const CString &fileName, const void *buffer, size_t size, AbcBufferType bufferType) in AddAbcBufferToCache() argument 52 abcBufferMap_.emplace(fileName, AbcBufferInfo(const_cast<void *>(buffer), size, bufferType)); in AddAbcBufferToCache() 55 void DeleteAbcBufferFromCache(const CString &fileName) in DeleteAbcBufferFromCache() argument 57 auto iter = abcBufferMap_.find(fileName); in DeleteAbcBufferFromCache() 64 AbcBufferInfo FindJSPandaFileInAbcBufferCache(const CString &fileName) const in FindJSPandaFileInAbcBufferCache() 66 auto iter = abcBufferMap_.find(fileName); in FindJSPandaFileInAbcBufferCache()
|
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/ |
H A D | heap_tracker_first_test.cpp | 139 std::string fileName = "test.heaptimeline";
in HWTEST_F_L0() local 140 fstream outputString(fileName, std::ios::out);
in HWTEST_F_L0() 144 FileStream stream(fileName.c_str());
in HWTEST_F_L0() 149 fstream inputStream(fileName, std::ios::in);
in HWTEST_F_L0() 165 std::remove(fileName.c_str());
in HWTEST_F_L0() 193 std::string fileName = "test.heaptimeline";
in HWTEST_F_L0() local 194 fstream outputString(fileName, std::ios::out);
in HWTEST_F_L0() 198 FileStream stream(fileName.c_str());
in HWTEST_F_L0() 204 fstream inputStream(fileName, std::ios::in);
in HWTEST_F_L0() 221 std::remove(fileName in HWTEST_F_L0() 248 std::string fileName = "HeapTrackerTest1.heapsnapshot"; HWTEST_F_L0() local [all...] |
/arkcompiler/ets_runtime/ecmascript/ohos/ |
H A D | framework_helper.h | 61 bool IsFrameworkAbcFile(const std::string& fileName) const in IsFrameworkAbcFile() 63 return frameworkAbcFiles_.find(fileName) != frameworkAbcFiles_.end(); in IsFrameworkAbcFile() 75 std::string fileName = CompilerFrameworkAotPath_ + name; in FilePathInit() local 76 if (FileExist(fileName.c_str())) { in FilePathInit() 77 frameworkAbcFiles_.insert(fileName); in FilePathInit()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/ |
H A D | optimize_common.cpp | 100 std::string fileName; in GetFileName() local 102 fileName.append(filePreFix); in GetFileName() 103 fileName.append("-"); in GetFileName() 105 fileName.append(mirModule.GetFileName()); in GetFileName() 106 for (uint32 i = 0; i < fileName.length(); i++) { in GetFileName() 107 if (fileName[i] == ';' || fileName[i] == '/' || fileName[i] == '|') { in GetFileName() 108 fileName[i] = '_'; in GetFileName() 112 fileName in GetFileName() 231 std::string fileName = GetFileName(mod, (preFix + "-" + fname)); GenerateDot() local [all...] |
/arkcompiler/ets_runtime/test/fuzztest/snapshotserializedeserialize_fuzzer/ |
H A D | snapshotserializedeserialize_fuzzer.cpp | 42 const CString fileName = "snapshot";
in SnapshotSerializeDeserializeFuzzTest() local 45 snapshotSerialize.Serialize(*array, nullptr, fileName);
in SnapshotSerializeDeserializeFuzzTest() 48 snapshotDeserialize.Deserialize(SnapshotType::VM_ROOT, fileName);
in SnapshotSerializeDeserializeFuzzTest() 50 std::remove(fileName.c_str());
in SnapshotSerializeDeserializeFuzzTest()
|
/arkcompiler/ets_runtime/ecmascript/platform/unix/ |
H A D | file.cpp | 100 MemMap FileMap(const char *fileName, int flag, int prot, int64_t offset) in FileMap() argument 102 fd_t fd = open(fileName, flag); in FileMap() 104 LOG_ECMA(ERROR) << fileName << " file open failed"; in FileMap() 111 LOG_ECMA(ERROR) << fileName << " file is empty"; in FileMap() 120 MemMap FileMapForAlignAddress(const char *fileName, int flag, int prot, in FileMapForAlignAddress() argument 123 fd_t fd = open(fileName, flag); in FileMapForAlignAddress() 125 LOG_ECMA(ERROR) << fileName << " file open failed"; in FileMapForAlignAddress() 132 LOG_ECMA(ERROR) << fileName << " file is empty"; in FileMapForAlignAddress()
|
/arkcompiler/ets_runtime/ecmascript/snapshot/tests/ |
H A D | snapshot_test.cpp | 77 CString fileName = "snapshot"; in CompatibilityHelper() local 81 snapshotSerialize.Serialize(*array1, nullptr, fileName); in CompatibilityHelper() 89 EXPECT_EQ(snapshotDeserialize.Deserialize(SnapshotType::VM_ROOT, fileName), expected); in CompatibilityHelper() 99 std::remove(fileName.c_str()); in CompatibilityHelper() 132 CString fileName = "snapshot"; in HWTEST_F_L0() local 135 snapshotSerialize.Serialize(*constpool, nullptr, fileName); in HWTEST_F_L0() 138 snapshotDeserialize.Deserialize(SnapshotType::VM_ROOT, fileName); in HWTEST_F_L0() 161 std::remove(fileName.c_str()); in HWTEST_F_L0() 181 CString fileName = "snapshot"; in HWTEST_F_L0() local 184 snapshotSerialize.Serialize(*constpool, nullptr, fileName); in HWTEST_F_L0() 251 CString fileName = "builtins.snapshot"; HWTEST_F_L0() local 318 CString fileName = "snapshot"; HWTEST_F_L0() local [all...] |
/arkcompiler/ets_runtime/ecmascript/extractortool/tests/ |
H A D | zip_file_test.cpp | 59 void AddEntryToTree(const std::string &fileName) in AddEntryToTree() argument 61 return zipFile_.AddEntryToTree(fileName); in AddEntryToTree() 104 std::unique_ptr<FileMapper> CreateFileMapper(const std::string &fileName, FileMapperType type) const in CreateFileMapper() argument 106 return zipFile_.CreateFileMapper(fileName, type); in CreateFileMapper() 109 bool ExtractToBufByName(const std::string &fileName, std::unique_ptr<uint8_t[]> &dataPtr, size_t &len) const in ExtractToBufByName() argument 111 return zipFile_.ExtractToBufByName(fileName, dataPtr, len); in ExtractToBufByName() 190 const std::string fileName = "TestFile.zip"; in CreateTestFile() local 191 std::ofstream file(fileName); in CreateTestFile() 205 const char *fileName = "TestFile.zip"; in DeleteTestFile() local 206 if (std::remove(fileName) ! in DeleteTestFile() [all...] |