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

Unified Diff: runtime/vm/raw_object_snapshot.cc

Issue 1771483002: Include the canonical static closure when serializing ClosureData. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | tests/isolate/isolate.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object_snapshot.cc
diff --git a/runtime/vm/raw_object_snapshot.cc b/runtime/vm/raw_object_snapshot.cc
index ed22fa28780d1d15c9c664096d6d47e28bfb65eb..d02909c40cd87194a6527e2618c9295b151e3267 100644
--- a/runtime/vm/raw_object_snapshot.cc
+++ b/runtime/vm/raw_object_snapshot.cc
@@ -732,9 +732,8 @@ void RawClosureData::WriteTo(SnapshotWriter* writer,
// Signature type.
writer->WriteObjectImpl(ptr()->signature_type_, kAsInlinedObject);
- // Static closure/Closure allocation stub.
- // We don't write the closure or allocation stub in the snapshot.
- writer->WriteVMIsolateObject(kNullObject);
+ // Canonical static closure.
+ writer->WriteObjectImpl(ptr()->closure_, kAsInlinedObject);
}
« no previous file with comments | « no previous file | tests/isolate/isolate.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698