| 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");
|
| }
|
|
|