OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 DEFINE_bool(string_slices, true, "use string slices") | 158 DEFINE_bool(string_slices, true, "use string slices") |
159 | 159 |
160 // Flags for Crankshaft. | 160 // Flags for Crankshaft. |
161 DEFINE_bool(crankshaft, true, "use crankshaft") | 161 DEFINE_bool(crankshaft, true, "use crankshaft") |
162 DEFINE_string(hydrogen_filter, "", "optimization filter") | 162 DEFINE_string(hydrogen_filter, "", "optimization filter") |
163 DEFINE_bool(use_range, true, "use hydrogen range analysis") | 163 DEFINE_bool(use_range, true, "use hydrogen range analysis") |
164 DEFINE_bool(eliminate_dead_phis, true, "eliminate dead phis") | 164 DEFINE_bool(eliminate_dead_phis, true, "eliminate dead phis") |
165 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") | 165 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") |
166 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") | 166 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") |
167 DEFINE_bool(use_inlining, true, "use function inlining") | 167 DEFINE_bool(use_inlining, true, "use function inlining") |
168 DEFINE_bool(limit_inlining, true, "limit code size growth from inlining") | 168 DEFINE_int(max_inlined_source_size, 600, |
| 169 "maximum source size in bytes considered for a single inlining") |
| 170 DEFINE_int(max_inlined_nodes, 196, |
| 171 "maximum number of AST nodes considered for a single inlining") |
| 172 DEFINE_int(max_inlined_nodes_cumulative, 196, |
| 173 "maximum cumulative number of AST nodes considered for inlining") |
169 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") | 174 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") |
170 DEFINE_bool(collect_megamorphic_maps_from_stub_cache, | 175 DEFINE_bool(collect_megamorphic_maps_from_stub_cache, |
171 true, | 176 true, |
172 "crankshaft harvests type feedback from stub cache") | 177 "crankshaft harvests type feedback from stub cache") |
173 DEFINE_bool(hydrogen_stats, false, "print statistics for hydrogen") | 178 DEFINE_bool(hydrogen_stats, false, "print statistics for hydrogen") |
174 DEFINE_bool(trace_hydrogen, false, "trace generated hydrogen to file") | 179 DEFINE_bool(trace_hydrogen, false, "trace generated hydrogen to file") |
175 DEFINE_string(trace_phase, "Z", "trace generated IR for specified phases") | 180 DEFINE_string(trace_phase, "Z", "trace generated IR for specified phases") |
176 DEFINE_bool(trace_inlining, false, "trace inlining decisions") | 181 DEFINE_bool(trace_inlining, false, "trace inlining decisions") |
177 DEFINE_bool(trace_alloc, false, "trace register allocator") | 182 DEFINE_bool(trace_alloc, false, "trace register allocator") |
178 DEFINE_bool(trace_all_uses, false, "trace all use positions") | 183 DEFINE_bool(trace_all_uses, false, "trace all use positions") |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 #undef DEFINE_bool | 649 #undef DEFINE_bool |
645 #undef DEFINE_int | 650 #undef DEFINE_int |
646 #undef DEFINE_string | 651 #undef DEFINE_string |
647 #undef DEFINE_implication | 652 #undef DEFINE_implication |
648 | 653 |
649 #undef FLAG_MODE_DECLARE | 654 #undef FLAG_MODE_DECLARE |
650 #undef FLAG_MODE_DEFINE | 655 #undef FLAG_MODE_DEFINE |
651 #undef FLAG_MODE_DEFINE_DEFAULTS | 656 #undef FLAG_MODE_DEFINE_DEFAULTS |
652 #undef FLAG_MODE_META | 657 #undef FLAG_MODE_META |
653 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 658 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
OLD | NEW |