| Index: src/disassembler.cc
|
| diff --git a/src/disassembler.cc b/src/disassembler.cc
|
| index 29262f411b50f0071160d45987a9d3f890ed20dc..6c0542ec90369a4da54c140611bbcc446171806b 100644
|
| --- a/src/disassembler.cc
|
| +++ b/src/disassembler.cc
|
| @@ -41,7 +41,7 @@ const char* V8NameConverter::NameOfAddress(byte* pc) const {
|
| code_ == NULL ? NULL : code_->GetIsolate()->builtins()->Lookup(pc);
|
|
|
| if (name != NULL) {
|
| - SNPrintF(v8_buffer_, "%s (%p)", name, static_cast<void*>(pc));
|
| + SNPrintF(v8_buffer_, "%p (%s)", static_cast<void*>(pc), name);
|
| return v8_buffer_.start();
|
| }
|
|
|
| @@ -49,7 +49,7 @@ const char* V8NameConverter::NameOfAddress(byte* pc) const {
|
| int offs = static_cast<int>(pc - code_->instruction_start());
|
| // print as code offset, if it seems reasonable
|
| if (0 <= offs && offs < code_->instruction_size()) {
|
| - SNPrintF(v8_buffer_, "%d (%p)", offs, static_cast<void*>(pc));
|
| + SNPrintF(v8_buffer_, "%p <+0x%x>", static_cast<void*>(pc), offs);
|
| return v8_buffer_.start();
|
| }
|
| }
|
| @@ -151,7 +151,7 @@ static int DecodeIt(Isolate* isolate, std::ostream* os,
|
| }
|
|
|
| // Instruction address and instruction offset.
|
| - out.AddFormatted("%p %4" V8PRIdPTRDIFF " ", static_cast<void*>(prev_pc),
|
| + out.AddFormatted("%p %4" V8PRIxPTRDIFF " ", static_cast<void*>(prev_pc),
|
| prev_pc - begin);
|
|
|
| // Instruction.
|
|
|