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

Unified Diff: runtime/vm/snapshot.cc

Issue 1345053003: Write the contents of ICData and ObjectPools more eagerly and the contents of Code and Functions (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
« runtime/vm/raw_object_snapshot.cc ('K') | « runtime/vm/raw_object_snapshot.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.cc
diff --git a/runtime/vm/snapshot.cc b/runtime/vm/snapshot.cc
index 515d5a560cf43df207f5c528d7733229d7ebf6e4..661ad53503ff443f8985385dd697bb3774c00817 100644
--- a/runtime/vm/snapshot.cc
+++ b/runtime/vm/snapshot.cc
@@ -2226,7 +2226,10 @@ void SnapshotWriter::WriteObjectImpl(RawObject* raw, bool as_reference) {
return;
}
- if (as_reference && !raw->IsCanonical()) {
+ if (as_reference &&
+ !raw->IsCanonical() &&
+ !raw->IsCode() &&
+ !raw->IsInstructions()) {
WriteObjectRef(raw);
} else {
// Object is being serialized, add it to the forward ref list and mark
« runtime/vm/raw_object_snapshot.cc ('K') | « runtime/vm/raw_object_snapshot.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698