Index: src/heap/objects-visiting.h |
diff --git a/src/heap/objects-visiting.h b/src/heap/objects-visiting.h |
index 303db0eb07589b22152321c8627d00c026716f5e..9c81194b935282f17446e5bda6c15535404be449 100644 |
--- a/src/heap/objects-visiting.h |
+++ b/src/heap/objects-visiting.h |
@@ -132,7 +132,7 @@ class StaticVisitorBase : public AllStatic { |
(base == kVisitJSObject) || (base == kVisitJSApiObject)); |
DCHECK(IsAligned(object_size, kPointerSize)); |
DCHECK(Heap::kMinObjectSizeInWords * kPointerSize <= object_size); |
- DCHECK(object_size <= Page::kMaxRegularHeapObjectSize); |
+ DCHECK(object_size <= kMaxRegularHeapObjectSize); |
DCHECK(!has_unboxed_fields || (base == kVisitJSObject) || |
(base == kVisitJSApiObject)); |