Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index e625ddfca10f8c767bfd89b986ae5619394411fb..81de035b0af7a6ae67de51f738b30ecbdbcb2da5 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -2792,7 +2792,7 @@ void MarkCompactCollector::MigrateObject(Address dst, |
heap_profiler->ObjectMoveEvent(src, dst, size); |
} |
ASSERT(heap()->AllowedToBeMigrated(HeapObject::FromAddress(src), dest)); |
- ASSERT(dest != LO_SPACE && size <= Page::kMaxNonCodeHeapObjectSize); |
+ ASSERT(dest != LO_SPACE && size <= Page::kMaxRegularHeapObjectSize); |
if (dest == OLD_POINTER_SPACE) { |
Address src_slot = src; |
Address dst_slot = dst; |
@@ -2966,7 +2966,7 @@ static String* UpdateReferenceInExternalStringTableEntry(Heap* heap, |
bool MarkCompactCollector::TryPromoteObject(HeapObject* object, |
int object_size) { |
// TODO(hpayer): Replace that check with an assert. |
- CHECK(object_size <= Page::kMaxNonCodeHeapObjectSize); |
+ CHECK(object_size <= Page::kMaxRegularHeapObjectSize); |
OldSpace* target_space = heap()->TargetSpace(object); |