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

Side by Side Diff: runtime/vm/flow_graph_inliner.cc

Issue 26836002: Bump inlining size threshold. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/flow_graph_inliner.h" 5 #include "vm/flow_graph_inliner.h"
6 6
7 #include "vm/block_scheduler.h" 7 #include "vm/block_scheduler.h"
8 #include "vm/compiler.h" 8 #include "vm/compiler.h"
9 #include "vm/flags.h" 9 #include "vm/flags.h"
10 #include "vm/flow_graph.h" 10 #include "vm/flow_graph.h"
(...skipping 10 matching lines...) Expand all
21 namespace dart { 21 namespace dart {
22 22
23 DEFINE_FLAG(int, deoptimization_counter_inlining_threshold, 12, 23 DEFINE_FLAG(int, deoptimization_counter_inlining_threshold, 12,
24 "How many times we allow deoptimization before we stop inlining."); 24 "How many times we allow deoptimization before we stop inlining.");
25 DEFINE_FLAG(bool, trace_inlining, false, "Trace inlining"); 25 DEFINE_FLAG(bool, trace_inlining, false, "Trace inlining");
26 DEFINE_FLAG(charp, inlining_filter, NULL, "Inline only in named function"); 26 DEFINE_FLAG(charp, inlining_filter, NULL, "Inline only in named function");
27 27
28 // Flags for inlining heuristics. 28 // Flags for inlining heuristics.
29 DEFINE_FLAG(int, inlining_depth_threshold, 3, 29 DEFINE_FLAG(int, inlining_depth_threshold, 3,
30 "Inline function calls up to threshold nesting depth"); 30 "Inline function calls up to threshold nesting depth");
31 DEFINE_FLAG(int, inlining_size_threshold, 22, 31 DEFINE_FLAG(int, inlining_size_threshold, 25,
32 "Always inline functions that have threshold or fewer instructions"); 32 "Always inline functions that have threshold or fewer instructions");
33 DEFINE_FLAG(int, inlining_callee_call_sites_threshold, 1, 33 DEFINE_FLAG(int, inlining_callee_call_sites_threshold, 1,
34 "Always inline functions containing threshold or fewer calls."); 34 "Always inline functions containing threshold or fewer calls.");
35 DEFINE_FLAG(int, inlining_caller_size_threshold, 50000, 35 DEFINE_FLAG(int, inlining_caller_size_threshold, 50000,
36 "Stop inlining once caller reaches the threshold."); 36 "Stop inlining once caller reaches the threshold.");
37 DEFINE_FLAG(int, inlining_constant_arguments_count, 1, 37 DEFINE_FLAG(int, inlining_constant_arguments_count, 1,
38 "Inline function calls with sufficient constant arguments " 38 "Inline function calls with sufficient constant arguments "
39 "and up to the increased threshold on instructions"); 39 "and up to the increased threshold on instructions");
40 DEFINE_FLAG(int, inlining_constant_arguments_size_threshold, 60, 40 DEFINE_FLAG(int, inlining_constant_arguments_size_threshold, 60,
41 "Inline function calls with sufficient constant arguments " 41 "Inline function calls with sufficient constant arguments "
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 OS::Print("After Inlining of %s\n", flow_graph_-> 1491 OS::Print("After Inlining of %s\n", flow_graph_->
1492 parsed_function().function().ToFullyQualifiedCString()); 1492 parsed_function().function().ToFullyQualifiedCString());
1493 FlowGraphPrinter printer(*flow_graph_); 1493 FlowGraphPrinter printer(*flow_graph_);
1494 printer.PrintBlocks(); 1494 printer.PrintBlocks();
1495 } 1495 }
1496 } 1496 }
1497 } 1497 }
1498 } 1498 }
1499 1499
1500 } // namespace dart 1500 } // namespace dart
OLDNEW
« 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