| Index: src/heap/heap-inl.h
|
| diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h
|
| index 34c2e3faeaa19576303e5646feaef025d37da72e..a87d347c1dd700c1e477e6149e4f9e79097748c6 100644
|
| --- a/src/heap/heap-inl.h
|
| +++ b/src/heap/heap-inl.h
|
| @@ -395,7 +395,9 @@ void Heap::RecordWrite(Object* object, int offset, Object* o) {
|
| if (!InNewSpace(o) || !object->IsHeapObject() || InNewSpace(object)) {
|
| return;
|
| }
|
| - store_buffer_.Mark(HeapObject::cast(object)->address() + offset);
|
| + Page* page = Page::FromAddress(reinterpret_cast<Address>(object));
|
| + Address slot = HeapObject::cast(object)->address() + offset;
|
| + RememberedSet<OLD_TO_NEW>::Insert(page, slot);
|
| }
|
|
|
|
|
|
|