Index: src/x64/assembler-x64.cc |
diff --git a/src/x64/assembler-x64.cc b/src/x64/assembler-x64.cc |
index 710a9c9b08c3d17f1f132b0610d6e8a28315cb16..cd9b7ff43c91ba503e470fd78c34814b0006416c 100644 |
--- a/src/x64/assembler-x64.cc |
+++ b/src/x64/assembler-x64.cc |
@@ -3451,7 +3451,7 @@ void Assembler::RecordComment(const char* msg, bool force) { |
void Assembler::RecordDeoptReason(const int reason, const int raw_position) { |
- if (FLAG_trace_deopt) { |
+ if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling()) { |
EnsureSpace ensure_space(this); |
RecordRelocInfo(RelocInfo::POSITION, raw_position); |
RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); |