Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 999969dd29f3ca92e0a8d7cc772d9140ffde6289..b31adbe118912ca118ee991d91bac24324f3cb03 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -276,15 +276,15 @@ static FixedArrayBase* LeftTrimFixedArray(Heap* heap, |
FixedArrayBase* new_elms = FixedArrayBase::cast(HeapObject::FromAddress( |
elms->address() + size_delta)); |
HeapProfiler* profiler = heap->isolate()->heap_profiler(); |
- if (profiler->is_profiling()) { |
+ if (profiler->is_tracking_object_moves()) { |
profiler->ObjectMoveEvent(elms->address(), |
new_elms->address(), |
new_elms->Size()); |
- if (profiler->is_tracking_allocations()) { |
- // Report filler object as a new allocation. |
- // Otherwise it will become an untracked object. |
- profiler->NewObjectEvent(elms->address(), elms->Size()); |
- } |
+ } |
+ if (profiler->is_tracking_allocations()) { |
+ // Report filler object as a new allocation. |
+ // Otherwise it will become an untracked object. |
+ profiler->NewObjectEvent(elms->address(), elms->Size()); |
} |
return new_elms; |
} |