| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 DEFINE_bool(packed_arrays, true, "optimizes arrays that have no holes") | 188 DEFINE_bool(packed_arrays, true, "optimizes arrays that have no holes") |
| 189 DEFINE_bool(smi_only_arrays, true, "tracks arrays with only smi values") | 189 DEFINE_bool(smi_only_arrays, true, "tracks arrays with only smi values") |
| 190 DEFINE_bool(compiled_transitions, false, "use optimizing compiler to " | 190 DEFINE_bool(compiled_transitions, false, "use optimizing compiler to " |
| 191 "generate array elements transition stubs") | 191 "generate array elements transition stubs") |
| 192 DEFINE_bool(compiled_keyed_stores, true, "use optimizing compiler to " | 192 DEFINE_bool(compiled_keyed_stores, true, "use optimizing compiler to " |
| 193 "generate keyed store stubs") | 193 "generate keyed store stubs") |
| 194 DEFINE_bool(clever_optimizations, | 194 DEFINE_bool(clever_optimizations, |
| 195 true, | 195 true, |
| 196 "Optimize object size, Array shift, DOM strings and string +") | 196 "Optimize object size, Array shift, DOM strings and string +") |
| 197 DEFINE_bool(pretenuring, true, "allocate objects in old space") | 197 DEFINE_bool(pretenuring, true, "allocate objects in old space") |
| 198 // TODO(hpayer): We will remove this flag as soon as we have pretenuring |
| 199 // support for specific allocation sites. |
| 200 DEFINE_bool(pretenuring_call_new, false, "pretenure call new") |
| 198 DEFINE_bool(track_fields, true, "track fields with only smi values") | 201 DEFINE_bool(track_fields, true, "track fields with only smi values") |
| 199 DEFINE_bool(track_double_fields, true, "track fields with double values") | 202 DEFINE_bool(track_double_fields, true, "track fields with double values") |
| 200 DEFINE_bool(track_heap_object_fields, true, "track fields with heap values") | 203 DEFINE_bool(track_heap_object_fields, true, "track fields with heap values") |
| 201 DEFINE_bool(track_computed_fields, true, "track computed boilerplate fields") | 204 DEFINE_bool(track_computed_fields, true, "track computed boilerplate fields") |
| 202 DEFINE_implication(track_double_fields, track_fields) | 205 DEFINE_implication(track_double_fields, track_fields) |
| 203 DEFINE_implication(track_heap_object_fields, track_fields) | 206 DEFINE_implication(track_heap_object_fields, track_fields) |
| 204 DEFINE_implication(track_computed_fields, track_fields) | 207 DEFINE_implication(track_computed_fields, track_fields) |
| 205 | 208 |
| 206 // Flags for data representation optimizations | 209 // Flags for data representation optimizations |
| 207 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") | 210 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") |
| 208 DEFINE_bool(string_slices, true, "use string slices") | 211 DEFINE_bool(string_slices, true, "use string slices") |
| 209 | 212 |
| 210 // Flags for Crankshaft. | 213 // Flags for Crankshaft. |
| 211 DEFINE_bool(crankshaft, true, "use crankshaft") | 214 DEFINE_bool(crankshaft, true, "use crankshaft") |
| 212 DEFINE_string(hydrogen_filter, "", "optimization filter") | 215 DEFINE_string(hydrogen_filter, "", "optimization filter") |
| 213 DEFINE_bool(use_range, true, "use hydrogen range analysis") | 216 DEFINE_bool(use_range, true, "use hydrogen range analysis") |
| 214 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") | 217 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") |
| 215 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") | 218 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") |
| 216 DEFINE_bool(use_inlining, true, "use function inlining") | 219 DEFINE_bool(use_inlining, true, "use function inlining") |
| 217 DEFINE_bool(use_escape_analysis, false, "use hydrogen escape analysis") | 220 DEFINE_bool(use_escape_analysis, false, "use hydrogen escape analysis") |
| 221 DEFINE_bool(use_allocation_folding, true, "use allocation folding") |
| 218 DEFINE_int(max_inlined_source_size, 600, | 222 DEFINE_int(max_inlined_source_size, 600, |
| 219 "maximum source size in bytes considered for a single inlining") | 223 "maximum source size in bytes considered for a single inlining") |
| 220 DEFINE_int(max_inlined_nodes, 196, | 224 DEFINE_int(max_inlined_nodes, 196, |
| 221 "maximum number of AST nodes considered for a single inlining") | 225 "maximum number of AST nodes considered for a single inlining") |
| 222 DEFINE_int(max_inlined_nodes_cumulative, 196, | 226 DEFINE_int(max_inlined_nodes_cumulative, 196, |
| 223 "maximum cumulative number of AST nodes considered for inlining") | 227 "maximum cumulative number of AST nodes considered for inlining") |
| 224 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") | 228 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") |
| 225 DEFINE_bool(fast_math, true, "faster (but maybe less accurate) math functions") | 229 DEFINE_bool(fast_math, true, "faster (but maybe less accurate) math functions") |
| 226 DEFINE_bool(collect_megamorphic_maps_from_stub_cache, | 230 DEFINE_bool(collect_megamorphic_maps_from_stub_cache, |
| 227 true, | 231 true, |
| 228 "crankshaft harvests type feedback from stub cache") | 232 "crankshaft harvests type feedback from stub cache") |
| 229 DEFINE_bool(hydrogen_stats, false, "print statistics for hydrogen") | 233 DEFINE_bool(hydrogen_stats, false, "print statistics for hydrogen") |
| 230 DEFINE_bool(trace_hydrogen, false, "trace generated hydrogen to file") | 234 DEFINE_bool(trace_hydrogen, false, "trace generated hydrogen to file") |
| 231 DEFINE_string(trace_phase, "Z", "trace generated IR for specified phases") | 235 DEFINE_string(trace_phase, "Z", "trace generated IR for specified phases") |
| 232 DEFINE_bool(trace_inlining, false, "trace inlining decisions") | 236 DEFINE_bool(trace_inlining, false, "trace inlining decisions") |
| 233 DEFINE_bool(trace_alloc, false, "trace register allocator") | 237 DEFINE_bool(trace_alloc, false, "trace register allocator") |
| 234 DEFINE_bool(trace_all_uses, false, "trace all use positions") | 238 DEFINE_bool(trace_all_uses, false, "trace all use positions") |
| 235 DEFINE_bool(trace_range, false, "trace range analysis") | 239 DEFINE_bool(trace_range, false, "trace range analysis") |
| 236 DEFINE_bool(trace_gvn, false, "trace global value numbering") | 240 DEFINE_bool(trace_gvn, false, "trace global value numbering") |
| 237 DEFINE_bool(trace_representation, false, "trace representation types") | 241 DEFINE_bool(trace_representation, false, "trace representation types") |
| 238 DEFINE_bool(trace_escape_analysis, false, "trace hydrogen escape analysis") | 242 DEFINE_bool(trace_escape_analysis, false, "trace hydrogen escape analysis") |
| 243 DEFINE_bool(trace_allocation_folding, false, "trace allocation folding") |
| 239 DEFINE_bool(trace_track_allocation_sites, false, | 244 DEFINE_bool(trace_track_allocation_sites, false, |
| 240 "trace the tracking of allocation sites") | 245 "trace the tracking of allocation sites") |
| 241 DEFINE_bool(trace_migration, false, "trace object migration") | 246 DEFINE_bool(trace_migration, false, "trace object migration") |
| 242 DEFINE_bool(trace_generalization, false, "trace map generalization") | 247 DEFINE_bool(trace_generalization, false, "trace map generalization") |
| 243 DEFINE_bool(stress_pointer_maps, false, "pointer map for every instruction") | 248 DEFINE_bool(stress_pointer_maps, false, "pointer map for every instruction") |
| 244 DEFINE_bool(stress_environments, false, "environment for every instruction") | 249 DEFINE_bool(stress_environments, false, "environment for every instruction") |
| 245 DEFINE_int(deopt_every_n_times, | 250 DEFINE_int(deopt_every_n_times, |
| 246 0, | 251 0, |
| 247 "deoptimize every n times a deopt point is passed") | 252 "deoptimize every n times a deopt point is passed") |
| 248 DEFINE_int(deopt_every_n_garbage_collections, | 253 DEFINE_int(deopt_every_n_garbage_collections, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 DEFINE_bool(enable_cmov, true, | 346 DEFINE_bool(enable_cmov, true, |
| 342 "enable use of CMOV instruction if available") | 347 "enable use of CMOV instruction if available") |
| 343 DEFINE_bool(enable_rdtsc, true, | 348 DEFINE_bool(enable_rdtsc, true, |
| 344 "enable use of RDTSC instruction if available") | 349 "enable use of RDTSC instruction if available") |
| 345 DEFINE_bool(enable_sahf, true, | 350 DEFINE_bool(enable_sahf, true, |
| 346 "enable use of SAHF instruction if available (X64 only)") | 351 "enable use of SAHF instruction if available (X64 only)") |
| 347 DEFINE_bool(enable_vfp3, ENABLE_VFP3_DEFAULT, | 352 DEFINE_bool(enable_vfp3, ENABLE_VFP3_DEFAULT, |
| 348 "enable use of VFP3 instructions if available") | 353 "enable use of VFP3 instructions if available") |
| 349 DEFINE_bool(enable_armv7, ENABLE_ARMV7_DEFAULT, | 354 DEFINE_bool(enable_armv7, ENABLE_ARMV7_DEFAULT, |
| 350 "enable use of ARMv7 instructions if available (ARM only)") | 355 "enable use of ARMv7 instructions if available (ARM only)") |
| 356 DEFINE_bool(enable_neon, true, |
| 357 "enable use of NEON instructions if available (ARM only)") |
| 351 DEFINE_bool(enable_sudiv, true, | 358 DEFINE_bool(enable_sudiv, true, |
| 352 "enable use of SDIV and UDIV instructions if available (ARM only)") | 359 "enable use of SDIV and UDIV instructions if available (ARM only)") |
| 353 DEFINE_bool(enable_movw_movt, false, | 360 DEFINE_bool(enable_movw_movt, false, |
| 354 "enable loading 32-bit constant by means of movw/movt " | 361 "enable loading 32-bit constant by means of movw/movt " |
| 355 "instruction pairs (ARM only)") | 362 "instruction pairs (ARM only)") |
| 356 DEFINE_bool(enable_unaligned_accesses, true, | 363 DEFINE_bool(enable_unaligned_accesses, true, |
| 357 "enable unaligned accesses for ARMv7 (ARM only)") | 364 "enable unaligned accesses for ARMv7 (ARM only)") |
| 358 DEFINE_bool(enable_32dregs, ENABLE_32DREGS_DEFAULT, | 365 DEFINE_bool(enable_32dregs, ENABLE_32DREGS_DEFAULT, |
| 359 "enable use of d16-d31 registers on ARM - this requires VFP3") | 366 "enable use of d16-d31 registers on ARM - this requires VFP3") |
| 360 DEFINE_bool(enable_vldr_imm, false, | 367 DEFINE_bool(enable_vldr_imm, false, |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 #undef DEFINE_bool | 823 #undef DEFINE_bool |
| 817 #undef DEFINE_int | 824 #undef DEFINE_int |
| 818 #undef DEFINE_string | 825 #undef DEFINE_string |
| 819 #undef DEFINE_implication | 826 #undef DEFINE_implication |
| 820 | 827 |
| 821 #undef FLAG_MODE_DECLARE | 828 #undef FLAG_MODE_DECLARE |
| 822 #undef FLAG_MODE_DEFINE | 829 #undef FLAG_MODE_DEFINE |
| 823 #undef FLAG_MODE_DEFINE_DEFAULTS | 830 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 824 #undef FLAG_MODE_META | 831 #undef FLAG_MODE_META |
| 825 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 832 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
| OLD | NEW |