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

Unified Diff: runtime/vm/il_printer.cc

Issue 11886044: Set statically known ResultCid for AllocateObject. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
index 4a6fe3bd38d397b14803d01fbaf3999ddb7771fe..9b6677010dbcf356c9bf5bacdf6ac063179c0139 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -128,6 +128,7 @@ static void PrintICData(BufferFormatter* f, const ICData& ic_data) {
if (count > 0) {
f->Print(" #%"Pd, count);
}
+ f->Print(" <%p>", static_cast<void*>(target.raw()));
Florian Schneider 2013/01/15 13:46:58 use Px instead?
}
f->Print("]");
}
@@ -323,7 +324,12 @@ void InstanceCallInstr::PrintOperandsTo(BufferFormatter* f) const {
void PolymorphicInstanceCallInstr::PrintOperandsTo(BufferFormatter* f) const {
- instance_call()->PrintOperandsTo(f);
+ f->Print("%s", instance_call()->function_name().ToCString());
+ for (intptr_t i = 0; i < ArgumentCount(); ++i) {
+ f->Print(", ");
+ ArgumentAt(i)->value()->PrintTo(f);
+ }
+ PrintICData(f, ic_data());
}

Powered by Google App Engine
This is Rietveld 408576698