Converting PC value from decimal to hexadecimal, in trace-deopt option

Change-Id: Iec7f2868e1f0d20ad9046a5bda4bc1c87f038f23
Reviewed-on: https://chromium-review.googlesource.com/558292
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Juliana Patricia Vicente Franco <jupvfranco@google.com>
Cr-Commit-Position: refs/heads/master@{#46409}
This commit is contained in:
Juliana Franco 2017-07-05 13:13:41 +02:00 committed by Commit Bot
parent 653f43d579
commit b2644df70f

View File

@ -14234,8 +14234,13 @@ void DeoptimizationInputData::DeoptimizationInputDataPrint(
}
for (int i = 0; i < deopt_count; i++) {
os << std::setw(6) << i << " " << std::setw(6) << AstId(i).ToInt() << " "
<< std::setw(6) << ArgumentsStackHeight(i)->value() << " "
<< std::setw(6) << Pc(i)->value();
<< std::setw(6) << ArgumentsStackHeight(i)->value() << " ";
int pc_value = Pc(i)->value();
if (pc_value != -1) {
os << std::setw(6) << std::hex << pc_value;
} else {
os << std::setw(6) << "NA";
}
if (!FLAG_print_code_verbose) {
os << "\n";