Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index bd32fe280e3a7651e96b374cc90f1f1605e4bc7d..0f493e6e5712558237a4b3dbdd4edb541b54b7f1 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -33,6 +33,7 @@ |
#include "builtins.h" |
#include "gdb-jit.h" |
#include "ic-inl.h" |
+#include "heap-profiler.h" |
#include "mark-compact.h" |
#include "vm-state-inl.h" |
@@ -380,6 +381,8 @@ static FixedArray* LeftTrimFixedArray(Heap* heap, |
MemoryChunk::IncrementLiveBytesFromMutator(elms->address(), -size_delta); |
} |
+ HEAP_PROFILE(heap, ObjectMoveEvent(elms->address(), |
+ elms->address() + size_delta)); |
return FixedArray::cast(HeapObject::FromAddress( |
elms->address() + to_trim * kPointerSize)); |
} |