| Index: src/heap/heap-inl.h
|
| diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h
|
| index f418cae2f0355a39716e21c2ca317f0baafa77d0..7d0d2412894bb46d4f00641918c390ea26a2079d 100644
|
| --- a/src/heap/heap-inl.h
|
| +++ b/src/heap/heap-inl.h
|
| @@ -502,9 +502,7 @@ void Heap::RecordWrite(Object* object, int offset, Object* o) {
|
| if (!InNewSpace(o) || !object->IsHeapObject() || InNewSpace(object)) {
|
| return;
|
| }
|
| - RememberedSet<OLD_TO_NEW>::Insert(
|
| - Page::FromAddress(reinterpret_cast<Address>(object)),
|
| - HeapObject::cast(object)->address() + offset);
|
| + store_buffer()->InsertEntry(HeapObject::cast(object)->address() + offset);
|
| }
|
|
|
| void Heap::RecordWriteIntoCode(Code* host, RelocInfo* rinfo, Object* value) {
|
| @@ -515,11 +513,9 @@ void Heap::RecordWriteIntoCode(Code* host, RelocInfo* rinfo, Object* value) {
|
|
|
| void Heap::RecordFixedArrayElements(FixedArray* array, int offset, int length) {
|
| if (InNewSpace(array)) return;
|
| - Page* page = Page::FromAddress(reinterpret_cast<Address>(array));
|
| for (int i = 0; i < length; i++) {
|
| if (!InNewSpace(array->get(offset + i))) continue;
|
| - RememberedSet<OLD_TO_NEW>::Insert(
|
| - page,
|
| + store_buffer()->InsertEntry(
|
| reinterpret_cast<Address>(array->RawFieldOfElementAt(offset + i)));
|
| }
|
| }
|
|
|