Home
last modified time | relevance | path

Searched refs:file (Results 1 - 25 of 306) sorted by relevance

12345678910>>...13

/arkcompiler/runtime_core/static_core/cross_values/
H A Dcross_values_getters_generator.rb4 # you may not use this file except in compliance with the License.
20 // Autogenerated file -- DO NOT EDIT!
38 File.open(output_file, "w") do |file|
39 file.puts $header
40 file.puts "namespace ark::cross_values {"
43 file.puts %<
49 file.puts " case Arch::#{File.basename(values_h, "_values_gen.h")}:\n"
50 file.puts " return cross_values::#{File.basename(values_h, "_values_gen.h")}::#{define[0]}_VAL;\n"
52 file.puts " default:\n"
53 file
[all...]
/arkcompiler/runtime_core/static_core/verification/cache/
H A Dresults_cache.cpp4 * you may not use this file except in compliance with the License.
23 #include "libpandabase/os/file.h"
52 using ark::os::file::Mode; in Initialize()
53 using ark::os::file::Open; in Initialize()
56 auto file = Open(filename, Mode::READONLY); in Initialize()
57 if (!file.IsValid()) { in Initialize()
58 file = Open(filename, Mode::READWRITECREATE); in Initialize()
60 if (!file.IsValid()) { in Initialize()
61 LOG(INFO, VERIFIER) << "Cannot open verification cache file '" << filename << "'"; in Initialize()
65 auto size = file in Initialize()
105 auto file = Open(impl_->filename, Mode::READWRITECREATE); Destroy() local
[all...]
/arkcompiler/runtime_core/libpandabase/tests/
H A Dunix_file_test.cpp4 * you may not use this file except in compliance with the License.
21 #include "libpandabase/os/file.h"
28 os::file::File file1 = os::file::Open("./test_openfile.txt", os::file::Mode::READONLY); in HWTEST()
31 os::file::File file2 = os::file::Open("./test_openfile.txt", os::file::Mode::READWRITE); in HWTEST()
34 os::file::File file3 = os::file in HWTEST()
[all...]
/arkcompiler/runtime_core/static_core/tests/cts-generator/runner/
H A Dresult.rb3 # you may not use this file except in compliance with the License.
29 def update_failed_compilation(output, file)
32 @@stats[:compilation_error][:files] << file
37 def update_failed_quickening(output, file)
40 @@stats[:quickening_error][:files] << file
45 def update_negative_passed_compilation(output, file)
48 @@stats[:compilation_error][:files] << file
53 def update_failed_negative_compilation(output, file)
56 @@stats[:passed][:files] << file
61 def update_compilation_passed(output, file)
[all...]
/arkcompiler/runtime_core/tests/cts-generator/runner/
H A Dresult.rb3 # you may not use this file except in compliance with the License.
29 def update_failed_compilation(output, file)
32 @@stats[:compilation_error][:files] << file
37 def update_failed_quickening(output, file)
40 @@stats[:quickening_error][:files] << file
45 def update_negative_passed_compilation(output, file)
48 @@stats[:compilation_error][:files] << file
53 def update_failed_negative_compilation(output, file)
56 @@stats[:passed][:files] << file
61 def update_compilation_passed(output, file)
[all...]
/arkcompiler/runtime_core/bytecode_optimizer/tests/
H A Dconstant_propagation_test.cpp4 * you may not use this file except in compliance with the License.
17 * you may not use this file except in compliance with the License.
64 bool CheckFunction(const std::string &file, const char *test_method_name, ExpectType before, ExpectType after, in CheckFunction() argument
69 graph_test_.TestBuildGraphFromFile(file, [test_method_name, before, after, strings, &status] in CheckFunction()
178 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; in HWTEST_F() local
181 EXPECT_TRUE(CheckFunction(file, test_method_name, in HWTEST_F()
193 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; in HWTEST_F() local
196 EXPECT_TRUE(CheckFunction(file, test_method_name, in HWTEST_F()
208 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; in HWTEST_F() local
211 EXPECT_TRUE(CheckFunction(file, test_method_nam in HWTEST_F()
223 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
238 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
253 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
268 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
283 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
298 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
313 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
327 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
342 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
357 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
372 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
387 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
402 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
417 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
433 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
470 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
485 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
500 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
515 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
531 std::string file = GRAPH_TEST_ABC_DIR "constantProgagation.abc"; HWTEST_F() local
[all...]
/arkcompiler/runtime_core/static_core/scripts/cmake-checker/
H A Dcmake_checker.py5 # you may not use this file except in compliance with the License.
72 for file in files:
73 if file == "CMakeLists.txt" or file.endswith(".cmake") and os.path.join(root, file) not in ignore_files:
74 cmake_files.append(os.path.join(root, file))
77 # Grep for function in each cmake file
78 for file in cmake_files:
79 with open(file, 'r') as f:
89 os.path.relpath(file, director
[all...]
/arkcompiler/runtime_core/static_core/irtoc/lang/
H A Doutput.rb5 # you may not use this file except in compliance with the License.
20 @@file = nil
23 def self.setup(file = nil)
24 @@file = file.nil? ? $stdout : File.open(file, 'w')
28 @@file.write line
32 @@file.write @@indent_str
33 @@file.puts line
/arkcompiler/ets_frontend/testTs/
H A Drun_testTs.py7 you may not use this file except in compliance with the License.
42 parser.add_argument('--file', metavar='FILE', help="File to test")
64 f'This file is outside the scope of validation : {filepath}\n')
70 print(f'Error : {filepath}.The file is empty')
73 def run_test(file, tool, flag=False):
74 path_list = file.split(os.sep)
76 file = "." + os.sep + file
77 out_file_path = file.replace(TEST_PATH, OUT_PATH).replace(TS_EXT, TXT_EXT)
78 temp_out_file_path = file
[all...]
/arkcompiler/runtime_core/static_core/verification/config/
H A Dconfig_load.cpp4 * you may not use this file except in compliance with the License.
32 #include "libpandabase/os/file.h"
62 using ark::os::file::Mode; in LoadConfig()
63 using ark::os::file::Open; in LoadConfig()
71 auto file = Open(filename, Mode::READONLY); in LoadConfig() local
72 if (!file.IsValid()) { in LoadConfig()
75 auto size = file.GetFileSize(); in LoadConfig()
77 file.Close(); in LoadConfig()
82 if (!file.ReadAll(text, *size)) { in LoadConfig()
83 file in LoadConfig()
[all...]
/arkcompiler/runtime_core/static_core/runtime/
H A Drelayout_profiler.cpp4 * you may not use this file except in compliance with the License.
29 for (auto &file : relayoutItems_) { in WriteProfileData()
30 auto pos = file.first.find_last_of('/') + 1; in WriteProfileData()
31 PandaString fileName = file.first.substr(pos, file.first.length() - pos); in WriteProfileData()
34 ark::os::unix::file::File profileFile = in WriteProfileData()
35 ark::os::file::Open(profileFileName, ark::os::file::Mode::READWRITECREATE); in WriteProfileData()
37 LOG(ERROR, RUNTIME) << "Cannot open the profile file " << profileFileName; in WriteProfileData()
40 ark::os::file in WriteProfileData()
[all...]
/arkcompiler/runtime_core/scripts/
H A Dgc_pause_stats.py5 # you may not use this file except in compliance with the License.
50 """Save md table in the file"""
51 with open(file_name, 'a') as file:
52 file.write(f"GC logs: {gc_log_path}\n\n")
53 file.write("| Parameter |")
56 file.write(f" {gc_type} |")
57 file.write("\n|:----|")
59 file.write(":---:|")
61 file.write(f"\n| {stat_type} |")
63 file
[all...]
/arkcompiler/runtime_core/platforms/unix/libpandabase/
H A Dnative_stack.cpp4 * you may not use this file except in compliance with the License.
21 #include "os/file.h"
27 panda::os::unix::file::File cmdfile = panda::os::file::Open(file_name, panda::os::file::Mode::READONLY); in ReadOsFile()
28 panda::os::file::FileHolder fholder(cmdfile); in ReadOsFile()
41 panda::os::unix::file::File myfile(fd); in WriterOsFile()
42 panda::os::file::FileHolder fholder(myfile); in WriterOsFile()
/arkcompiler/runtime_core/static_core/runtime/tooling/
H A Ddebug_inf.cpp4 * you may not use this file except in compliance with the License.
74 void DebugInf::AddCodeMetaInfo(const panda_file::File *file) in AddCodeMetaInfo() argument
77 ASSERT(file != nullptr); in AddCodeMetaInfo()
78 auto it = aexItemMap_.find(file->GetFilename()); in AddCodeMetaInfo()
83 PCodeItem *item = AddCodeMetaInfoImpl(&g_dexDebugDescriptor, {file->GetBase(), file->GetHeader()->fileSize}); in AddCodeMetaInfo()
84 aexItemMap_.emplace(file->GetFilename(), item); in AddCodeMetaInfo()
87 void DebugInf::DelCodeMetaInfo(const panda_file::File *file) in DelCodeMetaInfo() argument
90 ASSERT(file != nullptr); in DelCodeMetaInfo()
91 auto it = aexItemMap_.find(file in DelCodeMetaInfo()
150 DelCodeMetaInfoImpl(PCodeMetaInfo *metaInfo, const panda_file::File *file) DelCodeMetaInfoImpl() argument
[all...]
/arkcompiler/toolchain/build/misc/mac/
H A Dfind_sdk.py5 # found in the LICENSE file.
62 print(out, file=sys.stderr)
63 print(err, file=sys.stderr)
88 print('', file=sys.stderr)
90 file=sys.stderr)
91 print('', file=sys.stderr)
94 % min_sdk_version, file=sys.stderr)
97 file=sys.stderr)
98 print('', file=sys.stderr)
100 file
[all...]
/arkcompiler/ets_runtime/ecmascript/ohos/tests/
H A Dohos_test.cpp4 * you may not use this file except in compliance with the License.
28 #include "ecmascript/platform/file.h"
104 std::ofstream file(enableListName); in HWTEST_F_L0()
105 file << bundleScope << std::endl; in HWTEST_F_L0()
106 file << bundleScope1 << ":aot" << std::endl; in HWTEST_F_L0()
107 file << bundleScope2 << ":jit" << std::endl; in HWTEST_F_L0()
109 file.close(); in HWTEST_F_L0()
136 std::ofstream file(runtimeAp); in HWTEST_F_L0()
137 file.close(); in HWTEST_F_L0()
182 std::ofstream file(baselineA in HWTEST_F_L0()
[all...]
/arkcompiler/runtime_core/static_core/tests/cts-coverage-tool/lib/
H A Dspec.rb4 # you may not use this file except in compliance with the License.
48 @orphaned << { 'file' => f, 'error' => e, 'comment' => e.backtrace }
185 def process_test_file(testdir, file)
186 raw = read_test_data(File.join(testdir, file))
190 @orphaned << { 'file' => file, 'error' => 'Bad test format, expected array of titles', 'comment' => raw }
195 process_test_data(tg, file)
210 def process_test_data(test_group, file)
213 @orphaned << { 'file' => file, 'erro
[all...]
/arkcompiler/runtime_core/tests/cts-coverage-tool/lib/
H A Dspec.rb4 # you may not use this file except in compliance with the License.
48 @orphaned << { 'file' => f, 'error' => e, 'comment' => e.backtrace }
185 def process_test_file(testdir, file)
186 raw = read_test_data(File.join(testdir, file))
190 @orphaned << { 'file' => file, 'error' => 'Bad test format, expected array of titles', 'comment' => raw }
195 process_test_data(tg, file)
210 def process_test_data(test_group, file)
213 @orphaned << { 'file' => file, 'erro
[all...]
/arkcompiler/runtime_core/static_core/libpandafile/
H A Dfile.cpp4 * you may not use this file except in compliance with the License.
17 #include "file-inl.h"
18 #include "os/file.h"
50 // Name anonymous maps for perfing tools finding symbol file correctly.
54 os::file::Mode GetMode(panda_file::File::OpenMode openMode) in GetMode()
58 return os::file::Mode::READONLY; in GetMode()
62 return os::file::Mode::READWRITE; in GetMode()
64 return os::file::Mode::READONLY; in GetMode()
68 return os::file::Mode::WRITEONLY; in GetMode()
142 LOG(ERROR, PANDAFILE) << "Panda file ha in OpenPandaFileFromZipFile()
178 std::unique_ptr<const panda_file::File> file; HandleArchive() local
237 auto file = HandleArchive(zipfile, fp, location, entry, archiveFilename, openMode); OpenZipPandaFile() local
267 std::unique_ptr<const panda_file::File> file; OpenPandaFile() local
322 ClassIdxIterator(const File &file, const Span<const uint32_t> &span, size_t idx) ClassIdxIterator() argument
391 Begin(const File &file, const Span<const uint32_t> &span) Begin() argument
396 End(const File &file, const Span<const uint32_t> &span) End() argument
466 os::file::File file = os::file::Open(filename, mode); Open() local
504 auto file = os::file::File(fd); OpenUncompressedArchive() local
[all...]
/arkcompiler/runtime_core/libpandabase/os/
H A Dfile.h4 * you may not use this file except in compliance with the License.
22 #include "platforms/unix/libpandabase/file.h"
24 #include "platforms/windows/libpandabase//file.h"
31 namespace panda::os::file { namespace in panda::os
34 using File = panda::os::unix::file::File;
36 using File = panda::os::windows::file::File;
41 explicit FileHolder(File file) : file_(file) {} in FileHolder() argument
59 } // namespace panda::os::file
/arkcompiler/runtime_core/static_core/libpandabase/os/
H A Dfile.h4 * you may not use this file except in compliance with the License.
22 #include "platforms/unix/libpandabase/file.h"
24 #include "platforms/windows/libpandabase//file.h"
31 namespace ark::os::file { namespace in ark::os
34 using File = ark::os::unix::file::File;
36 using File = ark::os::windows::file::File;
41 explicit FileHolder(File file) : file_(file) {} in FileHolder() argument
59 } // namespace ark::os::file
/arkcompiler/runtime_core/static_core/runtime/asm_defines/
H A Ddefines_generator.rb4 # you may not use this file except in compliance with the License.
20 // Autogenerated file -- DO NOT EDIT!
27 File.open(output_file, "w") do |file|
28 file.puts HEADER
30 file.puts "// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)"
31 file.puts "#define #{define[0]} #{define[1]}"
36 abort "Failed: input file required!" if ARGV.size < 2
/arkcompiler/runtime_core/static_core/verification/util/
H A Dis_system.h4 * you may not use this file except in compliance with the License.
23 inline bool IsSystemFile(const panda_file::File &file) in IsSystemFile() argument
25 const std::string &name = file.GetFilename(); in IsSystemFile()
40 const auto *file = klass->GetPandaFile(); in IsSystemClass() local
41 if (file == nullptr) { in IsSystemClass()
44 return IsSystemFile(*file); in IsSystemClass()
/arkcompiler/ets_frontend/es2panda/test/benchmark/
H A Dutils.py7 you may not use this file except in compliance with the License.
40 for file in os.listdir(path):
41 file_path = os.path.join(path, file)
80 def remove_file(file):
81 if os.path.exists(file):
82 os.remove(file)
94 with open(file_list[i], "r") as file:
95 output_file.write(file.read())
147 for file in os.listdir(tests_dir_path):
148 del_file_paths.append(process_file(file, case_lis
[all...]
/arkcompiler/runtime_core/static_core/panda/
H A Dpanda.cpp4 * you may not use this file except in compliance with the License.
63 << " [OPTIONS] [file] [entrypoint] -- [arguments]" << std::endl; in PrintHelp()
70 const ark::PandArg<std::string> &file, const ark::PandArg<std::string> &entrypoint, in PrepareArguments()
78 if (file.GetValue().empty() || entrypoint.GetValue().empty() || help.GetValue()) { in PrepareArguments()
98 static void SetPandaFiles(RuntimeOptions &runtimeOptions, ark::PandArg<std::string> &file) in SetPandaFiles() argument
103 bootPandaFiles.push_back(file.GetValue()); in SetPandaFiles()
107 [&](auto &fileName) { return fileName == file.GetValue(); }); in SetPandaFiles()
109 pandaFiles.push_back(file.GetValue()); in SetPandaFiles()
129 ark::PandArg<std::string> &file, ark::PandArg<std::string> &entrypoint) in GetPandArgParser()
135 paParser.PushBackTail(&file); in GetPandArgParser()
69 PrepareArguments(ark::PandArgParser *paParser, const RuntimeOptions &runtimeOptions, const ark::PandArg<std::string> &file, const ark::PandArg<std::string> &entrypoint, const ark::PandArg<bool> &help) PrepareArguments() argument
128 GetPandArgParser(ark::PandArg<bool> &help, ark::PandArg<bool> &options, ark::PandArg<std::string> &file, ark::PandArg<std::string> &entrypoint) GetPandArgParser() argument
[all...]

Completed in 220 milliseconds

12345678910>>...13