Explorar o código

Ladybird: Remove ability to run with AST interpreter

Andreas Kling %!s(int64=2) %!d(string=hai) anos
pai
achega
e769776bdd
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      Ladybird/Qt/main.cpp

+ 1 - 3
Ladybird/Qt/main.cpp

@@ -77,7 +77,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
     StringView webdriver_content_ipc_path;
     StringView webdriver_content_ipc_path;
     bool enable_callgrind_profiling = false;
     bool enable_callgrind_profiling = false;
     bool enable_sql_database = false;
     bool enable_sql_database = false;
-    bool use_ast_interpreter = false;
     bool use_lagom_networking = false;
     bool use_lagom_networking = false;
 
 
     Core::ArgsParser args_parser;
     Core::ArgsParser args_parser;
@@ -86,7 +85,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
     args_parser.add_option(webdriver_content_ipc_path, "Path to WebDriver IPC for WebContent", "webdriver-content-path", 0, "path");
     args_parser.add_option(webdriver_content_ipc_path, "Path to WebDriver IPC for WebContent", "webdriver-content-path", 0, "path");
     args_parser.add_option(enable_callgrind_profiling, "Enable Callgrind profiling", "enable-callgrind-profiling", 'P');
     args_parser.add_option(enable_callgrind_profiling, "Enable Callgrind profiling", "enable-callgrind-profiling", 'P');
     args_parser.add_option(enable_sql_database, "Enable SQL database", "enable-sql-database", 0);
     args_parser.add_option(enable_sql_database, "Enable SQL database", "enable-sql-database", 0);
-    args_parser.add_option(use_ast_interpreter, "Enable JavaScript AST interpreter (deprecated)", "ast", 0);
     args_parser.add_option(use_lagom_networking, "Enable Lagom servers for networking", "enable-lagom-networking", 0);
     args_parser.add_option(use_lagom_networking, "Enable Lagom servers for networking", "enable-lagom-networking", 0);
     args_parser.parse(arguments);
     args_parser.parse(arguments);
 
 
@@ -110,7 +108,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
     auto cookie_jar = database ? TRY(Browser::CookieJar::create(*database)) : Browser::CookieJar::create();
     auto cookie_jar = database ? TRY(Browser::CookieJar::create(*database)) : Browser::CookieJar::create();
 
 
     Ladybird::s_settings = adopt_own_if_nonnull(new Ladybird::Settings());
     Ladybird::s_settings = adopt_own_if_nonnull(new Ladybird::Settings());
-    Ladybird::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, use_lagom_networking ? Ladybird::UseLagomNetworking::Yes : Ladybird::UseLagomNetworking::No);
+    Ladybird::BrowserWindow window(cookie_jar, webdriver_content_ipc_path, enable_callgrind_profiling ? WebView::EnableCallgrindProfiling::Yes : WebView::EnableCallgrindProfiling::No, WebView::UseJavaScriptBytecode::Yes, use_lagom_networking ? Ladybird::UseLagomNetworking::Yes : Ladybird::UseLagomNetworking::No);
     window.setWindowTitle("Ladybird");
     window.setWindowTitle("Ladybird");
     window.resize(800, 600);
     window.resize(800, 600);
     window.show();
     window.show();