Index: src/assembler.cc |
diff --git a/src/assembler.cc b/src/assembler.cc |
index 56578ca563b4b027b4ce9227f1f7f4a09445fde6..f4299ed7170936fd0b2bb11da07c41840155effd 100644 |
--- a/src/assembler.cc |
+++ b/src/assembler.cc |
@@ -1652,4 +1652,37 @@ bool PositionsRecorder::WriteRecordedPositions() { |
return written; |
} |
+ |
+// Platform specific but identical code for all the platforms. |
+ |
+ |
+void Assembler::RecordDeoptReason(const int reason, const int raw_position) { |
+ if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling()) { |
+ EnsureSpace ensure_space(this); |
+ RecordRelocInfo(RelocInfo::POSITION, raw_position); |
+ RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); |
+ } |
+} |
+ |
+ |
+void Assembler::RecordComment(const char* msg) { |
+ if (FLAG_code_comments) { |
+ EnsureSpace ensure_space(this); |
+ RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); |
+ } |
+} |
+ |
+ |
+void Assembler::RecordJSReturn() { |
+ positions_recorder()->WriteRecordedPositions(); |
+ EnsureSpace ensure_space(this); |
+ RecordRelocInfo(RelocInfo::JS_RETURN); |
+} |
+ |
+ |
+void Assembler::RecordDebugBreakSlot() { |
+ positions_recorder()->WriteRecordedPositions(); |
+ EnsureSpace ensure_space(this); |
+ RecordRelocInfo(RelocInfo::DEBUG_BREAK_SLOT); |
+} |
} } // namespace v8::internal |