Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 503d9a6d962dcb19638542d6c705507ee4a335dc..08ca1225282343aaca81a884b56d4bcaf6afcbca 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -239,12 +239,8 @@ static FixedArrayBase* LeftTrimFixedArray(Heap* heap, |
FixedArrayBase* new_elms = |
FixedArrayBase::cast(HeapObject::FromAddress(new_start)); |
- HeapProfiler* profiler = heap->isolate()->heap_profiler(); |
- if (profiler->is_tracking_object_moves()) { |
- profiler->ObjectMoveEvent(elms->address(), |
- new_elms->address(), |
- new_elms->Size()); |
- } |
+ |
+ heap->OnMoveEvent(new_elms, elms, new_elms->Size()); |
return new_elms; |
} |