Commit 552437c0 authored by bmeurer's avatar bmeurer Committed by Commit bot

[deoptimizer] Also print the actual literal when printing translations.

R=jarin@chromium.org

Review URL: https://codereview.chromium.org/1497233002

Cr-Commit-Position: refs/heads/master@{#32632}
parent b720ece8
......@@ -14111,8 +14111,10 @@ void DeoptimizationInputData::DeoptimizationInputDataPrint(
}
case Translation::LITERAL: {
unsigned literal_index = iterator.Next();
os << "{literal_id=" << literal_index << "}";
int literal_index = iterator.Next();
Object* literal_value = LiteralArray()->get(literal_index);
os << "{literal_id=" << literal_index << " (" << Brief(literal_value)
<< ")}";
break;
}
......
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