Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index d4425ea6a1bc8961e5344acdc8991094f8e66743..3dcb3838688d212b149592b953ad2727201e75af 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -6746,6 +6746,12 @@ bool Heap::ConfigureHeap(int max_semispace_size, |
RoundUp(max_old_generation_size_, |
Page::kPageSize)); |
+ // We rely on being able to allocate new arrays in paged spaces. |
+ ASSERT(MaxRegularSpaceAllocationSize() >= |
+ (JSArray::kSize + |
+ FixedArray::SizeFor(JSObject::kInitialMaxFastElementArray) + |
+ AllocationMemento::kSize)); |
+ |
configured_ = true; |
return true; |
} |