OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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/precompiler.h" | 5 #include "vm/precompiler.h" |
6 | 6 |
7 #include "vm/aot_optimizer.h" | 7 #include "vm/aot_optimizer.h" |
8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
9 #include "vm/ast_printer.h" | 9 #include "vm/ast_printer.h" |
10 #include "vm/branch_optimizer.h" | 10 #include "vm/branch_optimizer.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 DECLARE_FLAG(bool, print_flow_graph_optimized); | 71 DECLARE_FLAG(bool, print_flow_graph_optimized); |
72 DECLARE_FLAG(bool, range_analysis); | 72 DECLARE_FLAG(bool, range_analysis); |
73 DECLARE_FLAG(bool, trace_compiler); | 73 DECLARE_FLAG(bool, trace_compiler); |
74 DECLARE_FLAG(bool, trace_optimizing_compiler); | 74 DECLARE_FLAG(bool, trace_optimizing_compiler); |
75 DECLARE_FLAG(bool, trace_bailout); | 75 DECLARE_FLAG(bool, trace_bailout); |
76 DECLARE_FLAG(bool, use_inlining); | 76 DECLARE_FLAG(bool, use_inlining); |
77 DECLARE_FLAG(bool, verify_compiler); | 77 DECLARE_FLAG(bool, verify_compiler); |
78 DECLARE_FLAG(bool, huge_method_cutoff_in_code_size); | 78 DECLARE_FLAG(bool, huge_method_cutoff_in_code_size); |
79 DECLARE_FLAG(bool, trace_failed_optimization_attempts); | 79 DECLARE_FLAG(bool, trace_failed_optimization_attempts); |
80 DECLARE_FLAG(bool, trace_inlining_intervals); | 80 DECLARE_FLAG(bool, trace_inlining_intervals); |
81 DECLARE_FLAG(bool, trace_irregexp); | |
82 DECLARE_FLAG(int, inlining_hotness); | 81 DECLARE_FLAG(int, inlining_hotness); |
83 DECLARE_FLAG(int, inlining_size_threshold); | 82 DECLARE_FLAG(int, inlining_size_threshold); |
84 DECLARE_FLAG(int, inlining_callee_size_threshold); | 83 DECLARE_FLAG(int, inlining_callee_size_threshold); |
85 DECLARE_FLAG(int, inline_getters_setters_smaller_than); | 84 DECLARE_FLAG(int, inline_getters_setters_smaller_than); |
86 DECLARE_FLAG(int, inlining_depth_threshold); | 85 DECLARE_FLAG(int, inlining_depth_threshold); |
87 DECLARE_FLAG(int, inlining_caller_size_threshold); | 86 DECLARE_FLAG(int, inlining_caller_size_threshold); |
88 DECLARE_FLAG(int, inlining_constant_arguments_max_size_threshold); | 87 DECLARE_FLAG(int, inlining_constant_arguments_max_size_threshold); |
89 DECLARE_FLAG(int, inlining_constant_arguments_min_size_threshold); | 88 DECLARE_FLAG(int, inlining_constant_arguments_min_size_threshold); |
90 | 89 |
91 | 90 |
(...skipping 3296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3388 | 3387 |
3389 ASSERT(FLAG_precompiled_mode); | 3388 ASSERT(FLAG_precompiled_mode); |
3390 const bool optimized = function.IsOptimizable(); // False for natives. | 3389 const bool optimized = function.IsOptimizable(); // False for natives. |
3391 DartPrecompilationPipeline pipeline(zone, field_type_map); | 3390 DartPrecompilationPipeline pipeline(zone, field_type_map); |
3392 return PrecompileFunctionHelper(precompiler, &pipeline, function, optimized); | 3391 return PrecompileFunctionHelper(precompiler, &pipeline, function, optimized); |
3393 } | 3392 } |
3394 | 3393 |
3395 #endif // DART_PRECOMPILER | 3394 #endif // DART_PRECOMPILER |
3396 | 3395 |
3397 } // namespace dart | 3396 } // namespace dart |
OLD | NEW |