Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 45d58e72628cd7b43ca81fcfe52e0d249335e073..694d9fd2361b8302118e5712e91df33462b8d531 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_code_events() || |
+ if (isolate->logger()->is_logging() || |
CpuProfiler::is_profiling(isolate)) { |
if (target->IsSharedFunctionInfo()) { |
PROFILE(isolate, SharedFunctionInfoMoveEvent( |