Index: src/ia32/assembler-ia32.cc |
diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc |
index 719dabc3f0c3142b32ae0cdd443f19b9460df5e0..1d7e619abf591394be67da571cde24a4a1498a32 100644 |
--- a/src/ia32/assembler-ia32.cc |
+++ b/src/ia32/assembler-ia32.cc |
@@ -2652,7 +2652,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); |