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

Unified Diff: src/vm/session.cc

Issue 2067483002: More compact snapshots. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/vm/program.cc ('k') | src/vm/snapshot.h » ('j') | src/vm/snapshot.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/vm/session.cc
diff --git a/src/vm/session.cc b/src/vm/session.cc
index d79bca993c029cfa2032b7fde29e2a9bf90c065d..b9dbfb7fe9eb61e27949b3b06c764839de68d6cf 100644
--- a/src/vm/session.cc
+++ b/src/vm/session.cc
@@ -1522,6 +1522,8 @@ bool Session::CreateSnapshot(
program_folder.Fold();
}
+ program()->VerifyObjectPlacements();
+
SnapshotWriter writer(function_offsets, class_offsets);
List<uint8> snapshot = writer.WriteProgram(program());
bool success = writeToDisk
« no previous file with comments | « src/vm/program.cc ('k') | src/vm/snapshot.h » ('j') | src/vm/snapshot.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698