5 #ifndef V8_SNAPSHOT_SERIALIZER_ALLOCATOR_H_ 6 #define V8_SNAPSHOT_SERIALIZER_ALLOCATOR_H_ 8 #include "src/snapshot/serializer-common.h" 24 void UseCustomChunkSize(
uint32_t chunk_size);
27 bool BackReferenceIsAlreadyAllocated(
31 std::vector<SerializedData::Reservation> EncodeReservations()
const;
33 void OutputStatistics();
40 static constexpr
int kNumberOfPreallocatedSpaces =
41 SerializerDeserializer::kNumberOfPreallocatedSpaces;
42 static constexpr
int kNumberOfSpaces =
43 SerializerDeserializer::kNumberOfSpaces;
49 uint32_t pending_chunk_[kNumberOfPreallocatedSpaces];
50 std::vector<uint32_t> completed_chunks_[kNumberOfPreallocatedSpaces];
56 uint32_t large_objects_total_size_ = 0;
57 uint32_t seen_large_objects_index_ = 0;
64 uint32_t seen_backing_stores_index_ = 1;
77 #endif // V8_SNAPSHOT_SERIALIZER_ALLOCATOR_H_