Home
last modified time | relevance | path

Searched refs:dir (Results 1 - 25 of 36) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/platform/common/
H A Dfilesystem.cpp75 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 DmergeProgram.cpp71 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 DMakefile18 dir:
21 vmb: dir uninstall
31 tox: dir
/arkcompiler/ets_runtime/ecmascript/extractortool/tests/
H A Dzip_file_test.cpp79 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 Dspec_node.py27 self.dir: str = ""
61 if len(self.dir) > 0:
62 ret['test_dir'] = self.dir
H A Dspec_report.py171 node.dir = out_dir
210 dirs = self.__fmt_str(node.dir.replace("/", "\u200B/\u200B"))
/arkcompiler/ets_frontend/test262/
H A Drun_test262.py39 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 Dfunction.h126 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 Dbasic_block.rb57 def set_successor(dir, bb)
58 if dir
H A Dfunction.rb246 @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 Dir_builder_coverage.sh19 --binary-dir=*)
22 --root-dir=*)
H A Dbenchmark_coverage.sh19 --binary-dir=*)
22 --root-dir=*)
/arkcompiler/ets_frontend/ets2panda/util/
H A DimportPathManager.cpp101 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 Dstorage.cpp157 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 Dnative_stack.cpp110 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 Dextractor.cpp89 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 Dzip_file.cpp75 // 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 Dspectrac.rb36 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 Dspectrac.rb36 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 Dan_file_data_manager.h59 void SetDir(std::string dir) in SetDir() argument
61 anDir_ = std::move(dir); in SetDir()
/arkcompiler/ets_runtime/test/
H A Druntest.py303 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 Dcli_args_wrapper.py38 if name in dir(CliArgsWrapper.args):
/arkcompiler/ets_frontend/testTs/
H A Drun_testTs.py41 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 Dbuild-docs.sh48 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 Dobject.py51 for name, attr in [(name, getattr(self, name)) for name in dir(self) if not name.startswith("_")]

Completed in 12 milliseconds

12