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

Unified Diff: runtime/vm/il_printer.cc

Issue 211873003: Incremental tuning/cleanup of inlining: --print-inline-tree changed to --print-inlining-tree. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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
Index: runtime/vm/il_printer.cc
===================================================================
--- runtime/vm/il_printer.cc (revision 34394)
+++ runtime/vm/il_printer.cc (working copy)
@@ -132,7 +132,7 @@
}
-static void PrintICData(BufferFormatter* f, const ICData& ic_data) {
+static void PrintICDataHelper(BufferFormatter* f, const ICData& ic_data) {
f->Print(" IC[%" Pd ": ", ic_data.NumberOfChecks());
Function& target = Function::Handle();
for (intptr_t i = 0; i < ic_data.NumberOfChecks(); i++) {
@@ -159,6 +159,14 @@
}
+void FlowGraphPrinter::PrintICData(const ICData& ic_data) {
+ char buffer[1024];
+ BufferFormatter f(buffer, sizeof(buffer));
+ PrintICDataHelper(&f, ic_data);
+ OS::Print("%s\n", buffer);
+}
+
+
static void PrintUse(BufferFormatter* f, const Definition& definition) {
if (definition.is_used()) {
if (definition.HasSSATemp()) {
@@ -354,7 +362,7 @@
PushArgumentAt(i)->value()->PrintTo(f);
}
if (HasICData()) {
- PrintICData(f, *ic_data());
+ PrintICDataHelper(f, *ic_data());
}
}
@@ -365,7 +373,7 @@
f->Print(", ");
PushArgumentAt(i)->value()->PrintTo(f);
}
- PrintICData(f, ic_data());
+ PrintICDataHelper(f, ic_data());
}
@@ -852,7 +860,7 @@
void CheckClassInstr::PrintOperandsTo(BufferFormatter* f) const {
value()->PrintTo(f);
- PrintICData(f, unary_checks());
+ PrintICDataHelper(f, unary_checks());
if (IsNullCheck()) {
f->Print(" nullcheck");
}

Powered by Google App Engine
This is Rietveld 408576698