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

Unified Diff: src/compiler/simplified-operator.cc

Issue 2093013002: [turbolizer] Show a label with a shorter parameter for some opcodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Merge with master Created 4 years, 5 months 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 | « src/compiler/simplified-operator.h ('k') | tools/turbolizer/graph-view.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-operator.cc
diff --git a/src/compiler/simplified-operator.cc b/src/compiler/simplified-operator.cc
index 290f962974fe559575189e806f23619baaf06da5..1240e9707e91740b3c41007989604fdc5bc23e1d 100644
--- a/src/compiler/simplified-operator.cc
+++ b/src/compiler/simplified-operator.cc
@@ -124,6 +124,15 @@ std::ostream& operator<<(std::ostream& os, FieldAccess const& access) {
return os;
}
+template <>
+void Operator1<FieldAccess>::PrintParameter(std::ostream& os,
+ PrintVerbosity verbose) const {
+ if (verbose == PrintVerbosity::kVerbose) {
+ os << parameter();
+ } else {
+ os << "[+" << parameter().offset << "]";
+ }
+}
bool operator==(ElementAccess const& lhs, ElementAccess const& rhs) {
// On purpose we don't include the write barrier kind here, as this method is
« no previous file with comments | « src/compiler/simplified-operator.h ('k') | tools/turbolizer/graph-view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698