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

Unified Diff: runtime/vm/il_printer.cc

Issue 14935005: Implement a variation of scalar replacement for non-escaping allocations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address comments Created 7 years, 7 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 | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/il_printer.cc
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
index 031a5edc7df3842f3f7da66c5722901d6fe637c5..ebac00acb4df3ae018b1d00e7daca01e4665f3dd 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -494,6 +494,16 @@ void AllocateObjectWithBoundsCheckInstr::PrintOperandsTo(
}
+void MaterializeObjectInstr::PrintOperandsTo(BufferFormatter* f) const {
+ f->Print("%s", String::Handle(cls_.Name()).ToCString());
+ for (intptr_t i = 0; i < InputCount(); i++) {
+ f->Print(", ");
+ f->Print("%s: ", String::Handle(fields_[i]->name()).ToCString());
+ InputAt(i)->PrintTo(f);
+ }
+}
+
+
void CreateArrayInstr::PrintOperandsTo(BufferFormatter* f) const {
for (int i = 0; i < ArgumentCount(); ++i) {
if (i != 0) f->Print(", ");
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698