/arkcompiler/ets_runtime/ecmascript/platform/common/ |
H A D | filesystem.cpp | 75 DIR* dir = opendir(path.c_str()); in RemoveAll() local 76 if (!dir) { in RemoveAll() 81 while ((entry = readdir(dir)) != nullptr) { in RemoveAll() 87 closedir(dir); in RemoveAll() 91 closedir(dir); in RemoveAll() 112 std::string dir = realPath.substr(0, index); in CreateEmptyFile() local 113 if (Exists(dir)) { in CreateEmptyFile() 114 LOG_FULL(INFO) << dir << " exists, skip creation"; in CreateEmptyFile() 116 LOG_FULL(INFO) << "creating folder " << dir; in CreateEmptyFile() 117 if (!CreateDirectory(dir)) { in CreateEmptyFile() [all...] |
/arkcompiler/ets_frontend/merge_abc/src/ |
H A D | mergeProgram.cpp | 71 dirent *dir = nullptr; 73 while ((dir = readdir(protoBin)) != nullptr) { 74 if ((!strncmp(dir->d_name, ".", 1)) || (!strncmp(dir->d_name, "..", 2))) { 77 if (dir->d_type == DT_DIR) { 78 std::string subDirName = pathPrefix + dir->d_name; 84 std::string fileName = pathPrefix + dir->d_name;
|
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/ |
H A D | Makefile | 18 dir: 21 vmb: dir uninstall 31 tox: dir
|
/arkcompiler/ets_runtime/ecmascript/extractortool/tests/ |
H A D | zip_file_test.cpp | 79 bool IsDirExist(const std::string &dir) const in IsDirExist() 81 return zipFile_.IsDirExist(dir); in IsDirExist() 288 std::string dir = "."; in HWTEST_F_L0() local 289 EXPECT_FALSE(zipFileFriend.IsDirExist(dir)); in HWTEST_F_L0() 290 dir = "path/to/nonexistent"; in HWTEST_F_L0() 291 EXPECT_FALSE(zipFileFriend.IsDirExist(dir)); in HWTEST_F_L0() 292 dir = "/"; in HWTEST_F_L0() 293 EXPECT_TRUE(zipFileFriend.IsDirExist(dir)); in HWTEST_F_L0()
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/reports/ |
H A D | spec_node.py | 27 self.dir: str = "" 61 if len(self.dir) > 0: 62 ret['test_dir'] = self.dir
|
H A D | spec_report.py | 171 node.dir = out_dir 210 dirs = self.__fmt_str(node.dir.replace("/", "\u200B/\u200B"))
|
/arkcompiler/ets_frontend/test262/ |
H A D | run_test262.py | 39 parser.add_argument('--dir', metavar='DIR', 114 parser.add_argument("--libs-dir", 338 if self.args.dir: 339 if TEST_ES5_DIR in self.args.dir: 341 elif TEST_ES2015_DIR in self.args.dir: 343 elif TEST_INTL_DIR in self.args.dir: 345 elif TEST_ES2021_DIR in self.args.dir: 347 elif TEST_ES2022_DIR in self.args.dir: 349 elif TEST_ES2023_DIR in self.args.dir: 351 elif TEST_OTHERTESTS_DIR in self.args.dir [all...] |
/arkcompiler/runtime_core/static_core/irtoc/backend/ |
H A D | function.h | 126 uint32_t AddSourceDir(std::string_view dir) in AddSourceDir() argument 128 auto it = std::find(sourceDirs_.begin(), sourceDirs_.end(), dir); in AddSourceDir() 132 sourceDirs_.emplace_back(dir); in AddSourceDir() 153 uint32_t GetSourceDirIndex(const char *dir) const in GetSourceDirIndex() 155 auto it = std::find(sourceDirs_.begin(), sourceDirs_.end(), dir); in GetSourceDirIndex()
|
/arkcompiler/runtime_core/static_core/irtoc/lang/ |
H A D | basic_block.rb | 57 def set_successor(dir, bb) 58 if dir
|
H A D | function.rb | 246 @source_dirs.each_with_index do |dir, index| 247 Output.println("uint32_t DIR_#{index} = AddSourceDir(\"#{dir}\");") 323 inst.debug_info.dir = add_source_dir(File.dirname(file_path)) 336 inst.debug_info.dir = add_source_dir(File.dirname(file_path)) 460 def add_source_dir(dir) 461 index = @source_dirs.index(dir) 463 @source_dirs << dir
|
/arkcompiler/runtime_core/static_core/compiler/tools/ |
H A D | ir_builder_coverage.sh | 19 --binary-dir=*) 22 --root-dir=*)
|
H A D | benchmark_coverage.sh | 19 --binary-dir=*) 22 --root-dir=*)
|
/arkcompiler/ets_frontend/ets2panda/util/ |
H A D | importPathManager.cpp | 101 DIR *dir = opendir(directoryPath.Mutf8().c_str()); in UnixWalkThroughDirectoryAndAddToParseList() local 102 if (dir == nullptr) { in UnixWalkThroughDirectoryAndAddToParseList() 107 while ((entry = readdir(dir)) != nullptr) { in UnixWalkThroughDirectoryAndAddToParseList() 122 closedir(dir); in UnixWalkThroughDirectoryAndAddToParseList()
|
/arkcompiler/runtime_core/static_core/dprof/libstorage/dprof/ |
H A D | storage.cpp | 157 UniqueDir dir(::opendir(storageDir_.c_str()), [](DIR *directory) { in ForEachApps() 162 if (dir.get() == nullptr) { in ForEachApps() 163 PLOG(FATAL, DPROF) << "opendir() failed, dir=" << storageDir_; in ForEachApps() 168 while ((ent = DoReadDir(dir.get())) != nullptr) { in ForEachApps()
|
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/ |
H A D | native_stack.cpp | 110 dirent *dir = nullptr; in InitKernelTidLists() local 111 while ((dir = readdir(task)) != nullptr) { in InitKernelTidLists() 113 auto tid = static_cast<pid_t>(strtol(dir->d_name, &dirEnd, FIND_TID)); in InitKernelTidLists()
|
/arkcompiler/ets_runtime/ecmascript/extractortool/src/ |
H A D | extractor.cpp | 89 bool Extractor::IsDirExist(const std::string &dir) const in IsDirExist() 94 if (dir.empty()) { in IsDirExist() 97 return zipFile_.IsDirExist(dir); in IsDirExist()
|
H A D | zip_file.cpp | 75 // central dir can't overlap end of central dir in CheckEndDir() 236 bool ZipFile::IsDirExist(const std::string &dir) const in IsDirExist() 238 if (dir.empty()) { in IsDirExist() 245 while (cur < dir.size() && dir[cur] == FILE_SEPARATOR_CHAR) { in IsDirExist() 248 if (cur >= dir.size()) { in IsDirExist() 251 auto next = dir.find_first_of(FILE_SEPARATOR_CHAR, cur); in IsDirExist() 252 auto nodeName = dir.substr(cur, next - cur); in IsDirExist()
|
/arkcompiler/runtime_core/static_core/tests/cts-coverage-tool/bin/ |
H A D | spectrac.rb | 36 def check_dir(dir) 37 raise OptionParser::InvalidOption, "Directory #{dir} not found." unless File.directory? File.expand_path(dir)
|
/arkcompiler/runtime_core/tests/cts-coverage-tool/bin/ |
H A D | spectrac.rb | 36 def check_dir(dir) 37 raise OptionParser::InvalidOption, "Directory #{dir} not found." unless File.directory? File.expand_path(dir)
|
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
H A D | an_file_data_manager.h | 59 void SetDir(std::string dir) in SetDir() argument 61 anDir_ = std::move(dir); in SetDir()
|
/arkcompiler/ets_runtime/test/ |
H A D | runtest.py | 303 dir = os.path.dirname(file) 304 out_case_dir = f'{dir}' 468 def find_file(self, dir, postfix_list): 470 for root, lists, files in os.walk(dir): 477 if os.path.isfile(dir): 479 found = dir.find(postfix) 480 if found == len(dir) - len(postfix): 481 result.append(dir)
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/options/ |
H A D | cli_args_wrapper.py | 38 if name in dir(CliArgsWrapper.args):
|
/arkcompiler/ets_frontend/testTs/ |
H A D | run_testTs.py | 41 parser.add_argument('--dir', metavar='DIR', help="Directory to test") 129 elif args.dir: 130 for root, dirs, files in os.walk(args.dir): 143 elif args.file is None and args.dir is None:
|
/arkcompiler/runtime_core/static_core/plugins/ets/doc/ |
H A D | build-docs.sh | 48 ARTIFACTS_DIR See --build-dir command line option. 54 --build-dir=[PATH] Path to build directory. Default: ${BUILD_DIR} 143 --build-dir=*)
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/mirrors/ |
H A D | object.py | 51 for name, attr in [(name, getattr(self, name)) for name in dir(self) if not name.startswith("_")]
|