Index: src/arm64/assembler-arm64.cc |
diff --git a/src/arm64/assembler-arm64.cc b/src/arm64/assembler-arm64.cc |
index 770d425af256a0419bf1162e6a1c307ea1d5579d..be21aebbcc5ce4f0cd6d13ed891fc2eb5943eb8b 100644 |
--- a/src/arm64/assembler-arm64.cc |
+++ b/src/arm64/assembler-arm64.cc |
@@ -3077,6 +3077,15 @@ void Assembler::RecordComment(const char* msg) { |
} |
+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); |
+ } |
+} |
+ |
+ |
int Assembler::buffer_space() const { |
return reloc_info_writer.pos() - reinterpret_cast<byte*>(pc_); |
} |