Index: src/perf-jit.cc |
diff --git a/src/perf-jit.cc b/src/perf-jit.cc |
index e7e4c344cd280c2b70725805b7831fa1112fa02d..86f4c4d9b4ff301b1925991ae2005a646eeabadd 100644 |
--- a/src/perf-jit.cc |
+++ b/src/perf-jit.cc |
@@ -218,6 +218,9 @@ void PerfJitLogger::LogRecordedBuffer(AbstractCode* abstract_code, |
const char* code_name = name; |
uint8_t* code_pointer = reinterpret_cast<uint8_t*>(code->instruction_start()); |
+ // Code generated by Crankshaft or Turbofan will have the safepoint table |
+ // directly after instructions. There is no need to record the safepoint table |
+ // itself. |
uint32_t code_size = code->is_crankshafted() ? code->safepoint_table_offset() |
: code->instruction_size(); |