| 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 "perform array bounds checks hoisting") | 287 "perform array bounds checks hoisting") |
| 288 DEFINE_bool(array_index_dehoisting, true, | 288 DEFINE_bool(array_index_dehoisting, true, |
| 289 "perform array index dehoisting") | 289 "perform array index dehoisting") |
| 290 DEFINE_bool(analyze_environment_liveness, true, | 290 DEFINE_bool(analyze_environment_liveness, true, |
| 291 "analyze liveness of environment slots and zap dead values") | 291 "analyze liveness of environment slots and zap dead values") |
| 292 DEFINE_bool(load_elimination, false, "use load elimination") | 292 DEFINE_bool(load_elimination, false, "use load elimination") |
| 293 DEFINE_bool(check_elimination, false, "use check elimination") | 293 DEFINE_bool(check_elimination, false, "use check elimination") |
| 294 DEFINE_bool(dead_code_elimination, true, "use dead code elimination") | 294 DEFINE_bool(dead_code_elimination, true, "use dead code elimination") |
| 295 DEFINE_bool(fold_constants, true, "use constant folding") | 295 DEFINE_bool(fold_constants, true, "use constant folding") |
| 296 DEFINE_bool(trace_dead_code_elimination, false, "trace dead code elimination") | 296 DEFINE_bool(trace_dead_code_elimination, false, "trace dead code elimination") |
| 297 DEFINE_bool(unreachable_code_elimination, false, | 297 DEFINE_bool(unreachable_code_elimination, true, "eliminate unreachable code") |
| 298 "eliminate unreachable code (hidden behind soft deopts)") | |
| 299 DEFINE_bool(track_allocation_sites, true, | 298 DEFINE_bool(track_allocation_sites, true, |
| 300 "Use allocation site info to reduce transitions") | 299 "Use allocation site info to reduce transitions") |
| 301 DEFINE_bool(trace_osr, false, "trace on-stack replacement") | 300 DEFINE_bool(trace_osr, false, "trace on-stack replacement") |
| 302 DEFINE_int(stress_runs, 0, "number of stress runs") | 301 DEFINE_int(stress_runs, 0, "number of stress runs") |
| 303 DEFINE_bool(optimize_closures, true, "optimize closures") | 302 DEFINE_bool(optimize_closures, true, "optimize closures") |
| 304 DEFINE_bool(lookup_sample_by_shared, true, | 303 DEFINE_bool(lookup_sample_by_shared, true, |
| 305 "when picking a function to optimize, watch for shared function " | 304 "when picking a function to optimize, watch for shared function " |
| 306 "info, not JSFunction itself") | 305 "info, not JSFunction itself") |
| 307 DEFINE_bool(cache_optimized_code, true, | 306 DEFINE_bool(cache_optimized_code, true, |
| 308 "cache optimized code for closures") | 307 "cache optimized code for closures") |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 "print more details following each garbage collection") | 504 "print more details following each garbage collection") |
| 506 DEFINE_bool(trace_fragmentation, false, | 505 DEFINE_bool(trace_fragmentation, false, |
| 507 "report fragmentation for old pointer and data pages") | 506 "report fragmentation for old pointer and data pages") |
| 508 DEFINE_bool(trace_external_memory, false, | 507 DEFINE_bool(trace_external_memory, false, |
| 509 "print amount of external allocated memory after each time " | 508 "print amount of external allocated memory after each time " |
| 510 "it is adjusted.") | 509 "it is adjusted.") |
| 511 DEFINE_bool(collect_maps, true, | 510 DEFINE_bool(collect_maps, true, |
| 512 "garbage collect maps from which no objects can be reached") | 511 "garbage collect maps from which no objects can be reached") |
| 513 DEFINE_bool(weak_embedded_maps_in_optimized_code, true, | 512 DEFINE_bool(weak_embedded_maps_in_optimized_code, true, |
| 514 "make maps embedded in optimized code weak") | 513 "make maps embedded in optimized code weak") |
| 514 DEFINE_bool(weak_embedded_objects_in_optimized_code, false, |
| 515 "make objects embedded in optimized code weak") |
| 515 DEFINE_bool(flush_code, true, | 516 DEFINE_bool(flush_code, true, |
| 516 "flush code that we expect not to use again (during full gc)") | 517 "flush code that we expect not to use again (during full gc)") |
| 517 DEFINE_bool(flush_code_incrementally, true, | 518 DEFINE_bool(flush_code_incrementally, true, |
| 518 "flush code that we expect not to use again (incrementally)") | 519 "flush code that we expect not to use again (incrementally)") |
| 519 DEFINE_bool(trace_code_flushing, false, "trace code flushing progress") | 520 DEFINE_bool(trace_code_flushing, false, "trace code flushing progress") |
| 520 DEFINE_bool(age_code, true, | 521 DEFINE_bool(age_code, true, |
| 521 "track un-executed functions to age code and flush only " | 522 "track un-executed functions to age code and flush only " |
| 522 "old code (required for code flushing)") | 523 "old code (required for code flushing)") |
| 523 DEFINE_bool(incremental_marking, true, "use incremental marking") | 524 DEFINE_bool(incremental_marking, true, "use incremental marking") |
| 524 DEFINE_bool(incremental_marking_steps, true, "do incremental marking steps") | 525 DEFINE_bool(incremental_marking_steps, true, "do incremental marking steps") |
| 525 DEFINE_bool(trace_incremental_marking, false, | 526 DEFINE_bool(trace_incremental_marking, false, |
| 526 "trace progress of the incremental marking") | 527 "trace progress of the incremental marking") |
| 527 DEFINE_bool(track_gc_object_stats, false, | 528 DEFINE_bool(track_gc_object_stats, false, |
| 528 "track object counts and memory usage") | 529 "track object counts and memory usage") |
| 529 DEFINE_bool(parallel_sweeping, true, "enable parallel sweeping") | 530 DEFINE_bool(parallel_sweeping, true, "enable parallel sweeping") |
| 530 DEFINE_bool(concurrent_sweeping, false, "enable concurrent sweeping") | 531 DEFINE_bool(concurrent_sweeping, false, "enable concurrent sweeping") |
| 531 DEFINE_int(sweeper_threads, 0, | 532 DEFINE_int(sweeper_threads, 0, |
| 532 "number of parallel and concurrent sweeping threads") | 533 "number of parallel and concurrent sweeping threads") |
| 533 DEFINE_bool(parallel_marking, false, "enable parallel marking") | |
| 534 DEFINE_int(marking_threads, 0, "number of parallel marking threads") | |
| 535 #ifdef VERIFY_HEAP | 534 #ifdef VERIFY_HEAP |
| 536 DEFINE_bool(verify_heap, false, "verify heap pointers before and after GC") | 535 DEFINE_bool(verify_heap, false, "verify heap pointers before and after GC") |
| 537 #endif | 536 #endif |
| 538 | 537 |
| 539 // v8.cc | 538 // v8.cc |
| 540 DEFINE_bool(use_idle_notification, true, | 539 DEFINE_bool(use_idle_notification, true, |
| 541 "Use idle notification to reduce memory footprint.") | 540 "Use idle notification to reduce memory footprint.") |
| 542 // ic.cc | 541 // ic.cc |
| 543 DEFINE_bool(use_ic, true, "use inline caching") | 542 DEFINE_bool(use_ic, true, "use inline caching") |
| 544 | 543 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 "preallocate some memory to build stack traces.") | 605 "preallocate some memory to build stack traces.") |
| 607 DEFINE_bool(randomize_hashes, | 606 DEFINE_bool(randomize_hashes, |
| 608 true, | 607 true, |
| 609 "randomize hashes to avoid predictable hash collisions " | 608 "randomize hashes to avoid predictable hash collisions " |
| 610 "(with snapshots this option cannot override the baked-in seed)") | 609 "(with snapshots this option cannot override the baked-in seed)") |
| 611 DEFINE_int(hash_seed, | 610 DEFINE_int(hash_seed, |
| 612 0, | 611 0, |
| 613 "Fixed seed to use to hash property keys (0 means random)" | 612 "Fixed seed to use to hash property keys (0 means random)" |
| 614 "(with snapshots this option cannot override the baked-in seed)") | 613 "(with snapshots this option cannot override the baked-in seed)") |
| 615 | 614 |
| 615 // snapshot-common.cc |
| 616 DEFINE_bool(profile_deserialization, |
| 617 false, |
| 618 "Print the time it takes to deserialize the snapshot.") |
| 619 |
| 616 // v8.cc | 620 // v8.cc |
| 617 DEFINE_bool(preemption, false, | 621 DEFINE_bool(preemption, false, |
| 618 "activate a 100ms timer that switches between V8 threads") | 622 "activate a 100ms timer that switches between V8 threads") |
| 619 | 623 |
| 620 // Regexp | 624 // Regexp |
| 621 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code") | 625 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code") |
| 622 | 626 |
| 623 // Testing flags test/cctest/test-{flags,api,serialization}.cc | 627 // Testing flags test/cctest/test-{flags,api,serialization}.cc |
| 624 DEFINE_bool(testing_bool_flag, true, "testing_bool_flag") | 628 DEFINE_bool(testing_bool_flag, true, "testing_bool_flag") |
| 625 DEFINE_maybe_bool(testing_maybe_bool_flag, "testing_maybe_bool_flag") | 629 DEFINE_maybe_bool(testing_maybe_bool_flag, "testing_maybe_bool_flag") |
| 626 DEFINE_int(testing_int_flag, 13, "testing_int_flag") | 630 DEFINE_int(testing_int_flag, 13, "testing_int_flag") |
| 627 DEFINE_float(testing_float_flag, 2.5, "float-flag") | 631 DEFINE_float(testing_float_flag, 2.5, "float-flag") |
| 628 DEFINE_string(testing_string_flag, "Hello, world!", "string-flag") | 632 DEFINE_string(testing_string_flag, "Hello, world!", "string-flag") |
| 629 DEFINE_int(testing_prng_seed, 42, "Seed used for threading test randomness") | 633 DEFINE_int(testing_prng_seed, 42, "Seed used for threading test randomness") |
| 630 #ifdef _WIN32 | 634 #ifdef _WIN32 |
| 631 DEFINE_string(testing_serialization_file, "C:\\Windows\\Temp\\serdes", | 635 DEFINE_string(testing_serialization_file, "C:\\Windows\\Temp\\serdes", |
| 632 "file in which to testing_serialize heap") | 636 "file in which to testing_serialize heap") |
| 633 #else | 637 #else |
| 634 DEFINE_string(testing_serialization_file, "/tmp/serdes", | 638 DEFINE_string(testing_serialization_file, "/tmp/serdes", |
| 635 "file in which to serialize heap") | 639 "file in which to serialize heap") |
| 636 #endif | 640 #endif |
| 637 | 641 |
| 638 // mksnapshot.cc | 642 // mksnapshot.cc |
| 639 DEFINE_string(extra_code, NULL, "A filename with extra code to be included in" | 643 DEFINE_string(extra_code, NULL, "A filename with extra code to be included in" |
| 640 " the snapshot (mksnapshot only)") | 644 " the snapshot (mksnapshot only)") |
| 641 | 645 |
| 646 // code-stubs-hydrogen.cc |
| 647 DEFINE_bool(profile_hydrogen_code_stub_compilation, |
| 648 false, |
| 649 "Print the time it takes to lazily compile hydrogen code stubs.") |
| 650 |
| 642 // | 651 // |
| 643 // Dev shell flags | 652 // Dev shell flags |
| 644 // | 653 // |
| 645 | 654 |
| 646 DEFINE_bool(help, false, "Print usage message, including flags, on console") | 655 DEFINE_bool(help, false, "Print usage message, including flags, on console") |
| 647 DEFINE_bool(dump_counters, false, "Dump counters on exit") | 656 DEFINE_bool(dump_counters, false, "Dump counters on exit") |
| 648 | 657 |
| 649 #ifdef ENABLE_DEBUGGER_SUPPORT | 658 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 650 DEFINE_bool(debugger, false, "Enable JavaScript debugger") | 659 DEFINE_bool(debugger, false, "Enable JavaScript debugger") |
| 651 DEFINE_bool(remote_debugger, false, "Connect JavaScript debugger to the " | 660 DEFINE_bool(remote_debugger, false, "Connect JavaScript debugger to the " |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 // code-stubs.cc | 826 // code-stubs.cc |
| 818 DEFINE_bool(print_code_stubs, false, "print code stubs") | 827 DEFINE_bool(print_code_stubs, false, "print code stubs") |
| 819 DEFINE_bool(test_secondary_stub_cache, | 828 DEFINE_bool(test_secondary_stub_cache, |
| 820 false, | 829 false, |
| 821 "test secondary stub cache by disabling the primary one") | 830 "test secondary stub cache by disabling the primary one") |
| 822 | 831 |
| 823 DEFINE_bool(test_primary_stub_cache, | 832 DEFINE_bool(test_primary_stub_cache, |
| 824 false, | 833 false, |
| 825 "test primary stub cache by disabling the secondary one") | 834 "test primary stub cache by disabling the secondary one") |
| 826 | 835 |
| 836 |
| 827 // codegen-ia32.cc / codegen-arm.cc | 837 // codegen-ia32.cc / codegen-arm.cc |
| 828 DEFINE_bool(print_code, false, "print generated code") | 838 DEFINE_bool(print_code, false, "print generated code") |
| 829 DEFINE_bool(print_opt_code, false, "print optimized code") | 839 DEFINE_bool(print_opt_code, false, "print optimized code") |
| 830 DEFINE_bool(print_unopt_code, false, "print unoptimized code before " | 840 DEFINE_bool(print_unopt_code, false, "print unoptimized code before " |
| 831 "printing optimized code based on it") | 841 "printing optimized code based on it") |
| 832 DEFINE_bool(print_code_verbose, false, "print more information for code") | 842 DEFINE_bool(print_code_verbose, false, "print more information for code") |
| 833 DEFINE_bool(print_builtin_code, false, "print generated code for builtins") | 843 DEFINE_bool(print_builtin_code, false, "print generated code for builtins") |
| 834 | 844 |
| 835 #ifdef ENABLE_DISASSEMBLER | 845 #ifdef ENABLE_DISASSEMBLER |
| 836 DEFINE_bool(print_all_code, false, "enable all flags related to printing code") | 846 DEFINE_bool(print_all_code, false, "enable all flags related to printing code") |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 #undef DEFINE_ALIAS_float | 885 #undef DEFINE_ALIAS_float |
| 876 #undef DEFINE_ALIAS_args | 886 #undef DEFINE_ALIAS_args |
| 877 | 887 |
| 878 #undef FLAG_MODE_DECLARE | 888 #undef FLAG_MODE_DECLARE |
| 879 #undef FLAG_MODE_DEFINE | 889 #undef FLAG_MODE_DEFINE |
| 880 #undef FLAG_MODE_DEFINE_DEFAULTS | 890 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 881 #undef FLAG_MODE_META | 891 #undef FLAG_MODE_META |
| 882 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 892 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
| 883 | 893 |
| 884 #undef COMMA | 894 #undef COMMA |
| OLD | NEW |