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

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

Issue 16430002: Ensure that all phis inserted by load optimizer have consistent representation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 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_compiler.h" 11 #include "vm/flow_graph_compiler.h"
12 #include "vm/flow_graph_optimizer.h" 12 #include "vm/flow_graph_optimizer.h"
13 #include "vm/il_printer.h" 13 #include "vm/il_printer.h"
14 #include "vm/intrinsifier.h" 14 #include "vm/intrinsifier.h"
15 #include "vm/longjump.h" 15 #include "vm/longjump.h"
16 #include "vm/object.h" 16 #include "vm/object.h"
17 #include "vm/object_store.h" 17 #include "vm/object_store.h"
18 #include "vm/timer.h" 18 #include "vm/timer.h"
19 19
20 namespace dart { 20 namespace dart {
21 21
22 DEFINE_FLAG(bool, trace_inlining, false, "Trace inlining"); 22 DEFINE_FLAG(bool, trace_inlining, false, "Trace inlining");
23 DEFINE_FLAG(charp, inlining_filter, NULL, "Inline only in named function"); 23 DEFINE_FLAG(charp, inlining_filter, NULL, "Inline only in named function");
24 24
25 // Flags for inlining heuristics. 25 // Flags for inlining heuristics.
26 DEFINE_FLAG(int, inlining_depth_threshold, 3, 26 DEFINE_FLAG(int, inlining_depth_threshold, 3,
27 "Inline function calls up to threshold nesting depth"); 27 "Inline function calls up to threshold nesting depth");
28 DEFINE_FLAG(int, inlining_size_threshold, 20, 28 DEFINE_FLAG(int, inlining_size_threshold, 22,
29 "Always inline functions that have threshold or fewer instructions"); 29 "Always inline functions that have threshold or fewer instructions");
30 DEFINE_FLAG(int, inlining_callee_call_sites_threshold, 1, 30 DEFINE_FLAG(int, inlining_callee_call_sites_threshold, 1,
31 "Always inline functions containing threshold or fewer calls."); 31 "Always inline functions containing threshold or fewer calls.");
32 DEFINE_FLAG(int, inlining_constant_arguments_count, 1, 32 DEFINE_FLAG(int, inlining_constant_arguments_count, 1,
33 "Inline function calls with sufficient constant arguments " 33 "Inline function calls with sufficient constant arguments "
34 "and up to the increased threshold on instructions"); 34 "and up to the increased threshold on instructions");
35 DEFINE_FLAG(int, inlining_constant_arguments_size_threshold, 60, 35 DEFINE_FLAG(int, inlining_constant_arguments_size_threshold, 60,
36 "Inline function calls with sufficient constant arguments " 36 "Inline function calls with sufficient constant arguments "
37 "and up to the increased threshold on instructions"); 37 "and up to the increased threshold on instructions");
38 DEFINE_FLAG(int, inlining_hotness, 10, 38 DEFINE_FLAG(int, inlining_hotness, 10,
(...skipping 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 OS::Print("After Inlining of %s\n", flow_graph_-> 1342 OS::Print("After Inlining of %s\n", flow_graph_->
1343 parsed_function().function().ToFullyQualifiedCString()); 1343 parsed_function().function().ToFullyQualifiedCString());
1344 FlowGraphPrinter printer(*flow_graph_); 1344 FlowGraphPrinter printer(*flow_graph_);
1345 printer.PrintBlocks(); 1345 printer.PrintBlocks();
1346 } 1346 }
1347 } 1347 }
1348 } 1348 }
1349 } 1349 }
1350 1350
1351 } // namespace dart 1351 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698