Index: src/objects-visiting.h |
diff --git a/src/objects-visiting.h b/src/objects-visiting.h |
index e6ddfed4a7d2ab04ccaf12ba69aeb1665125e0a7..26e79ae5eddf4b1bde097ff62d9c4c54b150787f 100644 |
--- a/src/objects-visiting.h |
+++ b/src/objects-visiting.h |
@@ -135,7 +135,7 @@ class StaticVisitorBase : public AllStatic { |
(base == kVisitJSObject)); |
ASSERT(IsAligned(object_size, kPointerSize)); |
ASSERT(kMinObjectSizeInWords * kPointerSize <= object_size); |
- ASSERT(object_size < Page::kMaxHeapObjectSize); |
+ ASSERT(object_size < Page::kMaxNonCodeHeapObjectSize); |
const VisitorId specialization = static_cast<VisitorId>( |
base + (object_size >> kPointerSizeLog2) - kMinObjectSizeInWords); |