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

Unified Diff: runtime/vm/compiler.cc

Issue 10668034: Recognize leaf functions: skip stack check and populating the pc slot, store the pc slot lazily in … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 9089)
+++ runtime/vm/compiler.cc (working copy)
@@ -210,9 +210,15 @@
}
}
+ bool is_leaf = false;
+ if (optimized) {
+ FlowGraphAnalyzer analyzer(block_order);
+ analyzer.Analyze();
+ is_leaf = analyzer.is_leaf();
+ }
Assembler assembler;
FlowGraphCompiler graph_compiler(&assembler, parsed_function,
- block_order, optimized);
+ block_order, optimized, is_leaf);
{
TimerScope timer(FLAG_compiler_stats,
&CompilerStats::graphcompiler_timer,

Powered by Google App Engine
This is Rietveld 408576698