Index: src/serialize.cc |
diff --git a/src/serialize.cc b/src/serialize.cc |
index 64cce1a97f4d36fe0235b97c30251b67a230819c..28480e649c7cb9e69f4a3800ae39b6cf0aad2bf6 100644 |
--- a/src/serialize.cc |
+++ b/src/serialize.cc |
@@ -2462,12 +2462,11 @@ void SerializedData::AllocateData(int size) { |
} |
-SnapshotData::SnapshotData(const SnapshotByteSink& sink, |
- const Serializer& ser) { |
+SnapshotData::SnapshotData(const Serializer& ser) { |
DisallowHeapAllocation no_gc; |
List<Reservation> reservations; |
ser.EncodeReservations(&reservations); |
- const List<byte>& payload = sink.data(); |
+ const List<byte>& payload = ser.sink()->data(); |
// Calculate sizes. |
int reservation_size = reservations.length() * kInt32Size; |