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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 10945025: Remove check for stack overflow on entry to an inlined function. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
index a736ab9ca89700e3b68bb64d83035a14df68a182..ef64740dcf3bf56384fdeaa01ff7e68b5042730a 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -2605,7 +2605,8 @@ FlowGraph* FlowGraphBuilder::BuildGraph(InliningContext context) {
}
// TODO(kmillikin): We can eliminate stack checks in some cases (e.g., the
// stack check on entry for leaf routines).
- for_effect.Do(new CheckStackOverflowInstr(function.token_pos()));
+ Definition* check = new CheckStackOverflowInstr(function.token_pos());
Kevin Millikin (Google) 2012/09/19 12:01:17 Please add a comment that we allocate the instruct
+ if (!InInliningContext()) for_effect.Do(check);
parsed_function().node_sequence()->Visit(&for_effect);
AppendFragment(normal_entry, for_effect);
// Check that the graph is properly terminated.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698