Home
last modified time | relevance | path

Searched +full:options +full:- (Results 1 – 25 of 1029) sorted by relevance

12345678910>>...42

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
Doption.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
20 bool Options::dumpBefore = false;
21 bool Options::dumpAfter = false;
22 std::string Options::dumpPhase = "";
23 std::string Options::dumpFunc = "*";
24 std::string Options::skipPhase;
25 std::string Options::skipFrom;
26 std::string Options::skipAfter;
27 bool Options::quiet = false;
28 bool Options::regNativeFunc = false;
[all …]
/arkcompiler/runtime_core/tests/cts-generator/
Dtest-runner.rb2 # 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 …]
Dgenerate-cts.rb2 # Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 # http://www.apache.org/licenses/LICENSE-2.0
26 def check_option(optparser, options, key) argument
27 return if options[key]
29 puts "Missing option: --#{key}"
41 last_idx = chunk >= chunks - 1 ? tests.length : (chunk + 1) * chunk_size
50 options = OpenStruct.new
51 options[:chunk] = 0
52 options[:chunks] = 1
55 opts.banner = 'Usage: generate-cts.rb [options]'
[all …]
/arkcompiler/runtime_core/static_core/tests/cts-generator/
Dtest-runner.rb2 # 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 …]
Dgenerate-cts.rb2 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 # http://www.apache.org/licenses/LICENSE-2.0
26 def check_option(optparser, options, key) argument
27 return if options[key]
29 puts "Missing option: --#{key}"
41 last_idx = chunk >= chunks - 1 ? tests.length : (chunk + 1) * chunk_size
50 options = OpenStruct.new
51 options[:chunk] = 0
52 options[:chunks] = 1
55 opts.banner = 'Usage: generate-cts.rb [options]'
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DErrors.sts2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
22 //NOTE(kirill-mitkin): Used by frontend
27 constructor(message?: String, options?: ErrorOptions) {
28 super("AssertionError", message, options)
37 constructor(message?: String, options?: ErrorOptions) {
38 super("DivideByZeroError", message, options)
46 constructor(message?: String, options?: ErrorOptions) {
47 super("NullPointerError", message, options)
55 constructor(message?: String, options?: ErrorOptions) {
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
Dgc_settings.cpp2 * Copyright (c) 2022-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
23 GCSettings::GCSettings(const RuntimeOptions &options, panda_file::SourceLang lang) in GCSettings() argument
26 isDumpHeap_ = options.IsGcDumpHeap(runtimeLang); in GCSettings()
27 isConcurrencyEnabled_ = options.IsConcurrentGcEnabled(runtimeLang); in GCSettings()
28 isGcEnableTracing_ = options.IsGcEnableTracing(runtimeLang); in GCSettings()
29 isExplicitConcurrentGcEnabled_ = options.IsExplicitConcurrentGcEnabled(); in GCSettings()
30 runGcInPlace_ = options.IsRunGcInPlace(runtimeLang); in GCSettings()
31 fullGcBombingFrequency_ = options.GetFullGcBombingFrequency(runtimeLang); in GCSettings()
32 … nativeGcTriggerType_ = NativeGcTriggerTypeFromString(options.GetNativeGcTriggerType(runtimeLang)); in GCSettings()
[all …]
/arkcompiler/runtime_core/static_core/tests/cts-coverage-tool/bin/
Dspectrac.rb2 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 # http://www.apache.org/licenses/LICENSE-2.0
40 options = OpenStruct.new
42 opts.banner = 'Usage: spectrac.rb [options]'
43 opts.on('-r', '--report [FILE]', 'Output the test coverage summary report in yaml')
44 opts.on('-d', '--testdir DIR', 'Directory with the test files (required)')
45 opts.on('-g', '--testglob GLOB', 'Glob for finding test files in testdir (required)')
46 opts.on('-s', '--spec FILE1,FILE2,FILE3', Array, 'ISA spec file(s) (at least one required)')
47 opts.on('-n', '--non_testable [FILE]', 'Non testable assertions')
48 …opts.on('-u', '--uncovered [FILE]', 'Output yaml document with ISA spec areas not covered by tests…
[all …]
/arkcompiler/runtime_core/tests/cts-coverage-tool/bin/
Dspectrac.rb2 # Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 # http://www.apache.org/licenses/LICENSE-2.0
40 options = OpenStruct.new
42 opts.banner = 'Usage: spectrac.rb [options]'
43 opts.on('-r', '--report [FILE]', 'Output the test coverage summary report in yaml')
44 opts.on('-d', '--testdir DIR', 'Directory with the test files (required)')
45 opts.on('-g', '--testglob GLOB', 'Glob for finding test files in testdir (required)')
46 opts.on('-s', '--spec FILE1,FILE2,FILE3', Array, 'ISA spec file(s) (at least one required)')
47 opts.on('-n', '--non_testable [FILE]', 'Non testable assertions')
48 …opts.on('-u', '--uncovered [FILE]', 'Output yaml document with ISA spec areas not covered by tests…
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/src/cli/ts-compiler/
DFormTscOptions.ts2 * Copyright (c) 2022-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
24 const options: ts.CreateProgramOptions = { constant
26 options: cmdOptions.parsedConfigFile.options, constant
30 options.options = Object.assign(options.options, overrideCompilerOptions);
31 return options;
33 const options: ts.CreateProgramOptions = { constant
35 options: { constant
42 options.options = Object.assign(options.options, overrideCompilerOptions);
43 return options;
/arkcompiler/runtime_core/panda_guard/tests/unittest/
Dguard_options_test.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
34 * @tc.desc: test options parse is right
40 guard::GuardOptions options; variable
41 options.Load(OPTIONS_TEST_01_CONFIG_FILE);
43 EXPECT_EQ(options.GetAbcFilePath(), "xxx");
44 EXPECT_EQ(options.GetObfAbcFilePath(), "xxx");
45 EXPECT_EQ(options.GetObfPaFilePath(), "xxx");
46 EXPECT_EQ(options.GetCompileSdkVersion(), "xxx");
47 EXPECT_EQ(options.GetTargetApiVersion(), 12);
48 EXPECT_EQ(options.GetTargetApiSubVersion(), "beta3");
[all …]
/arkcompiler/ets_frontend/es2panda/
Des2panda.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
40 if (parser_->Extension() == ScriptExtension::TS) { in Compiler()
41 transformer_ = std::make_unique<parser::Transformer>(parser_->Allocator()); in Compiler()
56 context.GetEmitter()->GenRecordNameInfo(); in CreateJsonContentProgram()
57 return context.GetEmitter()->Finalize(false, nullptr); in CreateJsonContentProgram()
60 … Compiler::CheckOptionsAndFileForAbcInput(const std::string &fname, const CompilerOptions &options) in CheckOptionsAndFileForAbcInput() argument
62 if (!options.enableAbcInput) { in CheckOptionsAndFileForAbcInput()
63 throw Error(ErrorType::GENERIC, "\"--enable-abc-input\" is not enabled, abc file " + fname + in CheckOptionsAndFileForAbcInput()
66 if (options.targetApiVersion < util::Helpers::ABC_TO_PROGRAM_MIN_SUPPORTED_API_VERSION) { in CheckOptionsAndFileForAbcInput()
67 …throw Error(ErrorType::GENERIC, "Target api version '" + std::to_string(options.targetApiVersion) + in CheckOptionsAndFileForAbcInput()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DErrors.sts2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
22 constructor(message?: String, options?: ErrorOptions) {
23 super("EvalError", message, options)
26 static invoke(message?: String, options?: ErrorOptions): EvalError {
27 return new EvalError(message, options)
39 constructor(message?: String, options?: ErrorOptions) {
40 super("TypeError", message, options)
43 static invoke(message?: String, options?: ErrorOptions): TypeError {
44 return new TypeError(message, options)
[all …]
/arkcompiler/runtime_core/tests/checked/
Dchecker.rb2 # 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/runtime_core/static_core/tests/irtoc-interpreter-tests/irtoc-tag/
Dgenerate-tag.rb2 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 # http://www.apache.org/licenses/LICENSE-2.0
20 def check_option(optparser, options, key) argument
21 return if options[key]
23 puts "Missing option: --#{key}"
28 options = OpenStruct.new
30 opts.banner = 'Usage: generate-tag.rb [options]'
31 opts.on('-t', '--template FILE', 'Path to template erb file to generate tests (required)')
32 opts.on('-y', '--yaml FILE', 'Path to template yaml file to generate tests (required)')
33 opts.on('-i', '--isapi ISAPI_FILE', 'Path to isapi.rb file to use isapi (required)')
[all …]
/arkcompiler/ets_frontend/ets2panda/aot/
Dmain.cpp2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
24 #include "util/options.h"
54 …ompileFromSource(es2panda::Compiler &compiler, es2panda::SourceFile &input, util::Options *options) in CompileFromSource() argument
56 auto program = std::unique_ptr<pandasm::Program> {compiler.Compile(input, *options)}; in CompileFromSource()
64 // Intentional exit or --parse-only option usage. in CompileFromSource()
69 …std::cout << " [" << (err.File().empty() ? util::BaseName(options->SourceFile()) : util::BaseName(… in CompileFromSource()
75 …return util::GenerateProgram(program.get(), options, [](std::string const &str) { std::cerr << str… in CompileFromSource()
78 static int CompileFromConfig(es2panda::Compiler &compiler, util::Options *options) in CompileFromConfig() argument
80 auto compilationList = FindProjectSources(options->CompilerOptions().arktsConfig); in CompileFromConfig()
[all …]
/arkcompiler/runtime_core/static_core/tests/checked/
Dchecker.rb2 # Copyright (c) 2021-2024 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 …]
Daot_cha_vcalls.pa1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
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…
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"
63 #! RUN options: "--boot-panda-files=../../vcalls_aux.checked/test.abc", entry: "AotChaTest…
67 #! RUN_AOT options: "--paoc-use-cha=true"
[all …]
/arkcompiler/ets_frontend/ets2panda/scripts/
Dtest_runner.py2 # -*- coding: utf-8 -*-
4 # Copyright (c) 2023-2024 Huawei Device Co., Ltd.
9 # http://www.apache.org/licenses/LICENSE-2.0
37 parser.add_argument('--arkdir', metavar='DIR', default=arkdir_default,
39 parser.add_argument('--builddir', metavar='DIR', default=builddir_default,
41 …parser.add_argument('--timeout', metavar='SEC', type=int, default=60, help='timeout (default: %(de…
42 … parser.add_argument('-rt', '--runtime', action='store_true', dest='runtime', help='Runtime tests')
43 …parser.add_argument('-r', '--regression', action='store_true', dest='regression', help='Regression…
44 parser.add_argument('-cts', '--cts', action='store_true', dest='cts', help='CTS tests')
45 …parser.add_argument('-f', '--func', action='store_true', dest='functional', help='Functional tests…
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/
Dark_config.py2 # -*- coding: utf-8 -*-
9 # http://www.apache.org/licenses/LICENSE-2.0
30 # CC-OFFNXT(G.CTL.01) This is exactly the signature of the function that required.
32 def str2bool(val: str | None) -> None | bool:
48 ) -> Path:
58 ) -> compiler.Options:
60 Return a :class:`compiler.Options` instance for `ark_compiler_options` fixture.
62 return compiler.Options(
70 ark_compiler_default_options: compiler.Options, argument
71 ) -> compiler.Options:
[all …]
/arkcompiler/runtime_core/static_core/isa/
Dgen.rb2 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 # http://www.apache.org/licenses/LICENSE-2.0
47 def check_option(optparser, options, key) argument
48 return if options[key]
50 puts "Missing option: --#{key}"
75 options = OpenStruct.new
78 opts.banner = 'Usage: gen.rb [options]'
80 opts.on('-t', '--template FILE', 'Template for file generation (required)')
81 opts.on('-d', '--data FILE1,FILE2,...', Array, 'Source data files in YAML format')
82 opts.on('-q', '--api FILE1,FILE2,...', Array, 'Ruby files providing api for data in YAML format')
[all …]
/arkcompiler/runtime_core/static_core/disassembler/
Ddisasm.cpp2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
23 // NOLINTBEGIN(misc-non-private-member-variables-in-classes)
24 struct Options { struct
27 ark::PandArg<bool> quiet {"quiet", false, "enables all of the --skip-* flags"};
29 "skip-string-literals", false,
34 …"debug", false, "enable debug messages (will be printed to standard output if no --debug-file was …
35 ark::PandArg<std::string> debugFile {"debug-file", "",
36 … "(--debug-file FILENAME) set debug file name. default is std::cout"};
43 explicit Options(ark::PandArgParser &paParser) in Options() argument
[all …]
/arkcompiler/runtime_core/isa/
Dgen.rb2 # Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 # http://www.apache.org/licenses/LICENSE-2.0
47 def check_option(optparser, options, key) argument
48 return if options[key]
50 puts "Missing option: --#{key}"
62 options = OpenStruct.new
65 opts.banner = 'Usage: gen.rb [options]'
67 opts.on('-t', '--template FILE', 'Template for file generation (required)')
68 opts.on('-d', '--data FILE', 'Source data in YAML format (required)')
69 opts.on('-o', '--output FILE', 'Output file (default is stdout)')
[all …]
/arkcompiler/ets_frontend/es2panda/aot/
Dmain.cpp2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
50 const std::unique_ptr<panda::es2panda::aot::Options> &options) in GenerateBase64Output() argument
52 …auto pandaFile = panda::pandasm::AsmEmitter::Emit(*prog, nullptr, options->CompilerOptions().targe… in GenerateBase64Output()
53 options->CompilerOptions().targetApiSubVersion); in GenerateBase64Output()
54 const uint8_t *buffer = pandaFile->GetBase(); in GenerateBase64Output()
55 size_t size = pandaFile->GetPtr().GetSize(); in GenerateBase64Output()
112 …const std::unique_ptr<panda::es2panda::aot::Options> &options, std::map<std::string, size_t> *stat… in GenerateProgramsByWorkers() argument
114 auto queue = new panda::es2panda::aot::EmitFileQueue(options, statp, programsInfo); in GenerateProgramsByWorkers()
118 queue->Schedule(); in GenerateProgramsByWorkers()
[all …]
/arkcompiler/ets_frontend/ets2panda/util/
DgenerateBin.cpp2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
24 [[maybe_unused]] static void InitializeLogging(const util::Options *options) in InitializeLogging() argument
32 … ark::Logger::InitializeStdLogging(Logger::LevelFromString(options->LogLevel()), componentMask); in InitializeLogging()
39 static int OptimizeBytecode(ark::pandasm::Program *prog, const util::Options *options, const Report… in OptimizeBytecode() argument
43 if (options->OptLevel() != 0) { in OptimizeBytecode()
44 InitializeLogging(options); in OptimizeBytecode()
45 if (!ark::pandasm::AsmEmitter::Emit(options->CompilerOutput(), *prog, statp, mapsp, true)) { in OptimizeBytecode()
50 ark::bytecodeopt::g_options.SetOptLevel(options->OptLevel()); in OptimizeBytecode()
54 …ark::bytecodeopt::OptimizeBytecode(prog, mapsp, options->CompilerOutput(), options->IsDynamic(), t… in OptimizeBytecode()
[all …]

12345678910>>...42