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

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

Issue 14872002: Improve load forwarding: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
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/compiler.h" 7 #include "vm/compiler.h"
8 #include "vm/flags.h" 8 #include "vm/flags.h"
9 #include "vm/flow_graph.h" 9 #include "vm/flow_graph.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
11 #include "vm/flow_graph_optimizer.h" 11 #include "vm/flow_graph_optimizer.h"
12 #include "vm/il_printer.h" 12 #include "vm/il_printer.h"
13 #include "vm/intrinsifier.h" 13 #include "vm/intrinsifier.h"
14 #include "vm/longjump.h" 14 #include "vm/longjump.h"
15 #include "vm/object.h" 15 #include "vm/object.h"
16 #include "vm/object_store.h" 16 #include "vm/object_store.h"
17 #include "vm/timer.h" 17 #include "vm/timer.h"
18 18
19 namespace dart { 19 namespace dart {
20 20
21 DEFINE_FLAG(bool, trace_inlining, false, "Trace inlining"); 21 DEFINE_FLAG(bool, trace_inlining, false, "Trace inlining");
22 DEFINE_FLAG(charp, inlining_filter, NULL, "Inline only in named function"); 22 DEFINE_FLAG(charp, inlining_filter, NULL, "Inline only in named function");
23 23
24 // Flags for inlining heuristics. 24 // Flags for inlining heuristics.
25 DEFINE_FLAG(int, inlining_depth_threshold, 3, 25 DEFINE_FLAG(int, inlining_depth_threshold, 3,
26 "Inline function calls up to threshold nesting depth"); 26 "Inline function calls up to threshold nesting depth");
27 DEFINE_FLAG(int, inlining_size_threshold, 20, 27 DEFINE_FLAG(int, inlining_size_threshold, 22,
28 "Always inline functions that have threshold or fewer instructions"); 28 "Always inline functions that have threshold or fewer instructions");
29 DEFINE_FLAG(int, inlining_callee_call_sites_threshold, 1, 29 DEFINE_FLAG(int, inlining_callee_call_sites_threshold, 1,
30 "Always inline functions containing threshold or fewer calls."); 30 "Always inline functions containing threshold or fewer calls.");
31 DEFINE_FLAG(int, inlining_constant_arguments_count, 1, 31 DEFINE_FLAG(int, inlining_constant_arguments_count, 1,
32 "Inline function calls with sufficient constant arguments " 32 "Inline function calls with sufficient constant arguments "
33 "and up to the increased threshold on instructions"); 33 "and up to the increased threshold on instructions");
34 DEFINE_FLAG(int, inlining_constant_arguments_size_threshold, 60, 34 DEFINE_FLAG(int, inlining_constant_arguments_size_threshold, 60,
35 "Inline function calls with sufficient constant arguments " 35 "Inline function calls with sufficient constant arguments "
36 "and up to the increased threshold on instructions"); 36 "and up to the increased threshold on instructions");
37 DEFINE_FLAG(int, inlining_hotness, 10, 37 DEFINE_FLAG(int, inlining_hotness, 10,
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 OS::Print("After Inlining of %s\n", flow_graph_-> 921 OS::Print("After Inlining of %s\n", flow_graph_->
922 parsed_function().function().ToFullyQualifiedCString()); 922 parsed_function().function().ToFullyQualifiedCString());
923 FlowGraphPrinter printer(*flow_graph_); 923 FlowGraphPrinter printer(*flow_graph_);
924 printer.PrintBlocks(); 924 printer.PrintBlocks();
925 } 925 }
926 } 926 }
927 } 927 }
928 } 928 }
929 929
930 } // namespace dart 930 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698