Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index ca079deb70900eb1725d68893f4f092967d3a736..31ad1bacfb0f6eb72b8688de5b488bef3f9bea03 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -2712,9 +2712,8 @@ void MarkCompactCollector::MigrateObject(Address dst, |
int size, |
AllocationSpace dest) { |
HEAP_PROFILE(heap(), ObjectMoveEvent(src, dst)); |
- // TODO(hpayer): Replace these checks with asserts. |
- CHECK(heap()->AllowedToBeMigrated(HeapObject::FromAddress(src), dest)); |
- CHECK(dest != LO_SPACE && size <= Page::kMaxNonCodeHeapObjectSize); |
+ ASSERT(heap()->AllowedToBeMigrated(HeapObject::FromAddress(src), dest)); |
+ ASSERT(dest != LO_SPACE && size <= Page::kMaxNonCodeHeapObjectSize); |
if (dest == OLD_POINTER_SPACE) { |
Address src_slot = src; |
Address dst_slot = dst; |