Lines Matching defs:options

485 ShellOptions Shell::options;
604 ScriptCompiler::CompileOptions options) {}
608 ScriptCompiler::CompileOptions options) {
609 return ScriptCompiler::Compile(context, source, options);
615 ScriptCompiler::CompileOptions options) {
616 return ScriptCompiler::CompileModule(context->GetIsolate(), source, options);
625 if (options.streaming_compile) {
639 if (options.compile_options == ScriptCompiler::kConsumeCodeCache) {
658 Local<PrimitiveArray> options =
660 options->Set(isolate, 0,
662 options->Set(isolate, 1, resource_name);
664 false, false, type == v8::ScriptType::kModule, options);
667 bool IsValidHostDefinedOptions(Local<Context> context, Local<Data> options,
669 if (!options->IsFixedArray()) return false;
670 Local<FixedArray> array = options.As<FixedArray>();
700 if (options.compile_options == v8::ScriptCompiler::kEagerCompile) {
744 for (int i = 1; i < options.repeat_compile; ++i) {
756 if (options.code_cache_options ==
764 if (options.compile_only) return true;
765 if (options.compile_options == ScriptCompiler::kConsumeCodeCache) {
774 if (options.code_cache_options ==
788 if (options.web_snapshot_config) {
790 if (options.web_snapshot_output) {
791 web_snapshot_output_file_name = options.web_snapshot_output;
795 ReadLines(isolate, options.web_snapshot_config);
814 } else if (options.web_snapshot_output) {
828 if (options.test_shell) {
1026 if (source_text.IsEmpty() && options.fuzzy_module_file_extensions) {
1242 isolate, "Invalid host defined options")))
2383 options.quiet_load ? kNoReportExceptions : kReportExceptions,
2488 // by the `default_type` or an optional options bag provided in `args[index+1]`
2489 // (e.g. `options={type: 'code_type', arguments:[...]}`).
2969 if (!options.omit_quit) {
3008 v8::String::NewFromUtf8(isolate, options.d8_path).ToLocalChecked(),
3103 if (options.d8_web_snapshot_api) {
3152 if (options.expose_fast_api && i::FLAG_turbo_fast_api_calls &&
3225 if (options.ignore_unhandled_promises) return;
3287 if (options.fuzzilli_enable_builtins_coverage) {
3326 if (options.include_arguments) {
3327 const std::vector<const char*>& args = options.arguments;
3466 if (options.simulate_errors && is_valid_fuzz_script()) {
3477 if (options.dump_counters || options.dump_counters_nvp) {
3483 if (options.dump_counters_nvp) {
3609 if (options.read_from_tcp_port >= 0) {
3999 // Ignore other options. They have been parsed already.
4036 for (int i = 0; i < Shell::options.stress_runs; ++i) {
4051 Shell::options.enable_inspector);
4414 options.d8_path = argv[0];
4419 options.arguments.push_back(argv[j]);
4424 options.include_arguments = false;
4427 options.simulate_errors = true;
4430 options.stress_opt = true;
4434 options.stress_opt = false;
4449 options.interactive_shell = true;
4452 options.test_shell = true;
4456 options.test_shell = false;
4459 options.send_idle_notification = true;
4462 options.invoke_weak_callbacks = true;
4465 options.send_idle_notification = true;
4468 options.omit_quit = true;
4473 options.wait_for_background_tasks = false;
4480 options.ignore_unhandled_promises = true;
4483 options.num_isolates++;
4485 options.expected_to_throw = true;
4488 options.no_fail = true;
4492 options.dump_counters = true;
4496 options.dump_counters_nvp = true;
4499 options.icu_data_file = argv[i] + 16;
4502 options.icu_locale = argv[i] + 13;
4506 options.snapshot_blob = argv[i] + 16;
4513 options.compile_options = v8::ScriptCompiler::kNoCompileOptions;
4514 options.code_cache_options =
4517 options.compile_options = v8::ScriptCompiler::kNoCompileOptions;
4518 options.code_cache_options =
4521 options.compile_options = v8::ScriptCompiler::kNoCompileOptions;
4522 options.code_cache_options =
4525 options.compile_options = v8::ScriptCompiler::kEagerCompile;
4526 options.code_cache_options =
4534 options.streaming_compile = true;
4538 options.streaming_compile = false;
4541 options.trace_enabled = true;
4544 options.trace_path = argv[i] + 13;
4547 options.trace_config = argv[i] + 15;
4550 options.enable_inspector = true;
4553 options.lcov_file = argv[i] + 7;
4556 options.disable_in_process_stack_traces = true;
4560 options.read_from_tcp_port = atoi(argv[i] + 21);
4564 options.enable_os_system = true;
4567 options.quiet_load = true;
4570 options.thread_pool_size = atoi(argv[i] + 19);
4574 options.stress_delay_tasks = true;
4577 options.cpu_profiler = true;
4580 options.cpu_profiler = true;
4581 options.cpu_profiler_print = true;
4584 options.stress_deserialize = true;
4587 options.web_snapshot_config = argv[i] + 22;
4590 options.web_snapshot_output = argv[i] + 22;
4593 options.d8_web_snapshot_api = true;
4596 options.compile_only = true;
4599 options.repeat_compile = atoi(argv[i] + 17);
4603 options.fuzzilli_enable_builtins_coverage = false;
4606 options.fuzzilli_coverage_statistics = true;
4610 DCHECK(options.fuzzy_module_file_extensions);
4611 options.fuzzy_module_file_extensions = false;
4615 options.enable_system_instrumentation = true;
4616 options.trace_enabled = true;
4628 options.wasm_trap_handler = true;
4631 options.wasm_trap_handler = false;
4635 options.expose_fast_api = true;
4644 if (options.stress_opt && no_always_opt && check_d8_flag_contradictions) {
4650 " shell [options] [--shell] [<file>...]\n"
4651 " d8 [options] [-e <string>] [--shell] [[--module|--web-snapshot]"
4661 options.mock_arraybuffer_allocator = i::FLAG_mock_arraybuffer_allocator;
4662 options.mock_arraybuffer_allocator_limit =
4665 options.multi_mapped_mock_allocator = i::FLAG_multi_mapped_mock_allocator;
4668 if (i::FLAG_stress_snapshot && options.expose_fast_api &&
4674 options.isolate_sources = new SourceGroup[options.num_isolates];
4675 SourceGroup* current = options.isolate_sources;
4686 // Pass on to SourceGroup, which understands these options.
4689 printf("Warning: unknown flag %s.\nTry --help for options\n", str);
4700 if (!logfile_per_isolate && options.num_isolates) {
4708 for (int i = 1; i < options.num_isolates; ++i) {
4709 options.isolate_sources[i].StartExecuteInThread();
4714 if (options.lcov_file) {
4727 InspectorClient inspector_client(context, options.enable_inspector);
4729 if (!options.isolate_sources[0].Execute(isolate)) success = false;
4735 WriteLcovData(isolate, options.lcov_file);
4756 for (int i = 1; i < options.num_isolates; ++i) {
4758 options.isolate_sources[i].JoinThread();
4760 options.isolate_sources[i].WaitForThread();
4773 if (Shell::options.no_fail) return 0;
4774 return (success == Shell::options.expected_to_throw ? 1 : 0);
4778 if (options.send_idle_notification) {
4784 if (options.invoke_weak_callbacks) {
4798 DCHECK(options.streaming_compile);
4804 DCHECK(options.streaming_compile);
4869 bool should_wait = (options.wait_for_background_tasks &&
4905 if (options.ignore_unhandled_promises) return true;
5282 v8::V8::InitializeICUDefaultLocation(argv[0], options.icu_data_file);
5285 if (options.icu_locale != nullptr) {
5286 icu::Locale locale(options.icu_locale);
5293 options.disable_in_process_stack_traces
5299 if (options.trace_enabled && !i::FLAG_verify_predictable) {
5302 if (!options.enable_system_instrumentation) {
5304 options.trace_path ? options.trace_path : "v8_trace.json";
5324 if (options.enable_system_instrumentation) {
5345 options.thread_pool_size, v8::platform::IdleTaskSupport::kEnabled,
5351 if (options.stress_delay_tasks) {
5372 if (options.snapshot_blob) {
5373 v8::V8::InitializeExternalStartupDataFromFile(options.snapshot_blob);
5382 options.mock_arraybuffer_allocator_limit * options.num_isolates;
5384 memory_limit >= options.mock_arraybuffer_allocator_limit
5390 if (options.mock_arraybuffer_allocator) {
5397 } else if (options.multi_mapped_mock_allocator) {
5412 if (options.dump_counters || options.dump_counters_nvp ||
5420 if (V8_TRAP_HANDLER_SUPPORTED && options.wasm_trap_handler) {
5462 if (options.trace_enabled) {
5464 if (options.trace_config) {
5466 char* trace_config_json_str = ReadChars(options.trace_config, &size);
5473 if (options.enable_system_instrumentation) {
5481 if (options.cpu_profiler) {
5487 if (options.stress_opt) {
5488 options.stress_runs = D8Testing::GetStressRuns();
5489 for (int i = 0; i < options.stress_runs && result == 0; i++) {
5491 options.stress_runs.get());
5493 bool last_run = i == options.stress_runs - 1;
5499 options.stress_runs = i::FLAG_stress_runs;
5500 for (int i = 0; i < options.stress_runs && result == 0; i++) {
5502 options.stress_runs.get());
5503 bool last_run = i == options.stress_runs - 1;
5506 } else if (options.code_cache_options !=
5534 // Change the options to consume cache
5535 DCHECK(options.compile_options == v8::ScriptCompiler::kEagerCompile ||
5536 options.compile_options ==
5538 options.compile_options.Overwrite(
5540 options.code_cache_options.Overwrite(
5546 options.compile_options.Overwrite(
5563 if (options.cpu_profiler) {
5566 if (options.cpu_profiler_print) {
5586 if (options.fuzzilli_enable_builtins_coverage) {
5591 if (options.fuzzilli_coverage_statistics) {
5609 if (options.fuzzilli_enable_builtins_coverage) {
5621 if (options.trace_enabled) {