Index: src/heap/heap-inl.h |
diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h |
index df9072e78020dc07f3658f4a50ff1febb4b7d049..7b2f5ead9b9a3ff53617f12212ebdfe253f99eac 100644 |
--- a/src/heap/heap-inl.h |
+++ b/src/heap/heap-inl.h |
@@ -399,20 +399,9 @@ |
if (!InNewSpace(o) || !object->IsHeapObject() || InNewSpace(object)) { |
return; |
} |
- RememberedSet<OLD_TO_NEW>::Insert( |
- Page::FromAddress(reinterpret_cast<Address>(object)), |
- HeapObject::cast(object)->address() + offset); |
-} |
- |
-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(i))) continue; |
- RememberedSet<OLD_TO_NEW>::Insert( |
- page, |
- reinterpret_cast<Address>(array->RawFieldOfElementAt(offset + i))); |
- } |
+ Page* page = Page::FromAddress(reinterpret_cast<Address>(object)); |
+ Address slot = HeapObject::cast(object)->address() + offset; |
+ RememberedSet<OLD_TO_NEW>::Insert(page, slot); |
} |