Home
last modified time | relevance | path

Searched full:options (Results 1 – 25 of 1625) sorted by relevance

12345678910>>...65

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
Doption.cpp20 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;
29 bool Options::nativeWrapper = true; // Enabled by default
[all …]
/arkcompiler/runtime_core/panda_guard/tests/unittest/
Dguard_options_test.cpp34 * @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");
49 EXPECT_EQ(options.GetSourceName("xxx"), "xxx");
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DErrors.sts27 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) {
56 super("UncatchedExceptionError", message, options)
64 constructor(message?: String, options?: ErrorOptions) {
65 super("SyntaxError", message, options)
[all …]
/arkcompiler/runtime_core/tests/cts-generator/
Dtest-runner.rb33 def check_option(optparser, options, key) argument
34 return if options[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
50 def check_option_enum(optparser, options, key, enum) argument
51 return unless options[key]
52 return if enum.include?(options[key])
63 options = OpenStruct.new
64 options[:exclude_tag] = []
[all …]
Dgenerate-cts.rb26 def check_option(optparser, options, key) argument
27 return if options[key]
50 options = OpenStruct.new
51 options[:chunk] = 0
52 options[:chunks] = 1
55 opts.banner = 'Usage: generate-cts.rb [options]'
70 optparser.parse!(into: options)
71 check_option(optparser, options, 'template')
72 check_option(optparser, options, 'schema')
73 check_option(optparser, options, 'output')
[all …]
/arkcompiler/runtime_core/static_core/tests/cts-generator/
Dtest-runner.rb33 def check_option(optparser, options, key) argument
34 return if options[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
50 def check_option_enum(optparser, options, key, enum) argument
51 return unless options[key]
52 return if enum.include?(options[key])
63 options = OpenStruct.new
64 options[:exclude_tag] = []
[all …]
Dgenerate-cts.rb26 def check_option(optparser, options, key) argument
27 return if options[key]
50 options = OpenStruct.new
51 options[:chunk] = 0
52 options[:chunks] = 1
55 opts.banner = 'Usage: generate-cts.rb [options]'
70 optparser.parse!(into: options)
71 check_option(optparser, options, 'template')
72 check_option(optparser, options, 'schema')
73 check_option(optparser, options, 'output')
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
Dgc_settings.cpp23 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()
33 enableFastHeapVerifier_ = options.IsEnableFastHeapVerifier(runtimeLang); in GCSettings()
34 auto hvParams = options.GetHeapVerifier(runtimeLang); in GCSettings()
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/src/cli/ts-compiler/
DFormTscOptions.ts24 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/static_core/tests/cts-coverage-tool/bin/
Dspectrac.rb40 options = OpenStruct.new
42 opts.banner = 'Usage: spectrac.rb [options]'
61 optparser.parse!(into: options)
64 missing = %i[spec testdir testglob].select { |param| options[param].nil? }
68 check_files(options.spec)
69 check_dir(options.testdir)
70 check_file(options.non_testable) if options.non_testable
77 spec = options.spec.map { |f| YAML.load_file(File.expand_path(f)) }
80 fullspec.load_non_testable(YAML.load_file(File.expand_path(options.non_testable))) if options.non_t…
81 fullspec.load_tests(options.testdir, options.testglob)
[all …]
/arkcompiler/runtime_core/tests/cts-coverage-tool/bin/
Dspectrac.rb40 options = OpenStruct.new
42 opts.banner = 'Usage: spectrac.rb [options]'
61 optparser.parse!(into: options)
64 missing = %i[spec testdir testglob].select { |param| options[param].nil? }
68 check_files(options.spec)
69 check_dir(options.testdir)
70 check_file(options.non_testable) if options.non_testable
77 spec = options.spec.map { |f| YAML.load_file(File.expand_path(f)) }
80 fullspec.load_non_testable(YAML.load_file(File.expand_path(options.non_testable))) if options.non_t…
81 fullspec.load_tests(options.testdir, options.testglob)
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DErrors.sts22 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)
56 constructor(message?: String, options?: ErrorOptions) {
57 super("ReferenceError", message, options)
[all …]
/arkcompiler/ets_frontend/es2panda/
Des2panda.cpp60 … Compiler::CheckOptionsAndFileForAbcInput(const std::string &fname, const CompilerOptions &options) in CheckOptionsAndFileForAbcInput() argument
62 if (!options.enableAbcInput) { 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()
71 if (!options.mergeAbc && options.sourceFiles.size() != 1) { in CheckOptionsAndFileForAbcInput()
79options.targetApiVersion, options.targetApiSubVersion)) { in CheckOptionsAndFileForAbcInput()
85 …andasm::Program *Compiler::CompileAbcFile(const std::string &fname, const CompilerOptions &options) in CompileAbcFile() argument
88 CheckOptionsAndFileForAbcInput(fname, options); in CompileAbcFile()
97 void Compiler::CompileAbcFileInParallel(SourceFile *src, const CompilerOptions &options, in CompileAbcFileInParallel() argument
102 CheckOptionsAndFileForAbcInput(src->fileName, options); in CompileAbcFileInParallel()
[all …]
/arkcompiler/runtime_core/tests/checked/
Dchecker.rb21 options = OpenStruct.new
23 opts.banner = 'Usage: checker.rb [options] TEST_FILE'
26 options.run_prefix = v
30 options.test_file = v
34 options.paoc = v
36 opts.on('--panda-options=OPTIONS', 'Default options for panda run') do |v|
37 options.panda_options = v
39 opts.on('--paoc-options=OPTIONS', 'Default options for paoc run') do |v|
40 options.paoc_options = v
43 options.command_token = v
[all …]
/arkcompiler/ets_frontend/ets2panda/aot/
Dmain.cpp24 #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()
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()
98 es2panda::SourceFile input(src, parserInput, options->ParseModule()); in CompileFromConfig()
99 options->SetCompilerOutput(dst); in CompileFromConfig()
101options->ListFiles() && std::cout << "> es2panda: compiling from '" << src << "' to '" << dst << "… in CompileFromConfig()
[all …]
/arkcompiler/runtime_core/static_core/tests/irtoc-interpreter-tests/irtoc-tag/
Dgenerate-tag.rb20 def check_option(optparser, options, key) argument
21 return if options[key]
28 options = OpenStruct.new
30 opts.banner = 'Usage: generate-tag.rb [options]'
42 optparser.parse!(into: options)
43 check_option(optparser, options, 'template')
44 check_option(optparser, options, 'yaml')
45 check_option(optparser, options, 'isapi')
46 check_option(optparser, options, 'output')
47 check_option(optparser, options, 'isa')
[all …]
/arkcompiler/runtime_core/static_core/tests/checked/
Dchecker.rb21 options = OpenStruct.new
23 opts.banner = 'Usage: checker.rb [options] TEST_FILE'
26 options.run_prefix = v
30 options.test_file = v
34 options.paoc = v
37 opts.on('--panda-options=OPTIONS', 'Default options for panda run') do |v|
38 options.panda_options = v
40 opts.on('--paoc-options=OPTIONS', 'Default options for paoc run') do |v|
41 options.paoc_options = v
43 opts.on('--frontend-options=OPTIONS', 'Default options for frontend+bco run') do |v|
[all …]
Daot_cha_vcalls.pa43 #! 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…
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"
68 #! RUN options: "--boot-panda-files=../../vcalls_aux.checked/test.abc", entry: "AotChaTest…
71 #! RUN_AOT options: "--boot-panda-files=../../vcalls_aux.checked/test.abc --paoc-use-cha=true"
72 #! RUN options: "", entry: "AotChaTest::main", abort: 6
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/
Dark_config.py58 ) -> 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:
73 Return a :class:`compiler.Options` instance for `ark_compiler` fixture.
84 ) -> disassembler.Options:
86 Return a :class:`disassembler.Options` instance for `ark_disassembler_options` fixture.
88 return disassembler.Options(
95 ark_disassembler_default_options: disassembler.Options, argument
[all …]
/arkcompiler/ets_frontend/ets2panda/scripts/
Dtest_runner.py53 options = parse_options()
55 if not os.path.exists(options.arkdir):
56 logging.info("The following ark directory does not exist: {0}", options.arkdir)
59 if not os.path.exists(options.builddir):
60 logging.info("The following build directory does not exist: {0}", options.builddir)
63 testrunner = os.path.join(options.arkdir, 'tests', 'tests-u-runner', 'main.py')
69 'python', testrunner, '--build-dir', options.builddir, '--force-generate',
70 '--show-progress', '--processes', 'all', '--timeout', str(options.timeout)
73 if options.all:
74options.regression = options.runtime = options.cts = options.functional = options.test262 = True
[all …]
/arkcompiler/runtime_core/static_core/isa/
Dgen.rb47 def check_option(optparser, options, key) argument
48 return if options[key]
75 options = OpenStruct.new
78 opts.banner = 'Usage: gen.rb [options]'
92 optparser.parse!(into: options)
94 check_option(optparser, options, :data)
95 check_option(optparser, options, :api)
96 raise "'api' and 'data' must be of equal length" if options.api.length != options.data.length
97 options.api.zip(options.data).each do |api_file, data_file|
103 options.require&.each { |r| require File.expand_path(r) }
[all …]
/arkcompiler/runtime_core/static_core/disassembler/
Ddisasm.cpp24 struct Options { struct
43 explicit Options(ark::PandArgParser &paParser) in Options() argument
63 std::cerr << "ark_disasm [options] input_file output_file" << std::endl << std::endl; in PrintHelp()
64 std::cerr << "Supported options:" << std::endl << std::endl; in PrintHelp()
68 static void Disassemble(const Options &options) in Disassemble() argument
70 auto inputFile = options.inputFile.GetValue(); in Disassemble()
74 disasm.Disassemble(inputFile, options.quiet.GetValue(), options.skipStrings.GetValue()); in Disassemble()
75 auto verbose = options.verbose.GetValue(); in Disassemble()
77 auto profile = options.profile.GetValue(); in Disassemble()
87 resPa.open(options.outputFile.GetValue(), std::ios::trunc | std::ios::out); in Disassemble()
[all …]
/arkcompiler/ets_frontend/es2panda/aot/
Dmain.cpp50 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()
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()
133 const std::unique_ptr<panda::es2panda::aot::Options> &options) in DumpProgramInfos() argument
135 const es2panda::CompilerOptions &compilerOptions = options->CompilerOptions(); in DumpProgramInfos()
161 const std::unique_ptr<panda::es2panda::aot::Options> &options, in GenerateProgram() argument
164 DumpProgramInfos(programsInfo, options); in GenerateProgram()
168 if (options->OutputFiles().empty() && options->CompilerOutput().empty()) { in GenerateProgram()
[all …]
/arkcompiler/ets_frontend/ets2panda/util/
DgenerateBin.cpp24 [[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()
61 static int GenerateProgramImpl(ark::pandasm::Program *prog, const util::Options *options, const Rep… in GenerateProgramImpl() argument
65 if (options->CompilerOptions().dumpAsm) { in GenerateProgramImpl()
[all …]
/arkcompiler/runtime_core/isa/
Dgen.rb47 def check_option(optparser, options, key) argument
48 return if options[key]
62 options = OpenStruct.new
65 opts.banner = 'Usage: gen.rb [options]'
78 optparser.parse!(into: options)
80 check_option(optparser, options, :data)
81 data = YAML.load_file(File.expand_path(options.data))
84 options&.require&.each { |r| require File.expand_path(r) } if options.require
87 if options.assert
88 require options.assert
[all …]

12345678910>>...65