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

Unified Diff: runtime/vm/flow_graph.cc

Issue 11269040: More inlining flags and tuned heuristics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: out/DebugIA32/dart --ignore-unrecognized-flags /usr/local/google/home/zerny/src/dart/dart/tests/co1… Created 8 years, 2 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 95961cb8dffc46024e77ba0c31b5faeadf032ced..ba53ebc3ad7e7e3513bd8edf40b1ec4ab22408f8 100644
--- a/runtime/vm/flow_graph.cc
+++ b/runtime/vm/flow_graph.cc
@@ -944,7 +944,9 @@ void FlowGraph::InlineCall(Definition* call, FlowGraph* callee_graph) {
exits.Sort(LowestBlockIdFirst);
// Create a join of the returns.
JoinEntryInstr* join =
- new JoinEntryInstr(++max_block_id_, CatchClauseNode::kInvalidTryIndex);
+ new JoinEntryInstr(++max_block_id_,
+ CatchClauseNode::kInvalidTryIndex,
+ caller_entry->loop_depth());
for (intptr_t i = 0; i < exits.length(); ++i) {
ReturnInstr* exit_instr = exits[i]->last_instruction()->AsReturn();
ASSERT(exit_instr != NULL);

Powered by Google App Engine
This is Rietveld 408576698