/arkcompiler/runtime_core/static_core/cross_values/ |
D | cross_values_getters_generator.rb | 38 File.open(output_file, "w") do |file| 39 file.puts $header 40 file.puts "namespace panda::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[… 52 file.puts " default:\n" 53 …file.puts " LOG(FATAL, COMMON) << \"No cross-values generated for \" << GetStringFromAr… 54 file.puts " UNREACHABLE();\n" 55 file.puts " }\n" [all …]
|
/arkcompiler/runtime_core/tests/cts-coverage-tool/lib/ |
D | spec.rb | 185 def process_test_file(testdir, file) argument 186 raw = read_test_data(File.join(testdir, file)) 190 …@orphaned << { 'file' => file, 'error' => 'Bad test format, expected array of titles', 'comment' =… 195 process_test_data(tg, file) 210 def process_test_data(test_group, file) argument 213 …@orphaned << { 'file' => file, 'error' => 'Group with given title not found in the ISA', 'comment'… 217 assertions = proc_test_instructions(test_group, spec_group, file) + 218 proc_test_descriptions(test_group, spec_group, file) + 219 proc_test_exceptions(test_group, spec_group, file) + 220 proc_test_verifications(test_group, spec_group, file) [all …]
|
/arkcompiler/runtime_core/static_core/tests/cts-coverage-tool/lib/ |
D | spec.rb | 185 def process_test_file(testdir, file) argument 186 raw = read_test_data(File.join(testdir, file)) 190 …@orphaned << { 'file' => file, 'error' => 'Bad test format, expected array of titles', 'comment' =… 195 process_test_data(tg, file) 210 def process_test_data(test_group, file) argument 213 …@orphaned << { 'file' => file, 'error' => 'Group with given title not found in the ISA', 'comment'… 217 assertions = proc_test_instructions(test_group, spec_group, file) + 218 proc_test_descriptions(test_group, spec_group, file) + 219 proc_test_exceptions(test_group, spec_group, file) + 220 proc_test_verifications(test_group, spec_group, file) [all …]
|
/arkcompiler/runtime_core/tests/cts-generator/runner/ |
D | result.rb | 29 def update_failed_compilation(output, file) argument 32 @@stats[:compilation_error][:files] << file 37 def update_failed_quickening(output, file) argument 40 @@stats[:quickening_error][:files] << file 45 def update_negative_passed_compilation(output, file) argument 48 @@stats[:compilation_error][:files] << file 53 def update_failed_negative_compilation(output, file) argument 56 @@stats[:passed][:files] << file 61 def update_compilation_passed(output, file) argument 64 @@stats[:passed][:files] << file [all …]
|
/arkcompiler/runtime_core/libpandabase/tests/ |
D | unix_file_test.cpp | 28 os::file::File file1 = os::file::Open("./test_openfile.txt", os::file::Mode::READONLY); 31 os::file::File file2 = os::file::Open("./test_openfile.txt", os::file::Mode::READWRITE); 34 os::file::File file3 = os::file::Open("./test_openfile.txt", os::file::Mode::WRITEONLY); 37 os::file::File file4 = os::file::Open("./test_openfile.txt", os::file::Mode::READWRITECREATE);
|
/arkcompiler/runtime_core/static_core/verification/cache/ |
D | results_cache.cpp | 52 using panda::os::file::Mode; in Initialize() 53 using panda::os::file::Open; in Initialize() 56 auto file = Open(filename, Mode::READONLY); in Initialize() local 57 if (!file.IsValid()) { in Initialize() 58 file = Open(filename, Mode::READWRITECREATE); in Initialize() 60 if (!file.IsValid()) { in Initialize() 65 auto size = file.GetFileSize(); in Initialize() 68 file.Close(); in Initialize() 78 if (!file.ReadAll(data.data(), *size)) { in Initialize() 80 file.Close(); in Initialize() [all …]
|
/arkcompiler/runtime_core/static_core/tests/cts-generator/runner/ |
D | result.rb | 29 def update_failed_compilation(output, file) argument 32 @@stats[:compilation_error][:files] << file 37 def update_failed_quickening(output, file) argument 40 @@stats[:quickening_error][:files] << file 45 def update_negative_passed_compilation(output, file) argument 48 @@stats[:compilation_error][:files] << file 53 def update_failed_negative_compilation(output, file) argument 56 @@stats[:passed][:files] << file 61 def update_compilation_passed(output, file) argument 64 @@stats[:passed][:files] << file [all …]
|
/arkcompiler/ets_frontend/ts2panda/src/ |
D | syntaxChecker.ts | 347 let file = jshelpers.getSourceFileOfNode(node); 348 …nosticError(node, DiagnosticCode.A_return_statement_can_only_be_used_within_a_function_body, file); 354 let file = jshelpers.getSourceFileOfNode(node); 359 …ror(node, DiagnosticCode._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, file, args); 365 …only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, file, args); 369 …only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, file, args); 373 …only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, file, args); 381 …ror(node, DiagnosticCode._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, file, args); 393 let file = jshelpers.getSourceFileOfNode(name); 394 …me, DiagnosticCode.The_let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations, file); [all …]
|
/arkcompiler/ets_frontend/testTs/ |
D | run_testTs.py | 73 def run_test(file, tool, flag=False): argument 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.replace(TS_EXT, TXT_EXT) 79 temp_abc_file_path = file.replace(TS_EXT, ABC_EXT) 89 if file in IMPORT_TEST['import'] + IMPORT_TEST['m_parameter']: 90 command_os(['node', '--expose-gc', tool, '-m', file, '--output-type']) 92 command_os(['node', '--expose-gc', tool, file, '--output-type']) 118 if args.file: [all …]
|
/arkcompiler/runtime_core/disassembler/tests/ |
D | BUILD.gn | 3 # you may not use this file except in compliance with the License. 53 foreach(file, disasm_column_test_js_files) { 54 es2abc_gen_abc("gen_${file}_abc") { 55 test_js = "${test_js_path}${file}.js" 56 test_abc = "$target_out_dir/${file}.abc" 79 foreach(file, disasm_module_test_js_files) { 80 es2abc_gen_abc("gen_${file}_abc") { 81 test_js = "${module_test_js_path}${file}.js" 82 test_abc = "$target_out_dir/${file}.abc" 95 foreach(file, disasm_test_js_files) { [all …]
|
/arkcompiler/runtime_core/docs/ |
D | aot.md | 8 AOT file has `.an` extension and it is a valid ELF file. 24 special alignment, mostly it is 16 bytes (see `CODE_ALIGNMENT` in `libpandabase/utils/arch.h` file). 38 - `AotHeader` - This header describes main information, such as version, file name string, command … 40 - `PandaFileHeader` - Describes corresponding panda file. 46 Classes and methods are uniquely identified (inside one file) by their panda file id (`panda_file::… 47 therefore compiled Ark bytecode file must be bit by bit equal to the file loaded in runtime. 52 filled with appropriate data during AOT file loading at runtime. This data allows compiler's codege… 115 `ark_aot` tool aims to compile input panda files into the single AOT file that can be consumed by 121 - `--output` - path to the output AOT file (default is `out.an`) 132 To pass AOT file to the Panda `--aot-file` option should be specified: [all …]
|
/arkcompiler/runtime_core/static_core/docs/ |
D | aot.md | 8 AOT file has `.an` extension and it is a valid ELF file. 24 special alignment, mostly it is 16 bytes (see `CODE_ALIGNMENT` in `libpandabase/utils/arch.h` file). 38 - `AotHeader` - This header describes main information, such as version, file name string, command … 40 - `PandaFileHeader` - Describes corresponding panda file. 46 Classes and methods are uniquely identified (inside one file) by their panda file id (`panda_file::… 47 therefore compiled Ark bytecode file must be bit by bit equal to the file loaded in runtime. 52 filled with appropriate data during AOT file loading at runtime. This data allows compiler's codege… 115 `ark_aot` tool aims to compile input panda files into the single AOT file that can be consumed by 121 - `--output` - path to the output AOT file (default is `out.an`) 132 To pass AOT file to the Panda `--aot-file` option should be specified: [all …]
|
/arkcompiler/ets_runtime/ecmascript/napi/test/ |
D | BUILD.gn | 3 # you may not use this file except in compliance with the License. 26 foreach(file, test_js_files) { 27 es2abc_gen_abc("gen_${file}_abc") { 28 test_js = "${test_js_path}${file}.js" 29 test_abc = "$target_out_dir/${file}.abc" 31 # Only targets in this file can depend on this. 49 # test file 62 foreach(file, test_js_files) { 63 deps += [ ":gen_${file}_abc" ] 75 # test file [all …]
|
/arkcompiler/runtime_core/verifier/tests/ |
D | BUILD.gn | 3 # you may not use this file except in compliance with the License. 43 foreach(file, verifier_test_js_files) { 44 es2abc_gen_abc("gen_${file}_abc") { 45 test_js = "${test_js_path}${file}.js" 46 test_abc = "$target_out_dir/${file}.abc" 56 foreach(file, verifier_test_ts_files) { 57 es2abc_gen_abc("gen_${file}_abc") { 58 test_ts = "${test_ts_path}${file}.ts" 59 test_abc = "$target_out_dir/${file}.abc" 88 foreach(file, verifier_test_js_files) { [all …]
|
/arkcompiler/runtime_core/static_core/verification/config/ |
D | config_load.cpp | 59 using panda::os::file::Mode; in LoadConfig() 60 using panda::os::file::Open; in LoadConfig() 68 auto file = Open(filename, Mode::READONLY); in LoadConfig() local 69 if (!file.IsValid()) { in LoadConfig() 72 auto size = file.GetFileSize(); in LoadConfig() 74 file.Close(); in LoadConfig() 79 if (!file.ReadAll(text, *size)) { in LoadConfig() 80 file.Close(); in LoadConfig() 85 file.Close(); in LoadConfig()
|
/arkcompiler/runtime_core/static_core/scripts/cmake-checker/ |
D | cmake_checker.py | 71 for file in files: 72 …if file == "CMakeLists.txt" or file.endswith(".cmake") and os.path.join(root, file) not in ignore_… 73 cmake_files.append(os.path.join(root, file)) 77 for file in cmake_files: 78 with open(file, 'r') as f: 88 os.path.relpath(file, directory), line_number), file=sys.stderr) 106 with open(temp_file, 'r') as file: 107 content = file.read()
|
/arkcompiler/ets_runtime/ecmascript/module/tests/ |
D | BUILD.gn | 3 # you may not use this file except in compliance with the License. 27 foreach(file, test_js_files) { 28 es2abc_gen_abc("gen_${file}_abc") { 29 test_js = "${test_js_path}${file}.js" 30 test_abc = "$target_out_dir/${file}.abc" 32 # Only targets in this file can depend on this. 37 if (file == "module_test_module_test_A") { 54 # test file 72 foreach(file, test_js_files) { 73 deps += [ ":gen_${file}_abc" ] [all …]
|
/arkcompiler/ets_runtime/ecmascript/ohos/tests/ |
D | ohos_test.cpp | 100 std::ofstream file(disableListName); in HWTEST_F_L0() local 101 file << bundleScope << std::endl; in HWTEST_F_L0() 102 file << moduleScope << ":entry" << std::endl; in HWTEST_F_L0() 103 file << " # " <<moduleScope << ":entryComment" << std::endl; in HWTEST_F_L0() 105 file.close(); in HWTEST_F_L0() 137 std::ofstream file(runtimeAp); in HWTEST_F_L0() local 138 file.close(); in HWTEST_F_L0() 183 std::ofstream file(baselineAp); in HWTEST_F_L0() local 184 file.close(); in HWTEST_F_L0() 185 file.open(runtimeAp); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_frontend/es2panda/test/benchmark/ |
D | utils.py | 40 for file in os.listdir(path): 41 file_path = os.path.join(path, file) 80 def remove_file(file): argument 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_list, dir_path, tests_dir_path)) 149 for file in os.listdir(dir_path): [all …]
|
/arkcompiler/runtime_core/scripts/ |
D | gc_pause_stats.py | 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.write(f" {stats.get(trigger_stat).get(stat_type)} |") 64 file.write("\n\n") 169 print("Incorrect parameters count", file=sys.stderr) [all …]
|
/arkcompiler/ets_runtime/test/executiontest/ |
D | BUILD.gn | 3 # you may not use this file except in compliance with the License. 28 foreach(file, test_js_files) { 29 es2abc_gen_abc("gen_${file}_abc") { 30 test_js = "${test_js_path}${file}.js" 31 test_abc = "$target_out_dir/${file}.abc" 33 # Only targets in this file can depend on this. 51 # test file 67 foreach(file, test_js_files) { 68 deps += [ ":gen_${file}_abc" ] 86 # deps file [all …]
|
/arkcompiler/runtime_core/static_core/runtime/ |
D | relayout_profiler.cpp | 29 for (auto &file : relayoutItems_) { in WriteProfileData() local 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 panda::os::unix::file::File profileFile = in WriteProfileData() 35 panda::os::file::Open(profileFileName, panda::os::file::Mode::READWRITECREATE); in WriteProfileData() 40 panda::os::file::FileHolder fholder(profileFile); in WriteProfileData() 42 for (auto &item : file.second[RelayoutProfiler::RelayoutItemType::CLASS_ITEM]) { in WriteProfileData() 50 for (auto &item : file.second[RelayoutProfiler::RelayoutItemType::STRING_ITEM]) { in WriteProfileData() 58 for (auto &item : file.second[RelayoutProfiler::RelayoutItemType::CODE_ITEM]) { in WriteProfileData()
|
/arkcompiler/ets_runtime/ecmascript/debugger/tests/ |
D | BUILD.gn | 3 # you may not use this file except in compliance with the License. 27 foreach(file, test_js_files) { 28 es2abc_gen_abc("gen_${file}_abc") { 29 test_js = "${test_js_path}${file}.js" 30 test_abc = "$target_out_dir/single_file/${file}.abc" 32 # Only targets in this file can depend on this. 49 # test file 65 foreach(file, test_js_files) { 66 deps += [ ":gen_${file}_abc" ] 90 # deps file [all …]
|
/arkcompiler/ets_frontend/test262/ |
D | eshost.patch | 36 +function generateTempFileName(file) { 45 + let file = code.file; 47 + let tmps = file.split(this.test262Dir); 63 + let fileBase = path.basename(code.file); 64 + let originalFilePath = code.file.split(fileBase)[0]; 82 let {attrs, contents, file} = code; 90 - // we must copy the test file with its actual name. 99 // - The file name of the test being executed, but within 100 // the os's temporary file directory 109 dependencies.forEach(file => { [all …]
|
/arkcompiler/runtime_core/static_core/runtime/tooling/ |
D | debug_inf.cpp | 76 void DebugInf::AddCodeMetaInfo(const panda_file::File *file) in AddCodeMetaInfo() argument 79 ASSERT(file != nullptr); in AddCodeMetaInfo() 80 auto it = aexItemMap_.find(file->GetFilename()); in AddCodeMetaInfo() 85 …PCodeItem *item = AddCodeMetaInfoImpl(&g_dexDebugDescriptor, {file->GetBase(), file->GetHeader()->… in AddCodeMetaInfo() 86 aexItemMap_.emplace(file->GetFilename(), item); in AddCodeMetaInfo() 89 void DebugInf::DelCodeMetaInfo(const panda_file::File *file) in DelCodeMetaInfo() argument 92 ASSERT(file != nullptr); in DelCodeMetaInfo() 93 auto it = aexItemMap_.find(file->GetFilename()); in DelCodeMetaInfo() 98 DelCodeMetaInfoImpl(&g_dexDebugDescriptor, file); in DelCodeMetaInfo() 152 void DebugInf::DelCodeMetaInfoImpl(PCodeMetaInfo *metaInfo, const panda_file::File *file) in DelCodeMetaInfoImpl() argument [all …]
|