Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 3f8773c0b22845561201af438edd627a1df3b39a..ee04ee846d68b76a35c8b7cae2bcb790ad0252eb 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -1630,7 +1630,7 @@ |
DCHECK_OBJECT_SIZE(size); |
DCHECK(IsAligned(size, kPointerSize)); |
heap_->CopyBlock(dst_addr, src_addr, size); |
- if ((mode == kProfiled) && dst->IsBytecodeArray()) { |
+ if ((mode == kProfiled) && FLAG_ignition && dst->IsBytecodeArray()) { |
PROFILE(heap_->isolate(), |
CodeMoveEvent(AbstractCode::cast(src), dst_addr)); |
} |