| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 623ec31e20fca8169ba724e5be33a5f736511a34..c83a622100d39b784d17a99516aeff1a06cbfdcf 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -2050,7 +2050,8 @@ class ScavengingVisitor : public StaticVisitorBase {
|
| if (logging_and_profiling_mode == LOGGING_AND_PROFILING_ENABLED) {
|
| // Update NewSpace stats if necessary.
|
| RecordCopiedObject(heap, target);
|
| - HEAP_PROFILE(heap, ObjectMoveEvent(source->address(), target->address()));
|
| + HEAP_PROFILE(heap,
|
| + ObjectMoveEvent(source->address(), target->address(), size));
|
| Isolate* isolate = heap->isolate();
|
| if (isolate->logger()->is_logging_code_events() ||
|
| isolate->cpu_profiler()->is_profiling()) {
|
| @@ -5026,6 +5027,12 @@ MaybeObject* Heap::CopyJSObjectWithAllocationSite(
|
| if (adjusted_object_size > object_size) {
|
| AllocationMemento* alloc_memento = reinterpret_cast<AllocationMemento*>(
|
| reinterpret_cast<Address>(clone) + object_size);
|
| +
|
| + HeapProfiler* profiler = this->isolate()->heap_profiler();
|
| + profiler->RecordObjectAllocation(HeapObject::cast(clone)->address(),
|
| + object_size);
|
| + profiler->RecordObjectAllocation(alloc_memento->address(),
|
| + adjusted_object_size - object_size);
|
| alloc_memento->set_map_no_write_barrier(allocation_memento_map());
|
| alloc_memento->set_allocation_site(site, SKIP_WRITE_BARRIER);
|
| }
|
|
|