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]); |