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

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: Improved heuristics. Created 8 years, 1 month 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/compiler.cc ('k') | runtime/vm/flow_graph_builder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph.cc
diff --git a/runtime/vm/flow_graph.cc b/runtime/vm/flow_graph.cc
index 26e2eb1e7df3fb3e52a66f0a8a015656f3ec28b5..0ead0a280ec731cea8804166a4277d14c6031487 100644
--- a/runtime/vm/flow_graph.cc
+++ b/runtime/vm/flow_graph.cc
@@ -940,7 +940,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);
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698