Reviewers: jarin,
Description:
Fix perf jitdump integration.
When emitting JIT_CODE_LOAD for Crankshafted code exclude Safepoint Table
from
the size of the code.
This cleans up perf annotate output - because otherwise it confusingly
tries to
disassemble safepoint table.
[email protected]
BUG=
Please review this at https://codereview.chromium.org/556453008/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+2, -1 lines):
M src/perf-jit.cc
Index: src/perf-jit.cc
diff --git a/src/perf-jit.cc b/src/perf-jit.cc
index
5e7fd4cf4ac09991882af58175e52b1d71243baf..3f30e384674fb5d7ee05b5621824290244d62ef3
100644
--- a/src/perf-jit.cc
+++ b/src/perf-jit.cc
@@ -83,7 +83,8 @@ void PerfJitLogger::LogRecordedBuffer(Code* code,
SharedFunctionInfo*,
const char* code_name = name;
uint8_t* code_pointer =
reinterpret_cast<uint8_t*>(code->instruction_start());
- uint32_t code_size = code->instruction_size();
+ uint32_t code_size = code->is_crankshafted() ?
code->safepoint_table_offset()
+ : code->instruction_size();
static const char string_terminator[] = "\0";
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.