| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 86efe4b7d372d0d0260776d21a19a965654ef7d7..0f2f9e08809672fdfc8c7f03290fa08c2fcbffea 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -2196,7 +2196,7 @@ class ScavengingVisitor : public StaticVisitorBase {
|
| RecordCopiedObject(heap, target);
|
| Isolate* isolate = heap->isolate();
|
| HeapProfiler* heap_profiler = isolate->heap_profiler();
|
| - if (heap_profiler->is_profiling()) {
|
| + if (heap_profiler->is_tracking_object_moves()) {
|
| heap_profiler->ObjectMoveEvent(source->address(), target->address(),
|
| size);
|
| }
|
| @@ -2447,7 +2447,7 @@ void Heap::SelectScavengingVisitorsTable() {
|
| isolate()->logger()->is_logging() ||
|
| isolate()->cpu_profiler()->is_profiling() ||
|
| (isolate()->heap_profiler() != NULL &&
|
| - isolate()->heap_profiler()->is_profiling());
|
| + isolate()->heap_profiler()->is_tracking_object_moves());
|
|
|
| if (!incremental_marking()->IsMarking()) {
|
| if (!logging_and_profiling) {
|
|
|