Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 880fb1c806532bef5c40523962d23273083cb149..7dbc9f41213960045901a72e1792b283d3a3daee 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -10048,14 +10048,9 @@ |
static const int kLengthOffset = JSObject::kHeaderSize; |
static const int kSize = kLengthOffset + kPointerSize; |
- // 128 * KB 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 = |
- (128 * KB * (i::kPointerSize / 4) - FixedArray::kHeaderSize - kSize - |
- AllocationMemento::kSize) / |
- kPointerSize; |
+ // Note that Page::kMaxRegularHeapObjectSize puts a limit on |
+ // permissible values (see the DCHECK in heap.cc). |
+ static const int kInitialMaxFastElementArray = 100000; |
private: |
DISALLOW_IMPLICIT_CONSTRUCTORS(JSArray); |