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

Unified Diff: runtime/vm/dart.cc

Issue 1318803002: Toward precompiled snapshots. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: READ_POINTERS Created 5 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
Index: runtime/vm/dart.cc
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc
index 70b0504383e795637d3b4f81cad98cb712bc5391..aca32858937db9e09182fd852c57c96b48d13bb1 100644
--- a/runtime/vm/dart.cc
+++ b/runtime/vm/dart.cc
@@ -142,6 +142,7 @@ const char* Dart::InitOnce(const uint8_t* vm_isolate_snapshot,
ASSERT(snapshot->kind() == Snapshot::kFull);
VmIsolateSnapshotReader reader(snapshot->content(),
snapshot->length(),
+ instructions_snapshot,
zone.GetZone());
const Error& error = Error::Handle(reader.ReadVmIsolateSnapshot());
if (!error.IsNull()) {
@@ -284,6 +285,7 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer, void* data) {
}
IsolateSnapshotReader reader(snapshot->content(),
snapshot->length(),
+ Object::instructions_snapshot_buffer(),
isolate,
zone.GetZone());
const Error& error = Error::Handle(reader.ReadFullSnapshot());

Powered by Google App Engine
This is Rietveld 408576698