Index: src/serialize.h |
diff --git a/src/serialize.h b/src/serialize.h |
index dfc9de210060b908f3556ce7578b86f58eb0ae12..b76abbcbac7e3895b2a8a8b3fcee9aa32ab2f64a 100644 |
--- a/src/serialize.h |
+++ b/src/serialize.h |
@@ -734,6 +734,8 @@ class Serializer : public SerializerDeserializer { |
return max_chunk_size_[space]; |
} |
+ SnapshotByteSink* sink() const { return sink_; } |
+ |
Isolate* isolate_; |
SnapshotByteSink* sink_; |
@@ -742,8 +744,9 @@ class Serializer : public SerializerDeserializer { |
BackReferenceMap back_reference_map_; |
RootIndexMap root_index_map_; |
- friend class ObjectSerializer; |
friend class Deserializer; |
+ friend class ObjectSerializer; |
+ friend class SnapshotData; |
private: |
CodeAddressMap* code_address_map_; |
@@ -897,7 +900,7 @@ class CodeSerializer : public Serializer { |
class SnapshotData : public SerializedData { |
public: |
// Used when producing. |
- SnapshotData(const SnapshotByteSink& sink, const Serializer& ser); |
+ explicit SnapshotData(const Serializer& ser); |
// Used when consuming. |
explicit SnapshotData(const Vector<const byte> snapshot) |