Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index db2aa01ea8db022d2c35bc7259783dc78d08eec2..1bc6fcdaf97d55a21ad1495c99cb3ce5492c15e3 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -357,7 +357,7 @@ RUNTIME_FUNCTION(Runtime_AllocateInNewSpace) { |
CONVERT_SMI_ARG_CHECKED(size, 0); |
CHECK(IsAligned(size, kPointerSize)); |
CHECK(size > 0); |
- CHECK(size <= Page::kMaxRegularHeapObjectSize); |
+ CHECK(size <= kMaxRegularHeapObjectSize); |
return *isolate->factory()->NewFillerObject(size, false, NEW_SPACE); |
} |
@@ -369,7 +369,7 @@ RUNTIME_FUNCTION(Runtime_AllocateInTargetSpace) { |
CONVERT_SMI_ARG_CHECKED(flags, 1); |
CHECK(IsAligned(size, kPointerSize)); |
CHECK(size > 0); |
- CHECK(size <= Page::kMaxRegularHeapObjectSize); |
+ CHECK(size <= kMaxRegularHeapObjectSize); |
bool double_align = AllocateDoubleAlignFlag::decode(flags); |
AllocationSpace space = AllocateTargetSpace::decode(flags); |
return *isolate->factory()->NewFillerObject(size, double_align, space); |