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

Unified Diff: runtime/vm/dart.cc

Issue 1162033005: Fix http://dartbug.com/23578: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update to ToT. Created 5 years, 6 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
Index: runtime/vm/dart.cc
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc
index 4b6b5fbfd78d0fae4e3889c7489b90ecd7c10267..d49b7f4b88d8f6de906b8b8ff191a0ce90b31fb5 100644
--- a/runtime/vm/dart.cc
+++ b/runtime/vm/dart.cc
@@ -118,7 +118,13 @@ const char* Dart::InitOnce(const uint8_t* vm_isolate_snapshot,
ASSERT(Flags::Initialized());
const bool is_vm_isolate = true;
Thread::EnsureInit();
- vm_isolate_ = Isolate::Init("vm-isolate", is_vm_isolate);
+
+ // Setup default flags for the VM isolate.
+ Isolate::Flags vm_flags;
+ Dart_IsolateFlags api_flags;
+ vm_flags.CopyTo(&api_flags);
+ vm_isolate_ = Isolate::Init("vm-isolate", api_flags, is_vm_isolate);
+
StackZone zone(vm_isolate_);
HandleScope handle_scope(vm_isolate_);
Heap::Init(vm_isolate_,
@@ -226,9 +232,10 @@ const char* Dart::Cleanup() {
}
-Isolate* Dart::CreateIsolate(const char* name_prefix) {
+Isolate* Dart::CreateIsolate(const char* name_prefix,
+ const Dart_IsolateFlags& api_flags) {
// Create a new isolate.
- Isolate* isolate = Isolate::Init(name_prefix);
+ Isolate* isolate = Isolate::Init(name_prefix, api_flags);
ASSERT(isolate != NULL);
return isolate;
}

Powered by Google App Engine
This is Rietveld 408576698