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

Unified Diff: src/vm/session.cc

Issue 2067483002: More compact snapshots. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Feedback 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') | no next file with comments »
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 03e7ad273bbac8a35854d931aec7903c6cdcc710..ba75991f2aea4cd2a819d4860e8fbffeaa28aa18 100644
--- a/src/vm/session.cc
+++ b/src/vm/session.cc
@@ -1530,6 +1530,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698