| Index: src/heap/heap-inl.h
|
| diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h
|
| index 48ec1f17407cd7b8121f295288cd925f69d35de9..7b2f5ead9b9a3ff53617f12212ebdfe253f99eac 100644
|
| --- a/src/heap/heap-inl.h
|
| +++ b/src/heap/heap-inl.h
|
| @@ -438,31 +438,11 @@ bool Heap::AllowedToBeMigrated(HeapObject* obj, AllocationSpace dst) {
|
| return false;
|
| }
|
|
|
| -
|
| void Heap::CopyBlock(Address dst, Address src, int byte_size) {
|
| CopyWords(reinterpret_cast<Object**>(dst), reinterpret_cast<Object**>(src),
|
| static_cast<size_t>(byte_size / kPointerSize));
|
| }
|
|
|
| -
|
| -void Heap::MoveBlock(Address dst, Address src, int byte_size) {
|
| - DCHECK(IsAligned(byte_size, kPointerSize));
|
| -
|
| - int size_in_words = byte_size / kPointerSize;
|
| -
|
| - if ((dst < src) || (dst >= (src + byte_size))) {
|
| - Object** src_slot = reinterpret_cast<Object**>(src);
|
| - Object** dst_slot = reinterpret_cast<Object**>(dst);
|
| - Object** end_slot = src_slot + size_in_words;
|
| -
|
| - while (src_slot != end_slot) {
|
| - *dst_slot++ = *src_slot++;
|
| - }
|
| - } else {
|
| - MemMove(dst, src, static_cast<size_t>(byte_size));
|
| - }
|
| -}
|
| -
|
| template <Heap::FindMementoMode mode>
|
| AllocationMemento* Heap::FindAllocationMemento(HeapObject* object) {
|
| // Check if there is potentially a memento behind the object. If
|
|
|