| /arkcompiler/runtime_core/static_core/tests/checked/ |
| D | aot_cha_vcalls.pa | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 42 #! CHECKER aot without cha using boot panda files 43 #! RUN_PAOC options: "--boot-panda-files=../../vcalls_aux.checked/test.abc --paoc-use-cha=false" 48 #! RUN options: "--boot-panda-files=../../vcalls_aux.checked/test.abc", entry: "AotChaTest… 51 #! CHECKER aot with cha using boot panda files 52 #! RUN_PAOC options: "--boot-panda-files=../../vcalls_aux.checked/test.abc --paoc-use-cha=true" 56 #! RUN options: "--boot-panda-files=../../vcalls_aux.checked/test.abc", entry: "AotChaTest… 58 #! CHECKER aot with cha using boot panda files - LLVM 59 #! RUN_LLVM options: "--boot-panda-files=../../vcalls_aux.checked/test.abc --paoc-use-cha=true" [all …]
|
| D | aot_cha.pa | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 25 #! CHECKER panda files with cha 26 #! RUN_PAOC options: "--panda-files=../../basics_aot.checked/test.abc --paoc-use-cha=true --com… 30 #! RUN options: "--panda-files=../../basics_aot.checked/test.abc", entry: "AotChaTest::mai… 33 #! CHECKER panda files with cha - LLVM 34 #! RUN_LLVM options: "--panda-files=../../basics_aot.checked/test.abc --paoc-use-cha=true --com… 38 #! RUN options: "--panda-files=../../basics_aot.checked/test.abc", entry: "AotChaTest::mai… 42 #! CHECKER panda files no cha 43 #! RUN_PAOC options: "--panda-files=../../basics_aot.checked/test.abc --paoc-use-cha=false --co… [all …]
|
| D | aot_cha_panda_files.pa | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 42 #! CHECKER aot without cha using panda files 43 #! RUN_PAOC options: "--boot-panda-files=../../vcalls_aux.checked/test.abc --paoc-use-cha=false… 48 #! RUN options: "--boot-panda-files=../../vcalls_aux.checked/test.abc", entry: "AotChaTest… 51 #! CHECKER aot with cha using panda files 52 #! RUN_PAOC options: "--boot-panda-files=../../vcalls_aux.checked/test.abc --paoc-use-cha=true"… 56 #! RUN options: "--boot-panda-files=../../vcalls_aux.checked/test.abc", entry: "AotChaTest… 59 #! CHECKER invalid aot panda files 60 #! RUN_PAOC options: "--paoc-use-cha=true", env: "ASAN_OPTIONS=detect_leaks=0" [all …]
|
| D | llvm_devirt_external.pa | 6 # http://www.apache.org/licenses/LICENSE-2.0 33 …options: "--paoc-panda-files=../../vcalls_aux.checked/test.abc --boot-panda-files=../../vcalls_aux… 40 #! RUN options: "--boot-panda-files=../../vcalls_aux.checked/test.abc", entry: "_GLOBAL::m… 51 …options: "--paoc-panda-files=../../vcalls_aux.checked/test.abc --boot-panda-files=../../vcalls_aux… 58 #! RUN options: "--boot-panda-files=../../vcalls_aux.checked/test.abc", entry: "_GLOBAL::m… 69 …options: "--paoc-panda-files=../../vcalls_aux.checked/test.abc --boot-panda-files=../../vcalls_aux… 76 #! RUN options: "--boot-panda-files=../../vcalls_aux.checked/test.abc", entry: "_GLOBAL::m… 87 …options: "--paoc-panda-files=../../vcalls_aux.checked/test.abc --boot-panda-files=../../vcalls_aux… 94 #! RUN options: "--boot-panda-files=../../vcalls_aux.checked/test.abc", entry: "_GLOBAL::m…
|
| /arkcompiler/ets_frontend/es2panda/aot/ |
| D | main.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 19 #include <assembly-program.h> 20 #include <assembly-emitter.h> 25 #include <options.h> 34 namespace panda::es2panda::aot { namespace 56 static void GenerateBase64Output(panda::pandasm::Program *prog, in GenerateBase64Output() 57 const std::unique_ptr<panda::es2panda::aot::Options> &options) in GenerateBase64Output() argument 59 …auto pandaFile = panda::pandasm::AsmEmitter::Emit(*prog, nullptr, options->CompilerOptions().targe… in GenerateBase64Output() 60 options->CompilerOptions().targetApiSubVersion); in GenerateBase64Output() [all …]
|
| /arkcompiler/runtime_core/static_core/tests/checked/verify_aot_tests/ |
| D | verify_aot_test.pa | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 25 #! RUN_PAOC options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc --paoc-use-ch… 26 #! RUN options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc", entry: "Ver… 31 #! RUN_PAOC options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc --paoc-use-ch… 32 #! RUN options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc", entry: "Ver… 37 #! RUN_PAOC options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc --paoc-use-ch… 38 #! RUN options: "--panda-files=../../verify_aot_tests_file2.checked/test.abc", entry: "Ver… 43 #! RUN_PAOC options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc --paoc-use-ch… 44 #! RUN options: "--panda-files=../../verify_aot_tests_file2.checked/test.abc", entry: "Ver… [all …]
|
| /arkcompiler/runtime_core/tests/checked/verify_aot_tests/ |
| D | verify_aot_test.pa | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 25 #! RUN_PAOC options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc --paoc-use-ch… 26 #! RUN options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc", entry: "Ver… 31 #! RUN_PAOC options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc --paoc-use-ch… 32 #! RUN options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc", entry: "Ver… 37 #! RUN_PAOC options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc --paoc-use-ch… 38 #! RUN options: "--panda-files=../../verify_aot_tests_file2.checked/test.abc", entry: "Ver… 43 #! RUN_PAOC options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc --paoc-use-ch… 44 #! RUN options: "--panda-files=../../verify_aot_tests_file2.checked/test.abc", entry: "Ver… [all …]
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | throw.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: PandaAssembly_header 18 .record panda.NullPointerException <external> 19 .record panda.RuntimeException <external> 20 .record panda.Exception <external> 21 .record panda.Throwable <external> 22 .record panda.Object <external> 23 .record E1 <panda.extends=panda.Throwable> {} 25 - name: pandasm_header [all …]
|
| D | ststatic.obj.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: pandasm_header 19 .record panda.Object <external> 44 panda.Object fObj <static> 45 panda.Object[] fObjArray <static> 51 - name: PandaAssembly_header 55 .record panda.Object <external> 56 .function void panda.Object.ctor(panda.Object a0) <external, ctor> 58 .record I <panda.interface> {} [all …]
|
| D | stobj.v.obj.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: pandasm_header 18 .record panda.Object <external> 38 panda.Object fObj 39 panda.Object[] fObjArray 42 - name: PandaAssembly_header 45 .record panda.Object <external> 46 .record I <panda.interface> {} 47 .record Q <panda.implements=I> {} [all …]
|
| D | stobj.obj.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: pandasm_header 19 .record panda.Object <external> 44 panda.Object fObj 45 panda.Object[] fObjArray 51 - name: PandaAssembly_header 55 .record panda.Object <external> 56 .function void panda.Object.ctor(panda.Object a0) <external, ctor> 58 .record I <panda.interface> {} [all …]
|
| D | ldstatic.obj.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: pandasm_header 19 .record panda.Object <external> 44 panda.Object fObj <static> 45 panda.Object fObj2 <static> 46 panda.Object[] fObjArray <static> 52 - name: PandaAssembly_header 56 .record panda.Object <external> 57 .function void panda.Object.ctor(panda.Object a0) <external, ctor> [all …]
|
| /arkcompiler/runtime_core/tests/cts-generator/ |
| D | test-runner.rb | 2 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 # http://www.apache.org/licenses/LICENSE-2.0 33 def check_option(optparser, options, key) argument 34 return if options[key] 36 puts "Missing option: --#{key}" 41 def check_option_limit(optparser, options, key, min, max) argument 42 return unless options[key] 43 return if options[key] >= min && options[key] <= max 45 puts "Incorrect value for option: --#{key} [#{min}, #{max}]" 50 def check_option_enum(optparser, options, key, enum) argument [all …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-generator/ |
| D | test-runner.rb | 2 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 # http://www.apache.org/licenses/LICENSE-2.0 33 def check_option(optparser, options, key) argument 34 return if options[key] 36 puts "Missing option: --#{key}" 41 def check_option_limit(optparser, options, key, min, max) argument 42 return unless options[key] 43 return if options[key] >= min && options[key] <= max 45 puts "Incorrect value for option: --#{key} [#{min}, #{max}]" 50 def check_option_enum(optparser, options, key, enum) argument [all …]
|
| D | README.md | 8 * `CTS_TEST_SELECT_OPTION` - options, passed to test-runner.rb. 9 Useful for defining `--exclude-tag` and `--include-tag` options. 10 * `PANDA_CTS_JOBS_NUMBER` - amount of parallel jobs for test execution. Default is 8. 14 Options: 17 Usage: generate-cts.rb [options] 18 -t, --template FILE Path to template yaml file to generate tests (required) 19 -s, --schema FILE Path to json schema for template yaml (required) 20 -k, --skip Skip yaml schema validation 21 -o, --output DIR Path to directory where tests will be generated (required) 22 -h, --help Prints this help [all …]
|
| /arkcompiler/runtime_core/tests/checked/ |
| D | aot_cha.pa | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 25 #! CHECKER panda files with cha 26 #! RUN_PAOC options: "--panda-files=../../basics_aot.checked/test.abc --paoc-use-cha=true --com… 30 #! RUN options: "--panda-files=../../basics_aot.checked/test.abc", entry: "AotChaTest::mai… 33 #! CHECKER panda files no cha 34 #! RUN_PAOC options: "--panda-files=../../basics_aot.checked/test.abc --paoc-use-cha=false --co… 38 #! RUN options: "--panda-files=../../basics_aot.checked/test.abc", entry: "AotChaTest::mai… 41 #! CHECKER invalid aot panda files 42 #! RUN_PAOC options: "--paoc-use-cha=true --compiler-inlining=false" [all …]
|
| D | checker.rb | 2 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 # http://www.apache.org/licenses/LICENSE-2.0 21 options = OpenStruct.new 23 opts.banner = 'Usage: checker.rb [options] TEST_FILE' 25 opts.on('--run-prefix=PREFIX', 'Prefix that will be inserted before panda run command') do |v| 26 options.run_prefix = v 28 opts.on('--source=FILE', 'Path to source file') 29 opts.on('--test-file=FILE', 'Path to test file') do |v| 30 options.test_file = v 32 opts.on('--panda=PANDA', 'Path to panda') [all …]
|
| /arkcompiler/ets_frontend/merge_abc/src/ |
| D | main.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 18 #include "options.h" 21 #include <assembly-emitter.h> 24 namespace panda::proto { namespace 49 auto options = std::make_unique<Options>(); in Run() local 50 if (!options->Parse(argc, argv)) { in Run() 51 std::cerr << options->ErrorMsg() << std::endl; in Run() 55 std::string protoPathInput = options->protoPathInput(); in Run() 56 std::string protoBinSuffix = options->protoBinSuffix(); in Run() 57 std::string outputFilePath = options->outputFilePath(); in Run() [all …]
|
| D | options.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 16 #include "options.h" 20 namespace panda::proto { namespace 21 // Options 22 Options::Options() : argparser_(new panda::PandArgParser()) {} in Options() function in panda::proto::Options 24 Options::~Options() in ~Options() 29 bool Options::Parse(int argc, const char **argv) in Parse() 31 panda::PandArg<bool> opHelp("help", false, "Print this message and exit"); in Parse() 33 panda::PandArg<std::string> protoPathInput("input", "", in Parse() 36 panda::PandArg<std::string> protoBinSuffix("suffix", "", "suffix of proto bin file"); in Parse() [all …]
|
| /arkcompiler/ets_frontend/es2panda/ |
| D | es2panda.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 31 namespace panda::es2panda { namespace 41 abcToAsmCompiler_(new panda::abc2program::Abc2ProgramCompiler) in Compiler() 43 if (parser_->Extension() == ScriptExtension::TS) { in Compiler() 44 transformer_ = std::make_unique<parser::Transformer>(parser_->Allocator()); in Compiler() 55 panda::pandasm::Program *CreateJsonContentProgram(std::string src, std::string rname, util::PatchFi… in CreateJsonContentProgram() 57 panda::es2panda::compiler::CompilerContext context(nullptr, false, false, false, true, false, in CreateJsonContentProgram() 59 context.GetEmitter()->GenRecordNameInfo(); in CreateJsonContentProgram() 60 return context.GetEmitter()->Finalize(false, nullptr); in CreateJsonContentProgram() 63 … Compiler::CheckOptionsAndFileForAbcInput(const std::string &fname, const CompilerOptions &options) in CheckOptionsAndFileForAbcInput() argument [all …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/ |
| D | ststatic.obj.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: pandasm_header 17 .record panda.Object <external> 40 panda.Object fObj <static> 41 panda.Object[] fObjArray <static> 47 - file-name: "ststatic.obj" 53 - sig: ststatic.obj field_id 57 - file-name: "check_if_acc_initialized" 61 header-template: ['pandasm_header'] [all …]
|
| D | ldstatic.obj.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: pandasm_header 17 .record panda.Object <external> 40 panda.Object fObj <static> 41 panda.Object fObj2 <static> 42 panda.Object[] fObjArray <static> 48 - file-name: "ldstatic.obj" 54 - sig: ldstatic.obj field_id 58 - file-name: "with_non_static_field_id" [all …]
|
| D | stobj.v.obj.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: pandasm_header 18 .record panda.Object <external> 38 panda.Object fObj 39 panda.Object[] fObjArray 42 - file-name: "stobj.v.obj" 48 - sig: stobj.v.obj v1:in:ref, v2:in:ref, field_id 52 - file-name: "check_if_regs_initialized" 56 header-template: ['pandasm_header'] [all …]
|
| D | stobj.obj.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: pandasm_header 17 .record panda.Object <external> 40 panda.Object fObj 41 panda.Object[] fObjArray 47 - file-name: "stobj.obj" 53 - sig: stobj.obj v:in:ref, field_id 57 - file-name: "check_if_regs_initialized" 61 header-template: ['pandasm_header'] [all …]
|
| /arkcompiler/runtime_core/panda/ |
| D | panda.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 20 #include "runtime/include/method-inl.h" 47 namespace panda { namespace 65 if (sigemptyset(&set) == -1) { in BlockSignals() 87 void PrintHelp(const panda::PandArgParser &pa_parser) in PrintHelp() 91 << "panda" in PrintHelp() 92 << " [OPTIONS] [file] [entrypoint] -- [arguments]" << std::endl; in PrintHelp() 98 bool PrepareArguments(panda::PandArgParser *pa_parser, const RuntimeOptions &runtime_options, in PrepareArguments() 99 … const panda::PandArg<std::string> &file, const panda::PandArg<std::string> &entrypoint, in PrepareArguments() [all …]
|