| Index: src/heap/mark-compact.cc
|
| diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc
|
| index b929a8351d967ea40a8714c38741f315c0ab251d..e8f8c0318fd143c4bad6634338522973b9e13034 100644
|
| --- a/src/heap/mark-compact.cc
|
| +++ b/src/heap/mark-compact.cc
|
| @@ -230,14 +230,7 @@ class EvacuationVerifier : public ObjectVisitor, public RootVisitor {
|
| protected:
|
| explicit EvacuationVerifier(Heap* heap) : heap_(heap) {}
|
|
|
| - void VerifyPointers(Object** start, Object** end) {
|
| - for (Object** current = start; current < end; current++) {
|
| - if ((*current)->IsHeapObject()) {
|
| - HeapObject* object = HeapObject::cast(*current);
|
| - CHECK(!MarkCompactCollector::IsOnEvacuationCandidate(object));
|
| - }
|
| - }
|
| - }
|
| + virtual void VerifyPointers(Object** start, Object** end) = 0;
|
|
|
| void VerifyRoots(VisitMode mode);
|
| void VerifyEvacuationOnPage(Address start, Address end);
|
| @@ -294,6 +287,16 @@ class FullEvacuationVerifier : public EvacuationVerifier {
|
| VerifyEvacuation(heap_->code_space());
|
| VerifyEvacuation(heap_->map_space());
|
| }
|
| +
|
| + protected:
|
| + void VerifyPointers(Object** start, Object** end) override {
|
| + for (Object** current = start; current < end; current++) {
|
| + if ((*current)->IsHeapObject()) {
|
| + HeapObject* object = HeapObject::cast(*current);
|
| + CHECK(!MarkCompactCollector::IsOnEvacuationCandidate(object));
|
| + }
|
| + }
|
| + }
|
| };
|
|
|
| } // namespace
|
|
|