Index: src/heap/incremental-marking.h |
diff --git a/src/heap/incremental-marking.h b/src/heap/incremental-marking.h |
index 5f2b60fd2472bc22270cc652113e610ee7b4f3e3..ee1290e6c89de06b7be1a1b255ac971045a7e3cb 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 }; |
@@ -181,7 +184,7 @@ class IncrementalMarking { |
SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); |
} |
- inline void SetNewSpacePageFlags(NewSpacePage* chunk) { |
+ inline void SetNewSpacePageFlags(MemoryChunk* chunk) { |
SetNewSpacePageFlags(chunk, IsMarking()); |
} |
@@ -231,7 +234,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()); |