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

Unified Diff: runtime/vm/dart.cc

Issue 2558673002: Add Kernel Isolate (Closed)
Patch Set: wip Created 4 years 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 07547deb87347f40a619506277052daf862dd358..6736835c9d29eae68e0eec1c454d62ac95638b30 100644
--- a/runtime/vm/dart.cc
+++ b/runtime/vm/dart.cc
@@ -16,6 +16,7 @@
#include "vm/handles.h"
#include "vm/heap.h"
#include "vm/isolate.h"
+#include "vm/kernel_isolate.h"
#include "vm/message_handler.h"
#include "vm/metrics.h"
#include "vm/object.h"
@@ -312,6 +313,10 @@ char* Dart::InitOnce(const uint8_t* vm_isolate_snapshot,
ServiceIsolate::Run();
+#ifndef DART_PRECOMPILED_RUNTIME
+ KernelIsolate::Run();
+#endif // DART_PRECOMPILED_RUNTIME
+
return NULL;
}
@@ -599,6 +604,9 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer,
I->class_table()->Print();
}
+#ifndef DART_PRECOMPILED_RUNTIME
+ KernelIsolate::InitCallback(I);
+#endif
ServiceIsolate::MaybeMakeServiceIsolate(I);
if (!ServiceIsolate::IsServiceIsolate(I)) {
I->message_handler()->set_should_pause_on_start(

Powered by Google App Engine
This is Rietveld 408576698