Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index a61ec90c304c67e82267509204a13803a02c7503..4772976d865a66bce7c76c549d315916a11e2969 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -9765,7 +9765,7 @@ static MaybeObject* Allocate(Isolate* isolate, |
Heap* heap = isolate->heap(); |
RUNTIME_ASSERT(IsAligned(size, kPointerSize)); |
RUNTIME_ASSERT(size > 0); |
- RUNTIME_ASSERT(size <= heap->MaxRegularSpaceAllocationSize()); |
+ RUNTIME_ASSERT(size <= Page::kMaxRegularHeapObjectSize); |
HeapObject* allocation; |
{ MaybeObject* maybe_allocation = heap->AllocateRaw(size, space, space); |
if (!maybe_allocation->To(&allocation)) return maybe_allocation; |