Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 4b8865ab12914ce20a42286e39ea16fc536638b1..03fac2d1092ca7ce25af4ac8376696b53fa9dbd8 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -273,15 +273,14 @@ static FixedArrayBase* LeftTrimFixedArray(Heap* heap, |
MemoryChunk::IncrementLiveBytesFromMutator(elms->address(), -size_delta); |
} |
- FixedArrayBase* new_elms = FixedArrayBase::cast(HeapObject::FromAddress( |
- elms->address() + size_delta)); |
HeapProfiler* profiler = heap->isolate()->heap_profiler(); |
if (profiler->is_profiling()) { |
profiler->ObjectMoveEvent(elms->address(), |
- new_elms->address(), |
- new_elms->Size()); |
+ elms->address() + size_delta, |
+ elms->Size()); |
} |
- return new_elms; |
+ return FixedArrayBase::cast(HeapObject::FromAddress( |
+ elms->address() + to_trim * entry_size)); |
} |