Index: third_party/WebKit/Source/platform/heap/MarkingVisitorImpl.h |
diff --git a/third_party/WebKit/Source/platform/heap/MarkingVisitorImpl.h b/third_party/WebKit/Source/platform/heap/MarkingVisitorImpl.h |
index 4b2f56586ef2a20ed9dcb64dc4c2de7709f10298..877fbfd7e81b35adc97513ad3799633b2ff3823c 100644 |
--- a/third_party/WebKit/Source/platform/heap/MarkingVisitorImpl.h |
+++ b/third_party/WebKit/Source/platform/heap/MarkingVisitorImpl.h |
@@ -87,18 +87,16 @@ class MarkingVisitorImpl { |
#endif |
inline void registerMovingObjectReference(MovableReference* slot) { |
- if (toDerived()->getMarkingMode() != |
- VisitorMarkingMode::GlobalMarkingWithCompaction) |
- return; |
+ DCHECK(toDerived()->getMarkingMode() == |
+ VisitorMarkingMode::GlobalMarkingWithCompaction); |
toDerived()->heap().registerMovingObjectReference(slot); |
} |
inline void registerMovingObjectCallback(MovableReference reference, |
MovingObjectCallback callback, |
void* callbackData) { |
- if (toDerived()->getMarkingMode() != |
- VisitorMarkingMode::GlobalMarkingWithCompaction) |
- return; |
+ DCHECK(toDerived()->getMarkingMode() == |
+ VisitorMarkingMode::GlobalMarkingWithCompaction); |
toDerived()->heap().registerMovingObjectCallback(reference, callback, |
callbackData); |
} |