Commit 7899ea4a authored by Maciej Goszczycki's avatar Maciej Goszczycki Committed by Commit Bot

[d8][cleanup] Remove ShellOptions initializer list

Bug: v8:9183
Change-Id: I7d6129d340cf573192ef9c885ef8afd772ec763b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1611547
Commit-Queue: Maciej Goszczycki <goszczycki@google.com>
Commit-Queue: Dan Elphick <delphick@chromium.org>
Auto-Submit: Maciej Goszczycki <goszczycki@google.com>
Reviewed-by: 's avatarDan Elphick <delphick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61572}
parent 331ce91c
...@@ -307,63 +307,36 @@ class ShellOptions { ...@@ -307,63 +307,36 @@ class ShellOptions {
kProduceCacheAfterExecute kProduceCacheAfterExecute
}; };
ShellOptions()
: send_idle_notification(false),
invoke_weak_callbacks(false),
omit_quit(false),
wait_for_wasm(true),
stress_opt(false),
stress_deopt(false),
stress_runs(1),
interactive_shell(false),
test_shell(false),
expected_to_throw(false),
mock_arraybuffer_allocator(false),
enable_inspector(false),
num_isolates(1),
compile_options(v8::ScriptCompiler::kNoCompileOptions),
stress_background_compile(false),
code_cache_options(CodeCacheOptions::kNoProduceCache),
isolate_sources(nullptr),
icu_data_file(nullptr),
natives_blob(nullptr),
snapshot_blob(nullptr),
trace_enabled(false),
trace_path(nullptr),
trace_config(nullptr),
lcov_file(nullptr),
disable_in_process_stack_traces(false),
read_from_tcp_port(-1) {}
~ShellOptions() { delete[] isolate_sources; } ~ShellOptions() { delete[] isolate_sources; }
bool send_idle_notification; bool send_idle_notification = false;
bool invoke_weak_callbacks; bool invoke_weak_callbacks = false;
bool omit_quit; bool omit_quit = false;
bool wait_for_wasm; bool wait_for_wasm = true;
bool stress_opt; bool stress_opt = false;
bool stress_deopt; bool stress_deopt = false;
int stress_runs; int stress_runs = 1;
bool interactive_shell; bool interactive_shell = false;
bool test_shell; bool test_shell = false;
bool expected_to_throw; bool expected_to_throw = false;
bool mock_arraybuffer_allocator; bool mock_arraybuffer_allocator = false;
size_t mock_arraybuffer_allocator_limit = 0; size_t mock_arraybuffer_allocator_limit = 0;
bool enable_inspector; bool enable_inspector = false;
int num_isolates; int num_isolates = 1;
v8::ScriptCompiler::CompileOptions compile_options; v8::ScriptCompiler::CompileOptions compile_options =
bool stress_background_compile; v8::ScriptCompiler::kNoCompileOptions;
CodeCacheOptions code_cache_options; bool stress_background_compile = false;
SourceGroup* isolate_sources; CodeCacheOptions code_cache_options = CodeCacheOptions::kNoProduceCache;
const char* icu_data_file; SourceGroup* isolate_sources = nullptr;
const char* natives_blob; const char* icu_data_file = nullptr;
const char* snapshot_blob; const char* natives_blob = nullptr;
bool trace_enabled; const char* snapshot_blob = nullptr;
const char* trace_path; bool trace_enabled = false;
const char* trace_config; const char* trace_path = nullptr;
const char* lcov_file; const char* trace_config = nullptr;
bool disable_in_process_stack_traces; const char* lcov_file = nullptr;
int read_from_tcp_port; bool disable_in_process_stack_traces = false;
int read_from_tcp_port = -1;
bool enable_os_system = false; bool enable_os_system = false;
bool quiet_load = false; bool quiet_load = false;
int thread_pool_size = 0; int thread_pool_size = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment