Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 3b5ee6e81b30516d5a29812269f8bb76a4ef3e45..ad83dfb8c7e02843df2b4851d5e14e5131e1bd2d 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -36,7 +36,7 @@ |
#include "src/regexp/jsregexp.h" |
#include "src/runtime-profiler.h" |
#include "src/snapshot/natives.h" |
-#include "src/snapshot/serialize.h" |
+#include "src/snapshot/serializer-common.h" |
#include "src/snapshot/snapshot.h" |
#include "src/tracing/trace-event.h" |
#include "src/type-feedback-vector.h" |
@@ -1143,7 +1143,8 @@ bool Heap::ReserveSpace(Reservation* reservations) { |
static const int kThreshold = 20; |
while (gc_performed && counter++ < kThreshold) { |
gc_performed = false; |
- for (int space = NEW_SPACE; space < Serializer::kNumberOfSpaces; space++) { |
+ for (int space = NEW_SPACE; space < SerializerDeserializer::kNumberOfSpaces; |
+ space++) { |
Reservation* reservation = &reservations[space]; |
DCHECK_LE(1, reservation->length()); |
if (reservation->at(0).size == 0) continue; |
@@ -1169,7 +1170,7 @@ bool Heap::ReserveSpace(Reservation* reservations) { |
Address free_space_address = free_space->address(); |
CreateFillerObjectAt(free_space_address, size, |
ClearRecordedSlots::kNo); |
- DCHECK(space < Serializer::kNumberOfPreallocatedSpaces); |
+ DCHECK(space < SerializerDeserializer::kNumberOfPreallocatedSpaces); |
chunk.start = free_space_address; |
chunk.end = free_space_address + size; |
} else { |