Index: src/heap/incremental-marking.h |
diff --git a/src/heap/incremental-marking.h b/src/heap/incremental-marking.h |
index e0b449a124022f767848e0aa753c6c0f8b701aa3..fb6e5cf6ab47be099da81231d24fe519c2b012de 100644 |
--- a/src/heap/incremental-marking.h |
+++ b/src/heap/incremental-marking.h |
@@ -8,12 +8,15 @@ |
#include "src/cancelable-task.h" |
#include "src/execution.h" |
#include "src/heap/incremental-marking-job.h" |
-#include "src/heap/mark-compact.h" |
#include "src/objects.h" |
namespace v8 { |
namespace internal { |
+// Forward declarations. |
+class MarkBit; |
+class PagedSpace; |
+ |
class IncrementalMarking { |
public: |
enum State { STOPPED, SWEEPING, MARKING, COMPLETE }; |
@@ -172,7 +175,7 @@ class IncrementalMarking { |
SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); |
} |
- inline void SetNewSpacePageFlags(NewSpacePage* chunk) { |
+ inline void SetNewSpacePageFlags(MemoryChunk* chunk) { |
SetNewSpacePageFlags(chunk, IsMarking()); |
} |
@@ -222,7 +225,7 @@ class IncrementalMarking { |
static void SetOldSpacePageFlags(MemoryChunk* chunk, bool is_marking, |
bool is_compacting); |
- static void SetNewSpacePageFlags(NewSpacePage* chunk, bool is_marking); |
+ static void SetNewSpacePageFlags(MemoryChunk* chunk, bool is_marking); |
INLINE(void ProcessMarkingDeque()); |