Index: src/snapshot/deserializer.cc |
diff --git a/src/snapshot/deserializer.cc b/src/snapshot/deserializer.cc |
index d8df2d0d56fcb39b01f108212b554791de012118..269a9a890d292f2da7403227eae3f6fff54cc93f 100644 |
--- a/src/snapshot/deserializer.cc |
+++ b/src/snapshot/deserializer.cc |
@@ -163,12 +163,14 @@ MaybeHandle<HeapObject> Deserializer::DeserializeObject(Isolate* isolate) { |
Deserializer::~Deserializer() { |
// TODO(svenpanne) Re-enable this assertion when v8 initialization is fixed. |
// DCHECK(source_.AtEOF()); |
+#ifdef DEBUG |
for (int space = 0; space < kNumberOfPreallocatedSpaces; space++) { |
int chunk_index = current_chunk_[space]; |
CHECK_EQ(reservations_[space].length(), chunk_index + 1); |
CHECK_EQ(reservations_[space][chunk_index].end, high_water_[space]); |
} |
CHECK_EQ(allocated_maps_.length(), next_map_index_); |
+#endif // DEBUG |
} |
// This is called on the roots. It is the driver of the deserialization |