Index: src/incremental-marking.cc |
diff --git a/src/incremental-marking.cc b/src/incremental-marking.cc |
index 8cdcdb5e5e4364102baee95166d7424fa7a503dc..3030bdf8cacdccf8e66e6e54f9d00bbe95fa2302 100644 |
--- a/src/incremental-marking.cc |
+++ b/src/incremental-marking.cc |
@@ -338,10 +338,9 @@ class IncrementalMarkingMarkingVisitor |
class IncrementalMarkingRootMarkingVisitor : public ObjectVisitor { |
public: |
- IncrementalMarkingRootMarkingVisitor(Heap* heap, |
- IncrementalMarking* incremental_marking) |
- : heap_(heap), |
- incremental_marking_(incremental_marking) { |
+ explicit IncrementalMarkingRootMarkingVisitor( |
+ IncrementalMarking* incremental_marking) |
+ : incremental_marking_(incremental_marking) { |
} |
void VisitPointer(Object** p) { |
@@ -368,7 +367,6 @@ class IncrementalMarkingRootMarkingVisitor : public ObjectVisitor { |
} |
} |
- Heap* heap_; |
IncrementalMarking* incremental_marking_; |
}; |
@@ -628,7 +626,7 @@ void IncrementalMarking::StartMarking(CompactionFlag flag) { |
} |
// Mark strong roots grey. |
- IncrementalMarkingRootMarkingVisitor visitor(heap_, this); |
+ IncrementalMarkingRootMarkingVisitor visitor(this); |
heap_->IterateStrongRoots(&visitor, VISIT_ONLY_STRONG); |
// Ready to start incremental marking. |