Index: src/heap/store-buffer.cc |
diff --git a/src/heap/store-buffer.cc b/src/heap/store-buffer.cc |
index 3ede0dfaf145c4e5484d69cd7628df6d25072b90..dec11daa90674b922d1a5510abd637323c08d654 100644 |
--- a/src/heap/store-buffer.cc |
+++ b/src/heap/store-buffer.cc |
@@ -464,7 +464,7 @@ void StoreBuffer::IteratePointersToNewSpace(ObjectSlotCallback slot_callback) { |
heap_->mark_compact_collector()->EnsureSweepingCompleted(); |
} |
} |
- CHECK(page->owner() == heap_->old_space()); |
+ CHECK(page->owner() == heap_->old_pointer_space()); |
HeapObjectIterator iterator(page, NULL); |
for (HeapObject* heap_object = iterator.Next(); heap_object != NULL; |
heap_object = iterator.Next()) { |
@@ -534,6 +534,7 @@ void StoreBuffer::Compact() { |
for (Address* current = start_; current < top; current++) { |
DCHECK(!heap_->cell_space()->Contains(*current)); |
DCHECK(!heap_->code_space()->Contains(*current)); |
+ DCHECK(!heap_->old_data_space()->Contains(*current)); |
uintptr_t int_addr = reinterpret_cast<uintptr_t>(*current); |
// Shift out the last bits including any tags. |
int_addr >>= kPointerSizeLog2; |