Revision: 23814
Author:   [email protected]
Date:     Tue Sep  9 17:35:51 2014 UTC
Log:      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=

Review URL: https://codereview.chromium.org/556453008
https://code.google.com/p/v8/source/detail?r=23814

Modified:
 /branches/bleeding_edge/src/perf-jit.cc

=======================================
--- /branches/bleeding_edge/src/perf-jit.cc     Mon Aug  4 11:34:54 2014 UTC
+++ /branches/bleeding_edge/src/perf-jit.cc     Tue Sep  9 17:35:51 2014 UTC
@@ -83,7 +83,8 @@

   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.

Reply via email to