Index: runtime/vm/dart.cc |
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc |
index b4f62b99a3021dd5080d730ffb8432b9d2037b5c..00acbda3b305fc6d3546d081b22c273d9224444a 100644 |
--- a/runtime/vm/dart.cc |
+++ b/runtime/vm/dart.cc |
@@ -118,7 +118,8 @@ char* Dart::InitOnce(const uint8_t* vm_isolate_snapshot, |
Dart_FileWriteCallback file_write, |
Dart_FileCloseCallback file_close, |
Dart_EntropySource entropy_source, |
- Dart_GetVMServiceAssetsArchive get_service_assets) { |
+ Dart_GetVMServiceAssetsArchive get_service_assets, |
+ bool start_kernel_isolate) { |
CheckOffsets(); |
// TODO(iposva): Fix race condition here. |
if (vm_isolate_ != NULL || !Flags::Initialized()) { |
@@ -307,7 +308,9 @@ char* Dart::InitOnce(const uint8_t* vm_isolate_snapshot, |
ServiceIsolate::Run(); |
#ifndef DART_PRECOMPILED_RUNTIME |
- KernelIsolate::Run(); |
+ if (start_kernel_isolate) { |
+ KernelIsolate::Run(); |
+ } |
#endif // DART_PRECOMPILED_RUNTIME |
return NULL; |