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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") | 207 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") |
208 DEFINE_bool(string_slices, true, "use string slices") | 208 DEFINE_bool(string_slices, true, "use string slices") |
209 | 209 |
210 // Flags for Crankshaft. | 210 // Flags for Crankshaft. |
211 DEFINE_bool(crankshaft, true, "use crankshaft") | 211 DEFINE_bool(crankshaft, true, "use crankshaft") |
212 DEFINE_string(hydrogen_filter, "", "optimization filter") | 212 DEFINE_string(hydrogen_filter, "", "optimization filter") |
213 DEFINE_bool(use_range, true, "use hydrogen range analysis") | 213 DEFINE_bool(use_range, true, "use hydrogen range analysis") |
214 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") | 214 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") |
215 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") | 215 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") |
216 DEFINE_bool(use_inlining, true, "use function inlining") | 216 DEFINE_bool(use_inlining, true, "use function inlining") |
| 217 DEFINE_bool(use_escape_analysis, false, "use hydrogen escape analysis") |
217 DEFINE_int(max_inlined_source_size, 600, | 218 DEFINE_int(max_inlined_source_size, 600, |
218 "maximum source size in bytes considered for a single inlining") | 219 "maximum source size in bytes considered for a single inlining") |
219 DEFINE_int(max_inlined_nodes, 196, | 220 DEFINE_int(max_inlined_nodes, 196, |
220 "maximum number of AST nodes considered for a single inlining") | 221 "maximum number of AST nodes considered for a single inlining") |
221 DEFINE_int(max_inlined_nodes_cumulative, 196, | 222 DEFINE_int(max_inlined_nodes_cumulative, 196, |
222 "maximum cumulative number of AST nodes considered for inlining") | 223 "maximum cumulative number of AST nodes considered for inlining") |
223 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") | 224 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") |
224 DEFINE_bool(fast_math, true, "faster (but maybe less accurate) math functions") | 225 DEFINE_bool(fast_math, true, "faster (but maybe less accurate) math functions") |
225 DEFINE_bool(collect_megamorphic_maps_from_stub_cache, | 226 DEFINE_bool(collect_megamorphic_maps_from_stub_cache, |
226 true, | 227 true, |
227 "crankshaft harvests type feedback from stub cache") | 228 "crankshaft harvests type feedback from stub cache") |
228 DEFINE_bool(hydrogen_stats, false, "print statistics for hydrogen") | 229 DEFINE_bool(hydrogen_stats, false, "print statistics for hydrogen") |
229 DEFINE_bool(trace_hydrogen, false, "trace generated hydrogen to file") | 230 DEFINE_bool(trace_hydrogen, false, "trace generated hydrogen to file") |
230 DEFINE_string(trace_phase, "Z", "trace generated IR for specified phases") | 231 DEFINE_string(trace_phase, "Z", "trace generated IR for specified phases") |
231 DEFINE_bool(trace_inlining, false, "trace inlining decisions") | 232 DEFINE_bool(trace_inlining, false, "trace inlining decisions") |
232 DEFINE_bool(trace_alloc, false, "trace register allocator") | 233 DEFINE_bool(trace_alloc, false, "trace register allocator") |
233 DEFINE_bool(trace_all_uses, false, "trace all use positions") | 234 DEFINE_bool(trace_all_uses, false, "trace all use positions") |
234 DEFINE_bool(trace_range, false, "trace range analysis") | 235 DEFINE_bool(trace_range, false, "trace range analysis") |
235 DEFINE_bool(trace_gvn, false, "trace global value numbering") | 236 DEFINE_bool(trace_gvn, false, "trace global value numbering") |
236 DEFINE_bool(trace_representation, false, "trace representation types") | 237 DEFINE_bool(trace_representation, false, "trace representation types") |
| 238 DEFINE_bool(trace_escape_analysis, false, "trace hydrogen escape analysis") |
237 DEFINE_bool(trace_track_allocation_sites, false, | 239 DEFINE_bool(trace_track_allocation_sites, false, |
238 "trace the tracking of allocation sites") | 240 "trace the tracking of allocation sites") |
239 DEFINE_bool(trace_migration, false, "trace object migration") | 241 DEFINE_bool(trace_migration, false, "trace object migration") |
240 DEFINE_bool(trace_generalization, false, "trace map generalization") | 242 DEFINE_bool(trace_generalization, false, "trace map generalization") |
241 DEFINE_bool(stress_pointer_maps, false, "pointer map for every instruction") | 243 DEFINE_bool(stress_pointer_maps, false, "pointer map for every instruction") |
242 DEFINE_bool(stress_environments, false, "environment for every instruction") | 244 DEFINE_bool(stress_environments, false, "environment for every instruction") |
243 DEFINE_int(deopt_every_n_times, | 245 DEFINE_int(deopt_every_n_times, |
244 0, | 246 0, |
245 "deoptimize every n times a deopt point is passed") | 247 "deoptimize every n times a deopt point is passed") |
246 DEFINE_int(deopt_every_n_garbage_collections, | 248 DEFINE_int(deopt_every_n_garbage_collections, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 "enable loading 32-bit constant by means of movw/movt " | 354 "enable loading 32-bit constant by means of movw/movt " |
353 "instruction pairs (ARM only)") | 355 "instruction pairs (ARM only)") |
354 DEFINE_bool(enable_unaligned_accesses, true, | 356 DEFINE_bool(enable_unaligned_accesses, true, |
355 "enable unaligned accesses for ARMv7 (ARM only)") | 357 "enable unaligned accesses for ARMv7 (ARM only)") |
356 DEFINE_bool(enable_32dregs, ENABLE_32DREGS_DEFAULT, | 358 DEFINE_bool(enable_32dregs, ENABLE_32DREGS_DEFAULT, |
357 "enable use of d16-d31 registers on ARM - this requires VFP3") | 359 "enable use of d16-d31 registers on ARM - this requires VFP3") |
358 DEFINE_bool(enable_vldr_imm, false, | 360 DEFINE_bool(enable_vldr_imm, false, |
359 "enable use of constant pools for double immediate (ARM only)") | 361 "enable use of constant pools for double immediate (ARM only)") |
360 | 362 |
361 // bootstrapper.cc | 363 // bootstrapper.cc |
| 364 DEFINE_bool(enable_i18n, true, "enable i18n extension") |
362 DEFINE_string(expose_natives_as, NULL, "expose natives in global object") | 365 DEFINE_string(expose_natives_as, NULL, "expose natives in global object") |
363 DEFINE_string(expose_debug_as, NULL, "expose debug in global object") | 366 DEFINE_string(expose_debug_as, NULL, "expose debug in global object") |
364 DEFINE_bool(expose_gc, false, "expose gc extension") | 367 DEFINE_bool(expose_gc, false, "expose gc extension") |
365 DEFINE_string(expose_gc_as, | 368 DEFINE_string(expose_gc_as, |
366 NULL, | 369 NULL, |
367 "expose gc extension under the specified name") | 370 "expose gc extension under the specified name") |
368 DEFINE_implication(expose_gc_as, expose_gc) | 371 DEFINE_implication(expose_gc_as, expose_gc) |
369 DEFINE_bool(expose_externalize_string, false, | 372 DEFINE_bool(expose_externalize_string, false, |
370 "expose externalize string extension") | 373 "expose externalize string extension") |
371 DEFINE_int(stack_trace_limit, 10, "number of stack frames to capture") | 374 DEFINE_int(stack_trace_limit, 10, "number of stack frames to capture") |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 "print cumulative GC statistics in name=value format on exit") | 463 "print cumulative GC statistics in name=value format on exit") |
461 DEFINE_bool(trace_gc_verbose, false, | 464 DEFINE_bool(trace_gc_verbose, false, |
462 "print more details following each garbage collection") | 465 "print more details following each garbage collection") |
463 DEFINE_bool(trace_fragmentation, false, | 466 DEFINE_bool(trace_fragmentation, false, |
464 "report fragmentation for old pointer and data pages") | 467 "report fragmentation for old pointer and data pages") |
465 DEFINE_bool(trace_external_memory, false, | 468 DEFINE_bool(trace_external_memory, false, |
466 "print amount of external allocated memory after each time " | 469 "print amount of external allocated memory after each time " |
467 "it is adjusted.") | 470 "it is adjusted.") |
468 DEFINE_bool(collect_maps, true, | 471 DEFINE_bool(collect_maps, true, |
469 "garbage collect maps from which no objects can be reached") | 472 "garbage collect maps from which no objects can be reached") |
470 DEFINE_bool(weak_embedded_maps_in_optimized_code, false, | 473 DEFINE_bool(weak_embedded_maps_in_optimized_code, true, |
471 "make maps embedded in optimized code weak") | 474 "make maps embedded in optimized code weak") |
472 DEFINE_bool(flush_code, true, | 475 DEFINE_bool(flush_code, true, |
473 "flush code that we expect not to use again (during full gc)") | 476 "flush code that we expect not to use again (during full gc)") |
474 DEFINE_bool(flush_code_incrementally, true, | 477 DEFINE_bool(flush_code_incrementally, true, |
475 "flush code that we expect not to use again (incrementally)") | 478 "flush code that we expect not to use again (incrementally)") |
476 DEFINE_bool(trace_code_flushing, false, "trace code flushing progress") | 479 DEFINE_bool(trace_code_flushing, false, "trace code flushing progress") |
477 DEFINE_bool(age_code, true, | 480 DEFINE_bool(age_code, true, |
478 "track un-executed functions to age code and flush only " | 481 "track un-executed functions to age code and flush only " |
479 "old code (required for code flushing)") | 482 "old code (required for code flushing)") |
480 DEFINE_bool(incremental_marking, true, "use incremental marking") | 483 DEFINE_bool(incremental_marking, true, "use incremental marking") |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 #undef DEFINE_bool | 816 #undef DEFINE_bool |
814 #undef DEFINE_int | 817 #undef DEFINE_int |
815 #undef DEFINE_string | 818 #undef DEFINE_string |
816 #undef DEFINE_implication | 819 #undef DEFINE_implication |
817 | 820 |
818 #undef FLAG_MODE_DECLARE | 821 #undef FLAG_MODE_DECLARE |
819 #undef FLAG_MODE_DEFINE | 822 #undef FLAG_MODE_DEFINE |
820 #undef FLAG_MODE_DEFINE_DEFAULTS | 823 #undef FLAG_MODE_DEFINE_DEFAULTS |
821 #undef FLAG_MODE_META | 824 #undef FLAG_MODE_META |
822 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 825 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
OLD | NEW |