| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
| D | option.cpp | 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; 29 bool Options::nativeWrapper = true; // Enabled by default [all …]
|
| /arkcompiler/runtime_core/panda_guard/tests/unittest/ |
| D | guard_options_test.cpp | 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"); 49 EXPECT_EQ(options.GetSourceName("xxx"), "xxx"); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | Collator.ets | 46 … return "Value \"" + value + "\" out of range for Intl.Collator options property \"" + name + "\"" 49 function checkOptions(options: CollatorOptions) { 50 if ((options.caseFirst != undefined) && !CaseFirstValues.includes(options.caseFirst!)) { 51 throw new RangeError(errorMessage("caseFirst", options.caseFirst!)) 54 … if ((options.sensitivity != undefined) && !SensitivityValues.includes(options.sensitivity!)) { 55 throw new RangeError(errorMessage("sensitivity", options.sensitivity!)) 58 if ((options.usage != undefined) && !UsageValues.includes(options.usage!)) { 59 throw new RangeError(errorMessage("usage", options.usage!)) 62 …if ((options.localeMatcher != undefined) && !LocaleMatcherValues.includes(options.localeMatcher!))… 63 throw new RangeError(errorMessage("localeMatcher", options.localeMatcher!)) [all …]
|
| D | Errors.ets | 22 constructor(message?: String, options?: ErrorOptions) { 23 super("AssertionError", message, options) 32 constructor(message?: String, options?: ErrorOptions) { 33 super("DivideByZeroError", message, options) 41 constructor(message?: String, options?: ErrorOptions) { 42 super("NullPointerError", message, options) 50 constructor(message?: String, options?: ErrorOptions) { 51 super("UncaughtExceptionError", message, options) 59 constructor(message?: String, options?: ErrorOptions) { 60 super("SyntaxError", message, options) [all …]
|
| D | RuntimeLinkerErrors.ets | 19 constructor(name: String, message: String | undefined, options: ErrorOptions | undefined) { 20 super(name, message, options) 23 constructor(message?: String, options?: ErrorOptions) { 24 super("LinkerError", message, options) 29 constructor(message?: String, options?: ErrorOptions) { 30 super("LinkerVerificationError", message, options) 35 constructor(message?: String, options?: ErrorOptions) { 36 super("LinkerUnresolvedClassError", message, options) 41 constructor(message?: String, options?: ErrorOptions) { 42 super("LinkerUnresolvedFieldError", message, options) [all …]
|
| D | NumberFormat.ets | 41 * @param options options 43 …public constructor(locales?: Intl.BCP47LanguageTag | Intl.BCP47LanguageTag[], options?: NumberForm… 44 // Set new options or default decimal style 45 this.options = NumberFormat.assignOptionsDefault(options) 48 if (options != undefined) { 58 if (loc.includes("") && options != undefined) { 63 let locMatcher = options?.localeMatcher ?? "best fit" 64 …this.options.locale = locMatcher == "lookup" ? intlLookUpLocale(locales ?? "") : intlBestFitLocale… 65 if (options != undefined) { 66 …const localOptions: Intl.NumberFormatOptions = options!; // It's used to reduce amount of calls op… [all …]
|
| D | DateTimeFormat.ets | 27 private readonly options: DateTimeFormatOptions 30 public constructor(locales?: string | string[], options?: DateTimeFormatOptions) { 34 const lookupLocale = options?.localeMatcher == "lookup" 38 if (options === undefined || DateTimeFormatOptions.isEmpty(options)) { 39 this.options = DateTimeFormat.DEFAULT_OPTIONS 41 this.options = this.getResolvedOptions(options!) 47 …public static $_invoke(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeForm… 48 return new DateTimeFormat(locales, options) 87 const hourCycleOpt = this.options.hourCycle 93 resolvedOptions.dateStyle = this.options.dateStyle [all …]
|
| D | RelativeTimeFormat.ets | 32 constructor(options?: RelativeTimeFormatOptions) { 33 if (options !== undefined) { 34 this.numeric = options.numeric ?? "always"; 35 this.style = options.style ?? "long"; 36 this.localeMatcher = options.localeMatcher; 40 public static isEmpty(options: RelativeTimeFormatOptions): boolean { 41 return options.numeric === undefined && 42 options.style === undefined && 43 options.localeMatcher === undefined; 109 private readonly options: RelativeTimeFormatOptions [all …]
|
| D | PluralRules.ets | 57 private options : ResolvedPluralRulesOptions 59 public constructor(locales?: string | FixedArray<string>, options?: PluralRulesOptions) { 60 const localeMatcher = options?.localeMatcher ?? "best fit" 62 const type: PluralRuleType = options?.type ?? "cardinal" 64 this.options = { 67 minimumIntegerDigits: options?.minimumIntegerDigits ?? 1, 68 minimumFractionDigits: options?.minimumFractionDigits ?? 0, 69 maximumFractionDigits: options?.maximumFractionDigits ?? 3, 70 minimumSignificantDigits: options?.minimumSignificantDigits, 71 maximumSignificantDigits: options?.maximumSignificantDigits, [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/native/core/ |
| D | IntlNumberFormatters.cpp | 36 ani_status SetNumberingSystemIntoLocale(ani_env *env, const ParsedOptions &options, icu::Locale &lo… in SetNumberingSystemIntoLocale() argument 38 if (!options.numberingSystem.empty()) { in SetNumberingSystemIntoLocale() 40 locale.setKeywordValue("nu", options.numberingSystem.c_str(), status); in SetNumberingSystemIntoLocale() 42 std::string message = "Invalid numbering system " + options.numberingSystem; in SetNumberingSystemIntoLocale() 52 ani_status ConfigurePrecision([[maybe_unused]] ani_env *env, const ParsedOptions &options, Formatte… in ConfigurePrecision() argument 55 …icu::number::Precision::minMaxFraction(stoi(options.minFractionDigits), stoi(options.maxFractionDi… in ConfigurePrecision() 56 if (!options.minSignificantDigits.empty()) { in ConfigurePrecision() 57 if (!options.maxSignificantDigits.empty()) { in ConfigurePrecision() 58 if (options.notation == NOTATION_COMPACT) { in ConfigurePrecision() 60 stoi(options.minSignificantDigits), stoi(options.maxSignificantDigits), in ConfigurePrecision() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/ |
| D | build_linter.py | 74 def is_npm_newer_than_6(options): argument 75 cmd = [options.npm, '-v'] 76 stdout = run_cmd(cmd, options.source_path) 89 def build(options): argument 90 build_cmd = [options.npm, 'run', 'build'] 91 pack_cmd = [options.npm, 'pack'] 92 run_cmd(build_cmd, options.source_path) 93 run_cmd(pack_cmd, options.source_path) 96 def copy_output(options): argument 97 run_cmd(['rm', '-rf', options.output_path]) [all …]
|
| /arkcompiler/ets_frontend/ets2panda/bindings/ |
| D | build_bindings.py | 45 def build(options): argument 46 build_cmd = [options.npm, 'run', 'run'] 47 run_cmd(build_cmd, options.source_path) 50 def copy_output(options): argument 51 run_cmd(['rm', '-rf', options.output_path]) 52 copy_files(os.path.join(options.source_path, 'dist'), 53 os.path.join(options.output_path, 'dist')) 55 copy_files(os.path.join(options.source_path, 'node_modules', 'json5'), 56 os.path.join(options.output_path, 'node_modules', 'json5')) 58 copy_files(os.path.join(options.source_path, 'package.json'), [all …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-generator/ |
| D | test-runner.rb | 33 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 …]
|
| /arkcompiler/runtime_core/tests/cts-generator/ |
| D | test-runner.rb | 33 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 …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/ |
| D | IntlNumberFormatInvokeCtorTest.ets | 120 let options: Intl.NumberFormatOptions = { 123 let numberFormat = Intl.NumberFormat.$_invoke(locales, options); 129 let options: Intl.NumberFormatOptions = { 132 let numberFormat = Intl.NumberFormat.$_invoke(locales, options); 138 let options: Intl.NumberFormatOptions = { 141 let numberFormat = Intl.NumberFormat.$_invoke(locales, options); 147 let options: Intl.NumberFormatOptions = { 150 let numberFormat = Intl.NumberFormat.$_invoke(locales, options); 156 let options: Intl.NumberFormatOptions = { 159 …expectError((): void throws => { Intl.NumberFormat.$_invoke(locales, options) }, new RangeError("S… [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/mem/gc/ |
| D | gc_settings.cpp | 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() 33 enableFastHeapVerifier_ = options.IsEnableFastHeapVerifier(runtimeLang); in GCSettings() 34 auto hvParams = options.GetHeapVerifier(runtimeLang); in GCSettings() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | Errors.ets | 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) 35 constructor(message?: String, options?: ErrorOptions) { 36 super("TypeError", message, options) 39 static $_invoke(message?: String, options?: ErrorOptions): TypeError { 40 return new TypeError(message, options) 48 constructor(message?: String, options?: ErrorOptions) { 49 super("ReferenceError", message, options) [all …]
|
| /arkcompiler/runtime_core/tests/cts-coverage-tool/bin/ |
| D | spectrac.rb | 40 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/tests/cts-coverage-tool/bin/ |
| D | spectrac.rb | 40 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/ets_frontend/es2panda/ |
| D | es2panda.cpp | 60 … 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() 79 … options.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/ets_frontend/ets2panda/linter/src/lib/ts-compiler/ |
| D | FormTscOptions.ts | 36 const options: ts.CreateProgramOptions = { constant 38 options: cmdOptions.parsedConfigFile.options, constant 42 options.options = Object.assign(options.options, overrideCompilerOptions); 43 return options; 49 const options: ts.CreateProgramOptions = { constant 51 options: { constant 60 options.host = createCompilerHost( 66 options.options = Object.assign(options.options, overrideCompilerOptions); 67 return options;
|
| /arkcompiler/ets_frontend/ets2panda/driver/build_system/ |
| D | build_build_system.py | 45 def build(options): argument 46 build_cmd = [options.npm, 'run', 'build'] 47 run_cmd(build_cmd, options.source_path) 50 def copy_output(options): argument 51 run_cmd(['rm', '-rf', options.output_path]) 52 copy_files(os.path.join(options.source_path, 'dist'), 53 os.path.join(options.output_path, 'dist')) 55 copy_files(os.path.join(options.source_path, 'node_modules'), 56 os.path.join(options.output_path, 'node_modules')) 58 copy_files(os.path.join(options.source_path, 'package.json'), [all …]
|
| /arkcompiler/runtime_core/tests/checked/ |
| D | checker.rb | 21 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/runtime_core/static_core/tests/irtoc-interpreter-tests/irtoc-tag/ |
| D | generate-tag.rb | 20 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/ets_frontend/ets2panda/test/runtime/ets/ |
| D | nullable_readonly_property.ets | 28 static codeFixAvailable(options?: ReadonlyArray<VerifyCodeFixAvailableOptions>): void { 29 arktest.assertEQ(options![0].description, "Implement interface 'I1'"); 30 arktest.assertEQ(options![0].actions, undefined); 31 arktest.assertEQ(options![0].commands, undefined); 32 arktest.assertEQ(options![1].description, "Implement interface 'I2'"); 33 arktest.assertEQ(options![1].actions, undefined); 34 arktest.assertEQ(options![1].commands, undefined); 35 arktest.assertEQ(options![2].description, "Implement interface 'I3'"); 36 arktest.assertEQ(options![2].actions![0].type, "IA"); 37 arktest.assertEQ(options![2].actions![0].id, "IA1"); [all …]
|