| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 DEFINE_bool(clever_optimizations, true, | 217 DEFINE_bool(clever_optimizations, true, |
| 218 "Optimize object size, Array shift, DOM strings and string +") | 218 "Optimize object size, Array shift, DOM strings and string +") |
| 219 DEFINE_bool(pretenuring, true, "allocate objects in old space") | 219 DEFINE_bool(pretenuring, true, "allocate objects in old space") |
| 220 // TODO(hpayer): We will remove this flag as soon as we have pretenuring | 220 // TODO(hpayer): We will remove this flag as soon as we have pretenuring |
| 221 // support for specific allocation sites. | 221 // support for specific allocation sites. |
| 222 DEFINE_bool(pretenuring_call_new, false, "pretenure call new") | 222 DEFINE_bool(pretenuring_call_new, false, "pretenure call new") |
| 223 DEFINE_bool(allocation_site_pretenuring, true, | 223 DEFINE_bool(allocation_site_pretenuring, true, |
| 224 "pretenure with allocation sites") | 224 "pretenure with allocation sites") |
| 225 DEFINE_bool(trace_pretenuring, false, | 225 DEFINE_bool(trace_pretenuring, false, |
| 226 "trace pretenuring decisions of HAllocate instructions") | 226 "trace pretenuring decisions of HAllocate instructions") |
| 227 DEFINE_bool(trace_pretenuring_statistics, false, |
| 228 "trace allocation site pretenuring statistics") |
| 227 DEFINE_bool(track_fields, true, "track fields with only smi values") | 229 DEFINE_bool(track_fields, true, "track fields with only smi values") |
| 228 DEFINE_bool(track_double_fields, true, "track fields with double values") | 230 DEFINE_bool(track_double_fields, true, "track fields with double values") |
| 229 DEFINE_bool(track_heap_object_fields, true, "track fields with heap values") | 231 DEFINE_bool(track_heap_object_fields, true, "track fields with heap values") |
| 230 DEFINE_bool(track_computed_fields, true, "track computed boilerplate fields") | 232 DEFINE_bool(track_computed_fields, true, "track computed boilerplate fields") |
| 231 DEFINE_implication(track_double_fields, track_fields) | 233 DEFINE_implication(track_double_fields, track_fields) |
| 232 DEFINE_implication(track_heap_object_fields, track_fields) | 234 DEFINE_implication(track_heap_object_fields, track_fields) |
| 233 DEFINE_implication(track_computed_fields, track_fields) | 235 DEFINE_implication(track_computed_fields, track_fields) |
| 234 DEFINE_bool(smi_binop, true, "support smi representation in binary operations") | 236 DEFINE_bool(smi_binop, true, "support smi representation in binary operations") |
| 237 DEFINE_bool(smi_x64_store_opt, false, "optimized stores of smi on x64") |
| 235 | 238 |
| 236 // Flags for optimization types. | 239 // Flags for optimization types. |
| 237 DEFINE_bool(optimize_for_size, false, | 240 DEFINE_bool(optimize_for_size, false, |
| 238 "Enables optimizations which favor memory size over execution " | 241 "Enables optimizations which favor memory size over execution " |
| 239 "speed.") | 242 "speed.") |
| 240 | 243 |
| 241 // Flags for data representation optimizations | 244 // Flags for data representation optimizations |
| 242 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") | 245 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") |
| 243 DEFINE_bool(string_slices, true, "use string slices") | 246 DEFINE_bool(string_slices, true, "use string slices") |
| 244 | 247 |
| 245 // Flags for Crankshaft. | 248 // Flags for Crankshaft. |
| 246 DEFINE_bool(crankshaft, true, "use crankshaft") | 249 DEFINE_bool(crankshaft, true, "use crankshaft") |
| 247 DEFINE_string(hydrogen_filter, "*", "optimization filter") | 250 DEFINE_string(hydrogen_filter, "*", "optimization filter") |
| 248 DEFINE_bool(use_range, true, "use hydrogen range analysis") | 251 DEFINE_bool(use_range, true, "use hydrogen range analysis") |
| 249 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") | 252 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") |
| 253 DEFINE_int(gvn_iterations, 3, "maximum number of GVN fix-point iterations") |
| 250 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") | 254 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") |
| 251 DEFINE_bool(use_inlining, true, "use function inlining") | 255 DEFINE_bool(use_inlining, true, "use function inlining") |
| 252 DEFINE_bool(use_escape_analysis, false, "use hydrogen escape analysis") | 256 DEFINE_bool(use_escape_analysis, true, "use hydrogen escape analysis") |
| 253 DEFINE_bool(use_allocation_folding, true, "use allocation folding") | 257 DEFINE_bool(use_allocation_folding, true, "use allocation folding") |
| 254 DEFINE_int(max_inlining_levels, 5, "maximum number of inlining levels") | 258 DEFINE_int(max_inlining_levels, 5, "maximum number of inlining levels") |
| 255 DEFINE_int(max_inlined_source_size, 600, | 259 DEFINE_int(max_inlined_source_size, 600, |
| 256 "maximum source size in bytes considered for a single inlining") | 260 "maximum source size in bytes considered for a single inlining") |
| 257 DEFINE_int(max_inlined_nodes, 196, | 261 DEFINE_int(max_inlined_nodes, 196, |
| 258 "maximum number of AST nodes considered for a single inlining") | 262 "maximum number of AST nodes considered for a single inlining") |
| 259 DEFINE_int(max_inlined_nodes_cumulative, 400, | 263 DEFINE_int(max_inlined_nodes_cumulative, 400, |
| 260 "maximum cumulative number of AST nodes considered for inlining") | 264 "maximum cumulative number of AST nodes considered for inlining") |
| 261 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") | 265 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") |
| 262 DEFINE_bool(fast_math, true, "faster (but maybe less accurate) math functions") | 266 DEFINE_bool(fast_math, true, "faster (but maybe less accurate) math functions") |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 #undef DEFINE_ALIAS_float | 915 #undef DEFINE_ALIAS_float |
| 912 #undef DEFINE_ALIAS_args | 916 #undef DEFINE_ALIAS_args |
| 913 | 917 |
| 914 #undef FLAG_MODE_DECLARE | 918 #undef FLAG_MODE_DECLARE |
| 915 #undef FLAG_MODE_DEFINE | 919 #undef FLAG_MODE_DEFINE |
| 916 #undef FLAG_MODE_DEFINE_DEFAULTS | 920 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 917 #undef FLAG_MODE_META | 921 #undef FLAG_MODE_META |
| 918 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 922 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
| 919 | 923 |
| 920 #undef COMMA | 924 #undef COMMA |
| OLD | NEW |