Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 9ef8a60d9c57d0109662a604875537daeb7a2611..14b86d7c992b7576dc28691741d3de781a4c5548 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -1741,7 +1741,7 @@ class ScavengingVisitor : public StaticVisitorBase { |
RecordCopiedObject(heap, target); |
HEAP_PROFILE(heap, ObjectMoveEvent(source->address(), target->address())); |
Isolate* isolate = heap->isolate(); |
- if (isolate->logger()->is_logging() || |
+ if (isolate->logger()->is_logging_code_events() || |
CpuProfiler::is_profiling(isolate)) { |
if (target->IsSharedFunctionInfo()) { |
PROFILE(isolate, SharedFunctionInfoMoveEvent( |