Index: src/arm64/assembler-arm64.cc |
diff --git a/src/arm64/assembler-arm64.cc b/src/arm64/assembler-arm64.cc |
index 78cbdff2be20305148440c19ddcfb62e15ce1252..d3a4fd2ef391432a1d42827bcd2fe9ba85bb875e 100644 |
--- a/src/arm64/assembler-arm64.cc |
+++ b/src/arm64/assembler-arm64.cc |
@@ -3081,7 +3081,7 @@ void Assembler::RecordComment(const char* msg) { |
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); |