Index: src/x87/assembler-x87.cc |
diff --git a/src/x87/assembler-x87.cc b/src/x87/assembler-x87.cc |
index 9176b57ebad2f3c05e66fbf234d074528aae91eb..2fec0cd6c407f756bb63a742cb6606905941b1ea 100644 |
--- a/src/x87/assembler-x87.cc |
+++ b/src/x87/assembler-x87.cc |
@@ -1921,7 +1921,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); |