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

Unified Diff: runtime/vm/il_printer.cc

Issue 10928048: Nested deoptimization environments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 c8bc854b952813eaadcd475d756f4ad32d870088..6a1dc97dee42ec9f95a8413833dc77358d6b1155 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -436,9 +436,8 @@ void GraphEntryInstr::PrintTo(BufferFormatter* f) const {
f->Print("%2"Pd": [graph]", block_id());
if (start_env_ != NULL) {
f->Print("\n{\n");
- const GrowableArray<Value*>& values = start_env_->values();
- for (intptr_t i = 0; i < values.length(); i++) {
- Definition* def = values[i]->definition();
+ for (intptr_t i = 0; i < start_env_->Length(); i++) {
+ Definition* def = start_env_->ValueAt(i)->definition();
f->Print(" ");
def->PrintTo(f);
f->Print("\n");
@@ -796,6 +795,7 @@ void Environment::PrintTo(BufferFormatter* f) const {
}
}
f->Print(" }");
+ if (outer_ != NULL) outer_->PrintTo(f);
}
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698