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

Unified Diff: vm/intermediate_language.cc

Issue 10407031: Add IR printing into a supplied buffer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 | « vm/intermediate_language.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/intermediate_language.cc
===================================================================
--- vm/intermediate_language.cc (revision 7724)
+++ vm/intermediate_language.cc (working copy)
@@ -5,6 +5,7 @@
#include "vm/intermediate_language.h"
#include "vm/bit_vector.h"
+#include "vm/flow_graph_builder.h"
#include "vm/object.h"
#include "vm/os.h"
#include "vm/scopes.h"
@@ -194,11 +195,11 @@
// enter the function at the first successor in reverse postorder, so we
// must visit the normal entry last.
for (intptr_t i = catch_entries_.length() - 1; i >= 0; --i) {
- catch_entries_[i]->DiscoverBlocks(this, preorder, postorder, parent,
- assigned_vars, variable_count);
+ catch_entries_[i]->DiscoverBlocks(this, preorder, postorder,
+ parent, assigned_vars, variable_count);
}
- normal_entry_->DiscoverBlocks(this, preorder, postorder, parent,
- assigned_vars, variable_count);
+ normal_entry_->DiscoverBlocks(this, preorder, postorder,
+ parent, assigned_vars, variable_count);
// Assign postorder number.
set_postorder_number(postorder->length());
@@ -258,8 +259,8 @@
}
}
if (next != NULL) {
- next->DiscoverBlocks(this, preorder, postorder, parent, assigned_vars,
- variable_count);
+ next->DiscoverBlocks(this, preorder, postorder,
+ parent, assigned_vars, variable_count);
}
// 6. Assign postorder number and add the block entry to the list.
@@ -281,10 +282,10 @@
// nonoptimizing compiler.
ASSERT(true_successor_ != NULL);
ASSERT(false_successor_ != NULL);
- false_successor_->DiscoverBlocks(current_block, preorder, postorder, parent,
- assigned_vars, variable_count);
- true_successor_->DiscoverBlocks(current_block, preorder, postorder, parent,
- assigned_vars, variable_count);
+ false_successor_->DiscoverBlocks(current_block, preorder, postorder,
+ parent, assigned_vars, variable_count);
+ true_successor_->DiscoverBlocks(current_block, preorder, postorder,
+ parent, assigned_vars, variable_count);
}
« no previous file with comments | « vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698