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

Unified Diff: runtime/vm/flow_graph.cc

Issue 13932005: Refactor the code for making inlining decisions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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/flow_graph.cc
diff --git a/runtime/vm/flow_graph.cc b/runtime/vm/flow_graph.cc
index 03074f73d50856f8155ff48993acfc79fc82616b..f1ae27612858a45db7cefb6c9a1788fa3e38c4f9 100644
--- a/runtime/vm/flow_graph.cc
+++ b/runtime/vm/flow_graph.cc
@@ -208,8 +208,9 @@ bool FlowGraph::VerifyUseLists() {
#endif // DEBUG
-void FlowGraph::ComputeSSA(intptr_t next_virtual_register_number,
- GrowableArray<Definition*>* inlining_parameters) {
+void FlowGraph::ComputeSSA(
+ intptr_t next_virtual_register_number,
+ ZoneGrowableArray<Definition*>* inlining_parameters) {
ASSERT((next_virtual_register_number == 0) || (inlining_parameters != NULL));
current_ssa_temp_index_ = next_virtual_register_number;
GrowableArray<BitVector*> dominance_frontier;
@@ -399,7 +400,7 @@ void FlowGraph::InsertPhis(
void FlowGraph::Rename(GrowableArray<PhiInstr*>* live_phis,
- GrowableArray<Definition*>* inlining_parameters) {
+ ZoneGrowableArray<Definition*>* inlining_parameters) {
// TODO(fschneider): Support catch-entry.
if (graph_entry_->SuccessorCount() > 1) {
Bailout("Catch-entry support in SSA.");

Powered by Google App Engine
This is Rietveld 408576698