Index: runtime/vm/dart.cc |
=================================================================== |
--- runtime/vm/dart.cc (revision 265) |
+++ runtime/vm/dart.cc (working copy) |
@@ -51,7 +51,8 @@ |
} |
-Isolate* Dart::CreateIsolate(void* snapshot_buffer, void* data) { |
+Isolate* Dart::CreateIsolate(const Dart_Snapshot* snapshot_buffer, |
+ void* data) { |
// Create and initialize a new isolate. |
Isolate* isolate = Isolate::Init(); |
Zone zone; |
@@ -65,7 +66,7 @@ |
// Initialize from snapshot (this should replicate the functionality |
// of Object::Init(..) in a regular isolate creation path. |
Object::InitFromSnapshot(isolate); |
- Snapshot* snapshot = Snapshot::SetupFromBuffer(snapshot_buffer); |
+ const Snapshot* snapshot = Snapshot::SetupFromBuffer(snapshot_buffer); |
SnapshotReader reader(snapshot, isolate->heap(), isolate->object_store()); |
reader.ReadFullSnapshot(); |
} |