Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: src/flag-definitions.h

Issue 181453002: Reset trunk to 3.24.35.4 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/feedback-slots.h ('k') | src/frames.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 DEFINE_bool(trace_pretenuring_statistics, false, 227 DEFINE_bool(trace_pretenuring_statistics, false,
228 "trace allocation site pretenuring statistics") 228 "trace allocation site pretenuring statistics")
229 DEFINE_bool(track_fields, true, "track fields with only smi values") 229 DEFINE_bool(track_fields, true, "track fields with only smi values")
230 DEFINE_bool(track_double_fields, true, "track fields with double values") 230 DEFINE_bool(track_double_fields, true, "track fields with double values")
231 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")
232 DEFINE_bool(track_computed_fields, true, "track computed boilerplate fields") 232 DEFINE_bool(track_computed_fields, true, "track computed boilerplate fields")
233 DEFINE_implication(track_double_fields, track_fields) 233 DEFINE_implication(track_double_fields, track_fields)
234 DEFINE_implication(track_heap_object_fields, track_fields) 234 DEFINE_implication(track_heap_object_fields, track_fields)
235 DEFINE_implication(track_computed_fields, track_fields) 235 DEFINE_implication(track_computed_fields, track_fields)
236 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")
237 238
238 // Flags for optimization types. 239 // Flags for optimization types.
239 DEFINE_bool(optimize_for_size, false, 240 DEFINE_bool(optimize_for_size, false,
240 "Enables optimizations which favor memory size over execution " 241 "Enables optimizations which favor memory size over execution "
241 "speed.") 242 "speed.")
242 243
243 // Flags for data representation optimizations 244 // Flags for data representation optimizations
244 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") 245 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles")
245 DEFINE_bool(string_slices, true, "use string slices") 246 DEFINE_bool(string_slices, true, "use string slices")
246 247
247 // Flags for Crankshaft. 248 // Flags for Crankshaft.
248 DEFINE_bool(crankshaft, true, "use crankshaft") 249 DEFINE_bool(crankshaft, true, "use crankshaft")
249 DEFINE_string(hydrogen_filter, "*", "optimization filter") 250 DEFINE_string(hydrogen_filter, "*", "optimization filter")
250 DEFINE_bool(use_range, true, "use hydrogen range analysis") 251 DEFINE_bool(use_range, true, "use hydrogen range analysis")
251 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") 252 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering")
252 DEFINE_int(gvn_iterations, 3, "maximum number of GVN fix-point iterations") 253 DEFINE_int(gvn_iterations, 3, "maximum number of GVN fix-point iterations")
253 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") 254 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing")
254 DEFINE_bool(use_inlining, true, "use function inlining") 255 DEFINE_bool(use_inlining, true, "use function inlining")
255 DEFINE_bool(use_escape_analysis, true, "use hydrogen escape analysis") 256 DEFINE_bool(use_escape_analysis, true, "use hydrogen escape analysis")
256 DEFINE_bool(use_allocation_folding, true, "use allocation folding") 257 DEFINE_bool(use_allocation_folding, true, "use allocation folding")
257 DEFINE_bool(use_local_allocation_folding, false, "only fold in basic blocks")
258 DEFINE_bool(use_write_barrier_elimination, true,
259 "eliminate write barriers targeting allocations in optimized code")
260 DEFINE_int(max_inlining_levels, 5, "maximum number of inlining levels") 258 DEFINE_int(max_inlining_levels, 5, "maximum number of inlining levels")
261 DEFINE_int(max_inlined_source_size, 600, 259 DEFINE_int(max_inlined_source_size, 600,
262 "maximum source size in bytes considered for a single inlining") 260 "maximum source size in bytes considered for a single inlining")
263 DEFINE_int(max_inlined_nodes, 196, 261 DEFINE_int(max_inlined_nodes, 196,
264 "maximum number of AST nodes considered for a single inlining") 262 "maximum number of AST nodes considered for a single inlining")
265 DEFINE_int(max_inlined_nodes_cumulative, 400, 263 DEFINE_int(max_inlined_nodes_cumulative, 400,
266 "maximum cumulative number of AST nodes considered for inlining") 264 "maximum cumulative number of AST nodes considered for inlining")
267 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") 265 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion")
268 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")
269 DEFINE_bool(collect_megamorphic_maps_from_stub_cache, true, 267 DEFINE_bool(collect_megamorphic_maps_from_stub_cache, true,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 "enable use of SDIV and UDIV instructions if available (ARM only)") 389 "enable use of SDIV and UDIV instructions if available (ARM only)")
392 DEFINE_bool(enable_movw_movt, false, 390 DEFINE_bool(enable_movw_movt, false,
393 "enable loading 32-bit constant by means of movw/movt " 391 "enable loading 32-bit constant by means of movw/movt "
394 "instruction pairs (ARM only)") 392 "instruction pairs (ARM only)")
395 DEFINE_bool(enable_unaligned_accesses, true, 393 DEFINE_bool(enable_unaligned_accesses, true,
396 "enable unaligned accesses for ARMv7 (ARM only)") 394 "enable unaligned accesses for ARMv7 (ARM only)")
397 DEFINE_bool(enable_32dregs, ENABLE_32DREGS_DEFAULT, 395 DEFINE_bool(enable_32dregs, ENABLE_32DREGS_DEFAULT,
398 "enable use of d16-d31 registers on ARM - this requires VFP3") 396 "enable use of d16-d31 registers on ARM - this requires VFP3")
399 DEFINE_bool(enable_vldr_imm, false, 397 DEFINE_bool(enable_vldr_imm, false,
400 "enable use of constant pools for double immediate (ARM only)") 398 "enable use of constant pools for double immediate (ARM only)")
401 DEFINE_bool(force_long_branches, false,
402 "force all emitted branches to be in long mode (MIPS only)")
403 399
404 // bootstrapper.cc 400 // bootstrapper.cc
405 DEFINE_string(expose_natives_as, NULL, "expose natives in global object") 401 DEFINE_string(expose_natives_as, NULL, "expose natives in global object")
406 DEFINE_string(expose_debug_as, NULL, "expose debug in global object") 402 DEFINE_string(expose_debug_as, NULL, "expose debug in global object")
407 DEFINE_bool(expose_free_buffer, false, "expose freeBuffer extension") 403 DEFINE_bool(expose_free_buffer, false, "expose freeBuffer extension")
408 DEFINE_bool(expose_gc, false, "expose gc extension") 404 DEFINE_bool(expose_gc, false, "expose gc extension")
409 DEFINE_string(expose_gc_as, NULL, 405 DEFINE_string(expose_gc_as, NULL,
410 "expose gc extension under the specified name") 406 "expose gc extension under the specified name")
411 DEFINE_implication(expose_gc_as, expose_gc) 407 DEFINE_implication(expose_gc_as, expose_gc)
412 DEFINE_bool(expose_externalize_string, false, 408 DEFINE_bool(expose_externalize_string, false,
413 "expose externalize string extension") 409 "expose externalize string extension")
414 DEFINE_bool(expose_trigger_failure, false, "expose trigger-failure extension") 410 DEFINE_bool(expose_trigger_failure, false, "expose trigger-failure extension")
415 DEFINE_int(stack_trace_limit, 10, "number of stack frames to capture") 411 DEFINE_int(stack_trace_limit, 10, "number of stack frames to capture")
416 DEFINE_bool(builtins_in_stack_traces, false, 412 DEFINE_bool(builtins_in_stack_traces, false,
417 "show built-in functions in stack traces") 413 "show built-in functions in stack traces")
418 DEFINE_bool(disable_native_files, false, "disable builtin natives files") 414 DEFINE_bool(disable_native_files, false, "disable builtin natives files")
419 415
420 // builtins-ia32.cc 416 // builtins-ia32.cc
421 DEFINE_bool(inline_new, true, "use fast inline allocation") 417 DEFINE_bool(inline_new, true, "use fast inline allocation")
422 418
419 // checks.cc
420 DEFINE_bool(stack_trace_on_abort, true,
421 "print a stack trace if an assertion failure occurs")
422
423 // codegen-ia32.cc / codegen-arm.cc 423 // codegen-ia32.cc / codegen-arm.cc
424 DEFINE_bool(trace_codegen, false, 424 DEFINE_bool(trace_codegen, false,
425 "print name of functions for which code is generated") 425 "print name of functions for which code is generated")
426 DEFINE_bool(trace, false, "trace function calls") 426 DEFINE_bool(trace, false, "trace function calls")
427 DEFINE_bool(mask_constants_with_cookie, true, 427 DEFINE_bool(mask_constants_with_cookie, true,
428 "use random jit cookie to mask large constants") 428 "use random jit cookie to mask large constants")
429 429
430 // codegen.cc 430 // codegen.cc
431 DEFINE_bool(lazy, true, "use lazy compilation") 431 DEFINE_bool(lazy, true, "use lazy compilation")
432 DEFINE_bool(trace_opt, false, "trace lazy optimization") 432 DEFINE_bool(trace_opt, false, "trace lazy optimization")
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 DEFINE_bool(incremental_marking, true, "use incremental marking") 528 DEFINE_bool(incremental_marking, true, "use incremental marking")
529 DEFINE_bool(incremental_marking_steps, true, "do incremental marking steps") 529 DEFINE_bool(incremental_marking_steps, true, "do incremental marking steps")
530 DEFINE_bool(trace_incremental_marking, false, 530 DEFINE_bool(trace_incremental_marking, false,
531 "trace progress of the incremental marking") 531 "trace progress of the incremental marking")
532 DEFINE_bool(track_gc_object_stats, false, 532 DEFINE_bool(track_gc_object_stats, false,
533 "track object counts and memory usage") 533 "track object counts and memory usage")
534 DEFINE_bool(parallel_sweeping, true, "enable parallel sweeping") 534 DEFINE_bool(parallel_sweeping, true, "enable parallel sweeping")
535 DEFINE_bool(concurrent_sweeping, false, "enable concurrent sweeping") 535 DEFINE_bool(concurrent_sweeping, false, "enable concurrent sweeping")
536 DEFINE_int(sweeper_threads, 0, 536 DEFINE_int(sweeper_threads, 0,
537 "number of parallel and concurrent sweeping threads") 537 "number of parallel and concurrent sweeping threads")
538 DEFINE_bool(job_based_sweeping, false, "enable job based sweeping")
539 #ifdef VERIFY_HEAP 538 #ifdef VERIFY_HEAP
540 DEFINE_bool(verify_heap, false, "verify heap pointers before and after GC") 539 DEFINE_bool(verify_heap, false, "verify heap pointers before and after GC")
541 #endif 540 #endif
542 541
543 542
544 // heap-snapshot-generator.cc 543 // heap-snapshot-generator.cc
545 DEFINE_bool(heap_profiler_trace_objects, false, 544 DEFINE_bool(heap_profiler_trace_objects, false,
546 "Dump heap object allocations/movements/size_updates") 545 "Dump heap object allocations/movements/size_updates")
547 546
548 547
(...skipping 27 matching lines...) Expand all
576 "Default seed for initializing random generator " 575 "Default seed for initializing random generator "
577 "(0, the default, means to use system random).") 576 "(0, the default, means to use system random).")
578 577
579 // objects.cc 578 // objects.cc
580 DEFINE_bool(use_verbose_printer, true, "allows verbose printing") 579 DEFINE_bool(use_verbose_printer, true, "allows verbose printing")
581 580
582 // parser.cc 581 // parser.cc
583 DEFINE_bool(allow_natives_syntax, false, "allow natives syntax") 582 DEFINE_bool(allow_natives_syntax, false, "allow natives syntax")
584 DEFINE_bool(trace_parse, false, "trace parsing and preparsing") 583 DEFINE_bool(trace_parse, false, "trace parsing and preparsing")
585 584
586 // simulator-arm.cc, simulator-a64.cc and simulator-mips.cc 585 // simulator-arm.cc and simulator-mips.cc
587 DEFINE_bool(trace_sim, false, "Trace simulator execution") 586 DEFINE_bool(trace_sim, false, "Trace simulator execution")
588 DEFINE_bool(check_icache, false, 587 DEFINE_bool(check_icache, false,
589 "Check icache flushes in ARM and MIPS simulator") 588 "Check icache flushes in ARM and MIPS simulator")
590 DEFINE_int(stop_sim_at, 0, "Simulator stop after x number of instructions") 589 DEFINE_int(stop_sim_at, 0, "Simulator stop after x number of instructions")
591 #ifdef V8_TARGET_ARCH_A64
592 DEFINE_int(sim_stack_alignment, 16,
593 "Stack alignment in bytes in simulator. This must be a power of two "
594 "and it must be at least 16. 16 is default.")
595 #else
596 DEFINE_int(sim_stack_alignment, 8, 590 DEFINE_int(sim_stack_alignment, 8,
597 "Stack alingment in bytes in simulator (4 or 8, 8 is default)") 591 "Stack alingment in bytes in simulator (4 or 8, 8 is default)")
598 #endif
599 DEFINE_int(sim_stack_size, 2 * MB / KB,
600 "Stack size of the A64 simulator in kBytes (default is 2 MB)")
601 DEFINE_bool(log_regs_modified, true,
602 "When logging register values, only print modified registers.")
603 DEFINE_bool(log_colour, true,
604 "When logging, try to use coloured output.")
605 DEFINE_bool(ignore_asm_unimplemented_break, false,
606 "Don't break for ASM_UNIMPLEMENTED_BREAK macros.")
607 DEFINE_bool(trace_sim_messages, false,
608 "Trace simulator debug messages. Implied by --trace-sim.")
609 592
610 // isolate.cc 593 // isolate.cc
611 DEFINE_bool(stack_trace_on_illegal, false,
612 "print stack trace when an illegal exception is thrown")
613 DEFINE_bool(abort_on_uncaught_exception, false, 594 DEFINE_bool(abort_on_uncaught_exception, false,
614 "abort program (dump core) when an uncaught exception is thrown") 595 "abort program (dump core) when an uncaught exception is thrown")
596 DEFINE_bool(trace_exception, false,
597 "print stack trace when throwing exceptions")
615 DEFINE_bool(randomize_hashes, true, 598 DEFINE_bool(randomize_hashes, true,
616 "randomize hashes to avoid predictable hash collisions " 599 "randomize hashes to avoid predictable hash collisions "
617 "(with snapshots this option cannot override the baked-in seed)") 600 "(with snapshots this option cannot override the baked-in seed)")
618 DEFINE_int(hash_seed, 0, 601 DEFINE_int(hash_seed, 0,
619 "Fixed seed to use to hash property keys (0 means random)" 602 "Fixed seed to use to hash property keys (0 means random)"
620 "(with snapshots this option cannot override the baked-in seed)") 603 "(with snapshots this option cannot override the baked-in seed)")
621 604
622 // snapshot-common.cc 605 // snapshot-common.cc
623 DEFINE_bool(profile_deserialization, false, 606 DEFINE_bool(profile_deserialization, false,
624 "Print the time it takes to deserialize the snapshot.") 607 "Print the time it takes to deserialize the snapshot.")
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 "Enable perf linux profiler (basic support).") 792 "Enable perf linux profiler (basic support).")
810 DEFINE_bool(perf_jit_prof, false, 793 DEFINE_bool(perf_jit_prof, false,
811 "Enable perf linux profiler (experimental annotate support).") 794 "Enable perf linux profiler (experimental annotate support).")
812 DEFINE_string(gc_fake_mmap, "/tmp/__v8_gc__", 795 DEFINE_string(gc_fake_mmap, "/tmp/__v8_gc__",
813 "Specify the name of the file for fake gc mmap used in ll_prof") 796 "Specify the name of the file for fake gc mmap used in ll_prof")
814 DEFINE_bool(log_internal_timer_events, false, "Time internal events.") 797 DEFINE_bool(log_internal_timer_events, false, "Time internal events.")
815 DEFINE_bool(log_timer_events, false, 798 DEFINE_bool(log_timer_events, false,
816 "Time events including external callbacks.") 799 "Time events including external callbacks.")
817 DEFINE_implication(log_timer_events, log_internal_timer_events) 800 DEFINE_implication(log_timer_events, log_internal_timer_events)
818 DEFINE_implication(log_internal_timer_events, prof) 801 DEFINE_implication(log_internal_timer_events, prof)
819 DEFINE_bool(log_instruction_stats, false, "Log AArch64 instruction statistics.")
820 DEFINE_string(log_instruction_file, "a64_inst.csv",
821 "AArch64 instruction statistics log file.")
822 DEFINE_int(log_instruction_period, 1 << 22,
823 "AArch64 instruction statistics logging period.")
824 802
825 DEFINE_bool(redirect_code_traces, false, 803 DEFINE_bool(redirect_code_traces, false,
826 "output deopt information and disassembly into file " 804 "output deopt information and disassembly into file "
827 "code-<pid>-<isolate id>.asm") 805 "code-<pid>-<isolate id>.asm")
828 DEFINE_string(redirect_code_traces_to, NULL, 806 DEFINE_string(redirect_code_traces_to, NULL,
829 "output deopt information and disassembly into the given file") 807 "output deopt information and disassembly into the given file")
830 808
831 DEFINE_bool(hydrogen_track_positions, false,
832 "track source code positions when building IR")
833
834 // 809 //
835 // Disassembler only flags 810 // Disassembler only flags
836 // 811 //
837 #undef FLAG 812 #undef FLAG
838 #ifdef ENABLE_DISASSEMBLER 813 #ifdef ENABLE_DISASSEMBLER
839 #define FLAG FLAG_FULL 814 #define FLAG FLAG_FULL
840 #else 815 #else
841 #define FLAG FLAG_READONLY 816 #define FLAG FLAG_READONLY
842 #endif 817 #endif
843 818
(...skipping 12 matching lines...) Expand all
856 "test primary stub cache by disabling the secondary one") 831 "test primary stub cache by disabling the secondary one")
857 832
858 833
859 // codegen-ia32.cc / codegen-arm.cc 834 // codegen-ia32.cc / codegen-arm.cc
860 DEFINE_bool(print_code, false, "print generated code") 835 DEFINE_bool(print_code, false, "print generated code")
861 DEFINE_bool(print_opt_code, false, "print optimized code") 836 DEFINE_bool(print_opt_code, false, "print optimized code")
862 DEFINE_bool(print_unopt_code, false, "print unoptimized code before " 837 DEFINE_bool(print_unopt_code, false, "print unoptimized code before "
863 "printing optimized code based on it") 838 "printing optimized code based on it")
864 DEFINE_bool(print_code_verbose, false, "print more information for code") 839 DEFINE_bool(print_code_verbose, false, "print more information for code")
865 DEFINE_bool(print_builtin_code, false, "print generated code for builtins") 840 DEFINE_bool(print_builtin_code, false, "print generated code for builtins")
841 DEFINE_bool(emit_opt_code_positions, false,
842 "annotate optimize code with source code positions")
866 843
867 #ifdef ENABLE_DISASSEMBLER 844 #ifdef ENABLE_DISASSEMBLER
868 DEFINE_bool(sodium, false, "print generated code output suitable for use with " 845 DEFINE_bool(sodium, false, "print generated code output suitable for use with "
869 "the Sodium code viewer") 846 "the Sodium code viewer")
870 847
871 DEFINE_implication(sodium, print_code_stubs) 848 DEFINE_implication(sodium, print_code_stubs)
872 DEFINE_implication(sodium, print_code) 849 DEFINE_implication(sodium, print_code)
873 DEFINE_implication(sodium, print_opt_code) 850 DEFINE_implication(sodium, print_opt_code)
874 DEFINE_implication(sodium, hydrogen_track_positions) 851 DEFINE_implication(sodium, emit_opt_code_positions)
875 DEFINE_implication(sodium, code_comments) 852 DEFINE_implication(sodium, code_comments)
876 853
877 DEFINE_bool(print_all_code, false, "enable all flags related to printing code") 854 DEFINE_bool(print_all_code, false, "enable all flags related to printing code")
878 DEFINE_implication(print_all_code, print_code) 855 DEFINE_implication(print_all_code, print_code)
879 DEFINE_implication(print_all_code, print_opt_code) 856 DEFINE_implication(print_all_code, print_opt_code)
880 DEFINE_implication(print_all_code, print_unopt_code) 857 DEFINE_implication(print_all_code, print_unopt_code)
881 DEFINE_implication(print_all_code, print_code_verbose) 858 DEFINE_implication(print_all_code, print_code_verbose)
882 DEFINE_implication(print_all_code, print_builtin_code) 859 DEFINE_implication(print_all_code, print_builtin_code)
883 DEFINE_implication(print_all_code, print_code_stubs) 860 DEFINE_implication(print_all_code, print_code_stubs)
884 DEFINE_implication(print_all_code, code_comments) 861 DEFINE_implication(print_all_code, code_comments)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 #undef DEFINE_ALIAS_float 894 #undef DEFINE_ALIAS_float
918 #undef DEFINE_ALIAS_args 895 #undef DEFINE_ALIAS_args
919 896
920 #undef FLAG_MODE_DECLARE 897 #undef FLAG_MODE_DECLARE
921 #undef FLAG_MODE_DEFINE 898 #undef FLAG_MODE_DEFINE
922 #undef FLAG_MODE_DEFINE_DEFAULTS 899 #undef FLAG_MODE_DEFINE_DEFAULTS
923 #undef FLAG_MODE_META 900 #undef FLAG_MODE_META
924 #undef FLAG_MODE_DEFINE_IMPLICATIONS 901 #undef FLAG_MODE_DEFINE_IMPLICATIONS
925 902
926 #undef COMMA 903 #undef COMMA
OLDNEW
« no previous file with comments | « src/feedback-slots.h ('k') | src/frames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698