Index: src/heap/store-buffer.cc |
diff --git a/src/heap/store-buffer.cc b/src/heap/store-buffer.cc |
index aac68116ce840f3ca72715c41aaa3809ac028173..d126551242634f855fbebd723fad2f53aed5dc69 100644 |
--- a/src/heap/store-buffer.cc |
+++ b/src/heap/store-buffer.cc |
@@ -81,6 +81,9 @@ void StoreBuffer::SetUp() { |
hash_sets_are_empty_ = false; |
ClearFilteringHashSets(); |
+ |
+ heap_->isolate()->set_store_buffer_hash_set_1_address(hash_set_1_); |
+ heap_->isolate()->set_store_buffer_hash_set_2_address(hash_set_2_); |
} |
@@ -554,6 +557,9 @@ void StoreBuffer::IteratePointersToNewSpace(ObjectSlotCallback slot_callback, |
void StoreBuffer::Compact() { |
+ CHECK(hash_set_1_ == heap_->isolate()->store_buffer_hash_set_1_address()); |
+ CHECK(hash_set_2_ == heap_->isolate()->store_buffer_hash_set_2_address()); |
+ |
Address* top = reinterpret_cast<Address*>(heap_->store_buffer_top()); |
if (top == start_) return; |