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

Unified Diff: runtime/vm/dart.cc

Issue 2995723002: - Convert all isolate flags to a bit field. (Closed)
Patch Set: Address build error. Created 3 years, 4 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 | « runtime/vm/dart.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « runtime/vm/dart.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698