Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 9f2dca8e2a650f8d31f497941a026d1c5b7795d5..11aff4b7075862b42e210dbc1650f8792111f27f 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -1636,7 +1636,7 @@ class MarkCompactCollector::EvacuateVisitorBase |
: heap_(heap), |
compaction_spaces_(compaction_spaces), |
profiling_( |
- heap->isolate()->cpu_profiler()->is_profiling() || |
+ heap->isolate()->is_profiling() || |
heap->isolate()->logger()->is_logging_code_events() || |
heap->isolate()->heap_profiler()->is_tracking_object_moves()) {} |