[disassembler] Print code offsets as hex

Another little oversight from https://crrev.com/c/2978252: Code offsets
should be printed in hexadecimal representation, not decimal.

R=delphick@chromium.org

Change-Id: I9e30a1d5d40451e9eb2fc905756d51458acbf819
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3000964
Commit-Queue: Dan Elphick <delphick@chromium.org>
Reviewed-by: Dan Elphick <delphick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#75519}
This commit is contained in:
Clemens Backes 2021-07-01 17:26:35 +02:00 committed by V8 LUCI CQ
parent 5217e05076
commit 106fff02a3

View File

@ -364,7 +364,7 @@ static int DecodeIt(Isolate* isolate, ExternalReferenceEncoder* ref_encoder,
// If this is the given "current" pc, make it yellow and bold.
out << "\033[33;1m";
}
out << static_cast<void*>(prev_pc) << " " << std::setw(4)
out << static_cast<void*>(prev_pc) << " " << std::setw(4) << std::hex
<< prev_pc - begin << " ";
// Instruction.