aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/perf-jit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/perf-jit.cc')
-rw-r--r--deps/v8/src/perf-jit.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/v8/src/perf-jit.cc b/deps/v8/src/perf-jit.cc
index 0701f1b75f..c30047abb3 100644
--- a/deps/v8/src/perf-jit.cc
+++ b/deps/v8/src/perf-jit.cc
@@ -225,10 +225,10 @@ void PerfJitLogger::LogRecordedBuffer(AbstractCode abstract_code,
const char* code_name = name;
uint8_t* code_pointer = reinterpret_cast<uint8_t*>(code->InstructionStart());
+
// Code generated by 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_turbofanned() ? code->safepoint_table_offset()
- : code->InstructionSize();
+ uint32_t code_size = code->ExecutableInstructionSize();
// Unwinding info comes right after debug info.
if (FLAG_perf_prof_unwinding_info) LogWriteUnwindingInfo(code);