Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 0af1324e1b17bfc8d23405ee8c767592979492c1..53471b47aaacf7de43e759fd3b7df1e2e06ddc3c 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -10586,12 +10586,8 @@ class JSArray: public JSObject { |
static const int kLengthOffset = JSObject::kHeaderSize; |
static const int kSize = kLengthOffset + kPointerSize; |
- // (512 * KB - 384) is the Page::kMaxRegularHeapObjectSize defined in spaces.h |
- // which we do not want to include in objects.h |
- // Note that Page::kMaxRegularHeapObjectSize has to be in sync with |
- // kInitialMaxFastElementArray which is checked in a DCHECK in heap.cc. |
static const int kInitialMaxFastElementArray = |
- (512 * KB - 384 - FixedArray::kHeaderSize - kSize - |
+ (kMaxRegularHeapObjectSize - FixedArray::kHeaderSize - kSize - |
AllocationMemento::kSize) / |
kPointerSize; |