@@ -70,15 +70,15 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
70
70
StringView webdriver_content_ipc_path;
71
71
bool enable_callgrind_profiling = false ;
72
72
bool enable_sql_database = false ;
73
- bool use_javascript_bytecode = false ;
73
+ bool use_ast_interpreter = false ;
74
74
75
75
Core::ArgsParser args_parser;
76
76
args_parser.set_general_help (" The Ladybird web browser :^)" );
77
77
args_parser.add_positional_argument (raw_url, " URL to open" , " url" , Core::ArgsParser::Required::No);
78
78
args_parser.add_option (webdriver_content_ipc_path, " Path to WebDriver IPC for WebContent" , " webdriver-content-path" , 0 , " path" );
79
79
args_parser.add_option (enable_callgrind_profiling, " Enable Callgrind profiling" , " enable-callgrind-profiling" , ' P' );
80
80
args_parser.add_option (enable_sql_database, " Enable SQL database" , " enable-sql-database" , 0 );
81
- args_parser.add_option (use_javascript_bytecode , " Enable JavaScript bytecode VM " , " use-bytecode " , 0 );
81
+ args_parser.add_option (use_ast_interpreter , " Enable JavaScript AST interpreter (deprecated) " , " ast " , 0 );
82
82
args_parser.parse (arguments);
83
83
84
84
auto get_formatted_url = [&](StringView const & raw_url) -> ErrorOr<URL> {
@@ -101,7 +101,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
101
101
auto cookie_jar = database ? TRY (Browser::CookieJar::create (*database)) : Browser::CookieJar::create ();
102
102
103
103
s_settings = adopt_own_if_nonnull (new Browser::Settings ());
104
- BrowserWindow window (cookie_jar, webdriver_content_ipc_path, enable_callgrind_profiling ? WebView::EnableCallgrindProfiling::Yes : WebView::EnableCallgrindProfiling::No, use_javascript_bytecode ? WebView::UseJavaScriptBytecode::Yes : WebView::UseJavaScriptBytecode::No );
104
+ BrowserWindow window (cookie_jar, webdriver_content_ipc_path, enable_callgrind_profiling ? WebView::EnableCallgrindProfiling::Yes : WebView::EnableCallgrindProfiling::No, use_ast_interpreter ? WebView::UseJavaScriptBytecode::No : WebView::UseJavaScriptBytecode::Yes );
105
105
window.setWindowTitle (" Ladybird" );
106
106
window.resize (800 , 600 );
107
107
window.show ();
0 commit comments