[wasm] Fix pc output for wasm compiled frames
This fixed the {WasmCompiledFrame::Print} method to print the pc offset (an integer) in hexadecimal notation, and not print it as a pointer value, which somehow produced weird output in my case. R=mstarzinger@chromium.org Change-Id: I417e980d2bf1448f5694a32c28a7c7bca1de9703 Reviewed-on: https://chromium-review.googlesource.com/1122866 Reviewed-by: Michael Starzinger <mstarzinger@chromium.org> Commit-Queue: Clemens Hammacher <clemensh@chromium.org> Cr-Commit-Position: refs/heads/master@{#54155}
This commit is contained in:
parent
dbfb80f988
commit
0d926cb951
@ -1774,7 +1774,7 @@ void WasmCompiledFrame::Print(StringStream* accumulator, PrintMode mode,
|
||||
int func_name_len = std::min(kMaxPrintedFunctionName, raw_func_name.length());
|
||||
memcpy(func_name, raw_func_name.start(), func_name_len);
|
||||
func_name[func_name_len] = '\0';
|
||||
accumulator->Add("], function #%u ('%s'), pc=%p, pos=%d\n",
|
||||
accumulator->Add("], function #%u ('%s'), pc=+0x%x, pos=%d\n",
|
||||
this->function_index(), func_name, pc, this->position());
|
||||
if (mode != OVERVIEW) accumulator->Add("\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user