Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1128)

Unified Diff: mojo/dart/embedder/dart_controller.cc

Issue 1902053002: Performance tweaks for Mojo Dart Controller (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/embedder/dart_controller.cc
diff --git a/mojo/dart/embedder/dart_controller.cc b/mojo/dart/embedder/dart_controller.cc
index a47fd9a71d56824157c1378c1a4bf54c6084678d..b67dded7d16f33c4dd3dd297eb39574bcaeeb84e 100644
--- a/mojo/dart/embedder/dart_controller.cc
+++ b/mojo/dart/embedder/dart_controller.cc
@@ -612,6 +612,12 @@ void DartController::InitVmIfNeeded(Dart_EntropySource entropy,
flags.push_back("--enable_mirrors=false");
// Force await and async to be keywords even outside of an async function.
flags.push_back("--await_is_keyword");
+ // Enable background compilation
+ flags.push_back("--background_compilation=true");
+ // Disable code write protection
+ // TODO(johnmccutchan): This might be a security issue once Mojo gets a
+ // security sandbox. Revisit when that happens.
+ flags.push_back("--write_protect_code=false");
// Add remaining flags.
for (int i = 0; i < vm_flags_count; ++i) {
flags.push_back(vm_flags[i]);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698