Commit 438629ba authored by pierre.langlois's avatar pierre.langlois Committed by Commit bot

[ARM64] Make BufferDisassembler print the instruction encoding

This patch changes the disassembly output for ARM64 when tracing
compiled code. We used to omit printing the encoding as opposed to what
ARM and X64 do. The new turbolizer tool assumes the encoding is printed
and gets confused otherwise.

This could have been fixed in the tool instead but making disassembly
output consistent across architecture seems like a better solution.

BUG=

Review-Url: https://codereview.chromium.org/1996983003
Cr-Commit-Position: refs/heads/master@{#36426}
parent 2ca36cc3
......@@ -1802,7 +1802,8 @@ class BufferDisassembler : public v8::internal::DisassemblingDecoder {
~BufferDisassembler() { }
virtual void ProcessOutput(v8::internal::Instruction* instr) {
v8::internal::SNPrintF(out_buffer_, "%s", GetOutput());
v8::internal::SNPrintF(out_buffer_, "%08" PRIx32 " %s",
instr->InstructionBits(), GetOutput());
}
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment