Index: src/ia32/assembler-ia32.cc |
diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc |
index baa2076344fe1a90a97d3dfac3f6efb80b23e99f..d7ce5a793ac3155a62eaa624f32023774cebdd49 100644 |
--- a/src/ia32/assembler-ia32.cc |
+++ b/src/ia32/assembler-ia32.cc |
@@ -2640,6 +2640,15 @@ void Assembler::RecordComment(const char* msg, bool force) { |
} |
+void Assembler::RecordDeoptReason(const int reason, const int raw_position) { |
+ if (FLAG_trace_deopt) { |
+ EnsureSpace ensure_space(this); |
+ RecordRelocInfo(RelocInfo::POSITION, raw_position); |
+ RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); |
+ } |
+} |
+ |
+ |
void Assembler::GrowBuffer() { |
DCHECK(buffer_overflow()); |
if (!own_buffer_) FATAL("external code buffer is too small"); |