Index: src/arm/assembler-arm.cc |
diff --git a/src/arm/assembler-arm.cc b/src/arm/assembler-arm.cc |
index fbe8e99597cac11dac6e1830ee010e75ea1247b8..080b526f18d940505ac813e3f6faae9cfefd56cb 100644 |
--- a/src/arm/assembler-arm.cc |
+++ b/src/arm/assembler-arm.cc |
@@ -3392,7 +3392,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); |