Chromium Code Reviews| Index: src/heap.cc |
| diff --git a/src/heap.cc b/src/heap.cc |
| index d4425ea6a1bc8961e5344acdc8991094f8e66743..8674b00b656227ed6ec5acfeb3af7e92a0533c65 100644 |
| --- a/src/heap.cc |
| +++ b/src/heap.cc |
| @@ -190,6 +190,13 @@ Heap::Heap() |
| RememberUnmappedPage(NULL, false); |
| ClearObjectStats(true); |
| + |
| + // We rely on being able to allocate new arrays in paged spaces. |
| + ASSERT(MaxRegularSpaceAllocationSize() >= |
|
Michael Starzinger
2013/09/02 13:12:43
The initial_semispace_size might change at runtime
Jakob Kummerow
2013/09/02 13:35:11
Good point. Done.
|
| + (JSArray::kSize + |
| + FixedArray::kHeaderSize + |
| + JSObject::kInitialMaxFastElementArray * kPointerSize + |
|
Michael Starzinger
2013/09/02 13:12:43
nit: Lets use FixedArray::SizeFor for (part of) th
Jakob Kummerow
2013/09/02 13:35:11
Done.
|
| + AllocationMemento::kSize)); |
| } |