Index: src/snapshot/serializer.h |
diff --git a/src/snapshot/serializer.h b/src/snapshot/serializer.h |
index 45f891e190c53cc4c0c95ad34e42943fcc2caf1a..ff2c6a979d183695d47c8cff2277f28dc4ced11b 100644 |
--- a/src/snapshot/serializer.h |
+++ b/src/snapshot/serializer.h |
@@ -190,6 +190,7 @@ class Serializer : public SerializerDeserializer { |
// This will return the space for an object. |
SerializerReference AllocateLargeObject(int size); |
+ SerializerReference AllocateMap(); |
SerializerReference Allocate(AllocationSpace space, int size); |
int EncodeExternalReference(Address addr) { |
return external_reference_encoder_.Encode(addr); |
@@ -245,6 +246,8 @@ class Serializer : public SerializerDeserializer { |
uint32_t pending_chunk_[kNumberOfPreallocatedSpaces]; |
List<uint32_t> completed_chunks_[kNumberOfPreallocatedSpaces]; |
uint32_t max_chunk_size_[kNumberOfPreallocatedSpaces]; |
+ // Number of maps that we need to allocate. |
+ uint32_t num_maps_; |
// We map serialized large objects to indexes for back-referencing. |
uint32_t large_objects_total_size_; |