Home
last modified time | relevance | path

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

/arkcompiler/toolchain/build/prebuilts_download/
H A Dutil.py59 def write_json_file(output_file, content, check_changes=False):
60 file_dir = os.path.dirname(os.path.abspath(output_file))
67 changed = __check_changes(output_file, content)
71 with os.fdopen(os.open(output_file, flags, modes), 'w') as output_f:
75 def __check_changes(output_file, content):
76 if os.path.exists(output_file) and os.path.isfile(output_file):
79 sha256_obj.update(str(read_json_file(output_file)).encode())
91 def write_file(output_file, content):
92 file_dir = os.path.dirname(os.path.abspath(output_file))
[all...]
/arkcompiler/ets_runtime/test/quickfix/
H A Dgenerate_js_and_merge_file.py172 def write_file_content(output_file, data):
173 output_fd = os.open(output_file, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, 0o755)
174 if os.path.exists(output_file):
191 def replace_js(input_file, output_file):
199 write_file_content(output_file, data)
200 return output_file
219 def process_with_prefix(input_file, output_file, prefix):
221 output_fd = os.open(output_file, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, 0o755)
227 def handle_files(input_file, output_file, prefix):
229 output_fd = os.open(output_file, o
[all...]
H A Dgenerate_merge_file.py35 with open(args.input, 'r') as input_file, open(args.output, 'w') as output_file:
38 output_file.write(output_line)
/arkcompiler/runtime_core/libark_defect_scan_aux/tests/unittest/scripts/
H A Dhandle_fileinfo.py25 def add_path_to_file(input_file, output_file, prefix_path):
26 fd = os.open(output_file, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, 0o644)
32 def main(input_file, output_file, prefix_path):
33 add_path_to_file(input_file, output_file, prefix_path)
38 print(f"Usage: {sys.argv[0]} <input_file> <output_file> <prefix_path>")
/arkcompiler/runtime_core/disassembler/
H A Ddisasm.cpp26 std::cerr << "ark_disasm [options] input_file output_file" << std::endl << std::endl; in PrintHelp()
31 void Disassemble(const std::string &input_file, const std::string &output_file, const bool verbose, const bool quiet, in Disassemble() argument
45 res_pa.open(output_file, std::ios::trunc | std::ios::out); in Disassemble()
51 const panda::PandArg<std::string> &output_file, panda::PandArg<bool> &debug, in ProcessArgs()
66 if (input_file.GetValue().empty() || output_file.GetValue().empty() || help.GetValue()) { in ProcessArgs()
101 panda::PandArg<std::string> output_file("output_file", "", "Path to the generated assembly code"); in main()
115 pa_parser.PushBackTail(&output_file); in main()
118 if (!ProcessArgs(pa_parser, input_file, output_file, debug, debug_file, help, version, argc, argv)) { in main()
122 Disassemble(input_file.GetValue(), output_file in main()
50 ProcessArgs(panda::PandArgParser &pa_parser, const panda::PandArg<std::string> &input_file, const panda::PandArg<std::string> &output_file, panda::PandArg<bool> &debug, const panda::PandArg<std::string> &debug_file, const panda::PandArg<bool> &help, const panda::PandArg<bool> &version, int argc, const char **argv) ProcessArgs() argument
[all...]
/arkcompiler/toolchain/build/templates/cxx/
H A Dexternal_deps_handler.py25 def __check_changes(output_file, content):
26 if os.path.exists(output_file) and os.path.isfile(output_file):
29 sha256_obj.update(str(read_json_file(output_file)).encode())
57 def write_json_file(output_file, content, check_changes=False):
58 file_dir = os.path.dirname(os.path.abspath(output_file))
63 changed = __check_changes(output_file, content)
67 with open(output_file, 'w') as output_f:
/arkcompiler/runtime_core/static_core/runtime/templates/
H A Dgen_intrinsics_data.rb79 output_file = File.open(File.expand_path(options.output), 'w')
84 output_file.puts('# Autogenerated file -- DO NOT EDIT!')
85 output_file.puts('intrinsics:')
95 output_file.write(t.result(create_sandbox))
98 output_file.close
/arkcompiler/runtime_core/assembler/
H A Dpandasm.cpp63 const panda::PandArg<std::string> &output_file, const panda::PandArg<std::string> &log_file, in PrepareArgs()
78 if (input_file.GetValue().empty() || output_file.GetValue().empty() || help.GetValue()) { in PrepareArgs()
159 const panda::PandArg<std::string> &output_file, panda::PandArg<bool> &optimize, in EmitProgramInBinary()
168 if (!panda::pandasm::AsmEmitter::Emit(output_file.GetValue(), program, statp, mapsp, emit_debug_info)) { in EmitProgramInBinary()
191 const panda::PandArg<std::string> &output_file, panda::PandArg<bool> &optimize, in BuildFiles()
198 if (!EmitProgramInBinary(program, pa_parser, output_file, optimize, size_stat)) { in BuildFiles()
220 panda::PandArg<std::string> output_file("OUTPUT_FILE", "", "Path to the generated binary code"); in main()
230 pa_parser.PushBackTail(&output_file); in main()
235 if (!panda::pandasm::PrepareArgs(pa_parser, input_file, output_file, log_file, help, verbose, version, inputfile, in main()
266 if (!panda::pandasm::BuildFiles(program, pa_parser, output_file, optimiz in main()
62 PrepareArgs(panda::PandArgParser &pa_parser, const panda::PandArg<std::string> &input_file, const panda::PandArg<std::string> &output_file, const panda::PandArg<std::string> &log_file, const panda::PandArg<bool> &help, const panda::PandArg<bool> &verbose, const panda::PandArg<bool> &version, std::ifstream &inputfile, int argc, const char **argv) PrepareArgs() argument
158 EmitProgramInBinary(panda::pandasm::Program &program, panda::PandArgParser &pa_parser, const panda::PandArg<std::string> &output_file, panda::PandArg<bool> &optimize, panda::PandArg<bool> &size_stat) EmitProgramInBinary() argument
190 BuildFiles(panda::pandasm::Program &program, panda::PandArgParser &pa_parser, const panda::PandArg<std::string> &output_file, panda::PandArg<bool> &optimize, panda::PandArg<bool> &size_stat, panda::PandArg<std::string> &scopes_file) BuildFiles() argument
[all...]
H A Dpandasm.h28 const panda::PandArg<std::string> &output_file, const panda::PandArg<std::string> &log_file,
42 const panda::PandArg<std::string> &output_file, panda::PandArg<bool> &optimize,
46 const panda::PandArg<std::string> &output_file, panda::PandArg<bool> &optimize,
/arkcompiler/runtime_core/abc2program/
H A Dabc2program_options.cpp29 panda::PandArg<std::string> output_file("output_file", "", "Path to the generated assembly code"); in Parse()
34 pa_parser_.PushBackTail(&output_file); in Parse()
58 output_file_path_ = output_file.GetValue(); in Parse()
74 ss << "abc2prog [options] input_file output_file" << std::endl; in ConstructErrorMsg()
/arkcompiler/runtime_core/static_core/cross_values/
H A Dcross_values_generator.rb30 def generate(input_file, output_file)
42 File.open(output_file, "w") do |file|
H A Dcross_values_getters_generator.rb35 def generate(input_file, output_file)
38 File.open(output_file, "w") do |file|
/arkcompiler/runtime_core/static_core/runtime/asm_defines/
H A Ddefines_generator.rb24 def generate(input_file, output_file)
27 File.open(output_file, "w") do |file|
/arkcompiler/ets_frontend/es2panda/lexer/scripts/
H A Dkeywords.rb218 def generate(keywords, template_file, output_file)
229 File.open(output_file, "w") do |file|
/arkcompiler/runtime_core/verifier/tests/
H A Dversion_compatibility_test.py56 def compile_abc(es2abc_path, js_file, output_file, target_api_version, target_api_sub_version):
60 "--output", output_file,
72 print(f"Error in compiling {output_file}: {result.stderr}")
75 print(f"Compiled {output_file}: {result.stdout}")
134 output_file = os.path.join(output_dir, f"{api_key}.abc")
136 es2abc_path, js_file, output_file, target_api_version,
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/
H A Ddisassembler.py47 output_file: Path,
53 args += [str(panda_file), str(output_file)]
H A Dcompiler.py129 output_file: Path,
136 f"--output={output_file}",
179 output_file=panda_file,
/arkcompiler/ets_frontend/es2panda/test/benchmark/
H A Drun_benchmark.py138 output_file = os.path.join(DEFAULT_OUTPUT_DIR, os.path.basename(file_path).
142 new_cmds += [file_path, "--output", output_file]
144 new_cmds += [output_file.replace(ABC_FILE_SUFFIX, HERMES_FILE_SUFFIX), file_path]
H A Dutils.py92 with open(base_file, "a+") as output_file:
95 output_file.write(file.read())
/arkcompiler/ets_frontend/test/scripts/sdk_test/
H A Dexecution.py270 output_file = get_compile_output_file_path(task, is_debug, options.OutputType.unsigned)
271 output_dir = os.path.dirname(output_file)
272 output_file_name = os.path.basename(output_file)
1496 output_file = get_compile_output_file_path(task, '', options.OutputType.unsigned)
1497 output_dir = os.path.dirname(output_file)
1498 output_file_name = os.path.basename(output_file)
1676 output_file = os.path.join(task.path, *module_path, *task.build_path, *output_path)
1678 return output_file
1681 def validate_compile_output_har(info, task, is_debug, output_file='', module=''):
1751 def validate_compile_output(info, task, is_debug, output_file
[all...]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/test262/
H A Dutil_test262.py125 def create_file(self, input_file: str, output_file: str, harness: str, test262_dir: str) -> None:
147 with os.fdopen(os.open(output_file, os.O_WRONLY | os.O_CREAT, 0o755), 'w', encoding="utf-8") as output:
/arkcompiler/ets_frontend/es2panda/test/
H A Dtest262util.py97 def create_file(self, input_file, output_file, harness, test262_dir):
117 with open(output_file, 'w') as o:
H A Drunner.py852 def gen_es2abc_cmd(self, runner, input_file, output_file):
855 es2abc_cmd.extend(['%s%s' % ("--output=", output_file)])
/arkcompiler/ets_frontend/test262/
H A Drun_sunspider.py254 output_file = os.path.splitext(dependency.replace(DATA_DIR, BASE_OUT_DIR))[0]
255 output_abc = f"{output_file}{ABC_EXT}"
274 proto_bin_file = output_file + "." + PROTO_BIN_SUFFIX
291 output_file = os.path.splitext(dependency.replace(DATA_DIR, BASE_OUT_DIR))[0]
292 output_abc = os.path.basename(f"{output_file}{ABC_EXT}")
/arkcompiler/ets_runtime/test/regresstest/
H A Drun_regress_test.py488 output_file = change_extension(
496 f'--output={output_file}'

Completed in 15 milliseconds