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

Unified Diff: runtime/vm/dart.h

Issue 2485993002: VM: Support bootstrapping core libraries from Kernel binaries instead of source. (Closed)
Patch Set: Done Created 4 years, 1 month 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.h
diff --git a/runtime/vm/dart.h b/runtime/vm/dart.h
index df31995acda3be789ec8e262bbcf267b27eaa21e..3480fad3d635967f8999132686c96a6b696aa84f 100644
--- a/runtime/vm/dart.h
+++ b/runtime/vm/dart.h
@@ -37,7 +37,15 @@ class Dart : public AllStatic {
static Isolate* CreateIsolate(const char* name_prefix,
const Dart_IsolateFlags& api_flags);
- static RawError* InitializeIsolate(const uint8_t* snapshot, void* data);
+
+ // Initialize an isolate, either from a snapshot, from a Kernel binary, or
+ // from SDK library sources. If the snapshot_buffer is non-NULL,
+ // initialize from a snapshot or a Kernel binary depending on the value of
+ // from_kernel. Otherwise, initialize from sources.
+ static RawError* InitializeIsolate(const uint8_t* snapshot_buffer,
+ intptr_t snapshot_length,
+ bool from_kernel,
+ void* data);
static void RunShutdownCallback();
static void ShutdownIsolate(Isolate* isolate);
static void ShutdownIsolate();

Powered by Google App Engine
This is Rietveld 408576698