Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(975)

Unified Diff: src/objects.cc

Issue 1497233002: [deoptimizer] Also print the actual literal when printing translations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index f356ead4755e78086ac2a7d0f5ea4342f8f06391..e1cd390d7bc612c9a0cadcc166f79f1cad4a32cd 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698