| 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") |
| 235 | 237 |
| 236 // Flags for optimization types. | 238 // Flags for optimization types. |
| 237 DEFINE_bool(optimize_for_size, false, | 239 DEFINE_bool(optimize_for_size, false, |
| 238 "Enables optimizations which favor memory size over execution " | 240 "Enables optimizations which favor memory size over execution " |
| 239 "speed.") | 241 "speed.") |
| 240 | 242 |
| 241 // Flags for data representation optimizations | 243 // Flags for data representation optimizations |
| 242 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") | 244 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") |
| 243 DEFINE_bool(string_slices, true, "use string slices") | 245 DEFINE_bool(string_slices, true, "use string slices") |
| 244 | 246 |
| 245 // Flags for Crankshaft. | 247 // Flags for Crankshaft. |
| 246 DEFINE_bool(crankshaft, true, "use crankshaft") | 248 DEFINE_bool(crankshaft, true, "use crankshaft") |
| 247 DEFINE_string(hydrogen_filter, "*", "optimization filter") | 249 DEFINE_string(hydrogen_filter, "*", "optimization filter") |
| 248 DEFINE_bool(use_range, true, "use hydrogen range analysis") | 250 DEFINE_bool(use_range, true, "use hydrogen range analysis") |
| 249 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") | 251 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") |
| 252 DEFINE_int(gvn_iterations, 3, "maximum number of GVN fix-point iterations") |
| 250 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") | 253 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") |
| 251 DEFINE_bool(use_inlining, true, "use function inlining") | 254 DEFINE_bool(use_inlining, true, "use function inlining") |
| 252 DEFINE_bool(use_escape_analysis, false, "use hydrogen escape analysis") | 255 DEFINE_bool(use_escape_analysis, true, "use hydrogen escape analysis") |
| 253 DEFINE_bool(use_allocation_folding, true, "use allocation folding") | 256 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") |
| 254 DEFINE_int(max_inlining_levels, 5, "maximum number of inlining levels") | 260 DEFINE_int(max_inlining_levels, 5, "maximum number of inlining levels") |
| 255 DEFINE_int(max_inlined_source_size, 600, | 261 DEFINE_int(max_inlined_source_size, 600, |
| 256 "maximum source size in bytes considered for a single inlining") | 262 "maximum source size in bytes considered for a single inlining") |
| 257 DEFINE_int(max_inlined_nodes, 196, | 263 DEFINE_int(max_inlined_nodes, 196, |
| 258 "maximum number of AST nodes considered for a single inlining") | 264 "maximum number of AST nodes considered for a single inlining") |
| 259 DEFINE_int(max_inlined_nodes_cumulative, 400, | 265 DEFINE_int(max_inlined_nodes_cumulative, 400, |
| 260 "maximum cumulative number of AST nodes considered for inlining") | 266 "maximum cumulative number of AST nodes considered for inlining") |
| 261 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") | 267 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") |
| 262 DEFINE_bool(fast_math, true, "faster (but maybe less accurate) math functions") | 268 DEFINE_bool(fast_math, true, "faster (but maybe less accurate) math functions") |
| 263 DEFINE_bool(collect_megamorphic_maps_from_stub_cache, true, | 269 DEFINE_bool(collect_megamorphic_maps_from_stub_cache, true, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 DEFINE_bool(block_concurrent_recompilation, false, | 348 DEFINE_bool(block_concurrent_recompilation, false, |
| 343 "block queued jobs until released") | 349 "block queued jobs until released") |
| 344 DEFINE_bool(concurrent_osr, false, | 350 DEFINE_bool(concurrent_osr, false, |
| 345 "concurrent on-stack replacement") | 351 "concurrent on-stack replacement") |
| 346 DEFINE_implication(concurrent_osr, concurrent_recompilation) | 352 DEFINE_implication(concurrent_osr, concurrent_recompilation) |
| 347 | 353 |
| 348 DEFINE_bool(omit_map_checks_for_leaf_maps, true, | 354 DEFINE_bool(omit_map_checks_for_leaf_maps, true, |
| 349 "do not emit check maps for constant values that have a leaf map, " | 355 "do not emit check maps for constant values that have a leaf map, " |
| 350 "deoptimize the optimized code if the layout of the maps changes.") | 356 "deoptimize the optimized code if the layout of the maps changes.") |
| 351 | 357 |
| 352 DEFINE_bool(new_string_add, true, "enable new string addition") | |
| 353 | |
| 354 // Profiler flags. | 358 // Profiler flags. |
| 355 DEFINE_int(frame_count, 1, "number of stack frames inspected by the profiler") | 359 DEFINE_int(frame_count, 1, "number of stack frames inspected by the profiler") |
| 356 // 0x1700 fits in the immediate field of an ARM instruction. | 360 // 0x1800 fits in the immediate field of an ARM instruction. |
| 357 DEFINE_int(interrupt_budget, 0x1700, | 361 DEFINE_int(interrupt_budget, 0x1800, |
| 358 "execution budget before interrupt is triggered") | 362 "execution budget before interrupt is triggered") |
| 359 DEFINE_int(type_info_threshold, 25, | 363 DEFINE_int(type_info_threshold, 25, |
| 360 "percentage of ICs that must have type info to allow optimization") | 364 "percentage of ICs that must have type info to allow optimization") |
| 361 DEFINE_int(self_opt_count, 130, "call count before self-optimization") | 365 DEFINE_int(self_opt_count, 130, "call count before self-optimization") |
| 362 | 366 |
| 363 DEFINE_bool(trace_opt_verbose, false, "extra verbose compilation tracing") | 367 DEFINE_bool(trace_opt_verbose, false, "extra verbose compilation tracing") |
| 364 DEFINE_implication(trace_opt_verbose, trace_opt) | 368 DEFINE_implication(trace_opt_verbose, trace_opt) |
| 365 | 369 |
| 366 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc | 370 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc |
| 367 DEFINE_bool(debug_code, false, | 371 DEFINE_bool(debug_code, false, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 387 "enable use of SDIV and UDIV instructions if available (ARM only)") | 391 "enable use of SDIV and UDIV instructions if available (ARM only)") |
| 388 DEFINE_bool(enable_movw_movt, false, | 392 DEFINE_bool(enable_movw_movt, false, |
| 389 "enable loading 32-bit constant by means of movw/movt " | 393 "enable loading 32-bit constant by means of movw/movt " |
| 390 "instruction pairs (ARM only)") | 394 "instruction pairs (ARM only)") |
| 391 DEFINE_bool(enable_unaligned_accesses, true, | 395 DEFINE_bool(enable_unaligned_accesses, true, |
| 392 "enable unaligned accesses for ARMv7 (ARM only)") | 396 "enable unaligned accesses for ARMv7 (ARM only)") |
| 393 DEFINE_bool(enable_32dregs, ENABLE_32DREGS_DEFAULT, | 397 DEFINE_bool(enable_32dregs, ENABLE_32DREGS_DEFAULT, |
| 394 "enable use of d16-d31 registers on ARM - this requires VFP3") | 398 "enable use of d16-d31 registers on ARM - this requires VFP3") |
| 395 DEFINE_bool(enable_vldr_imm, false, | 399 DEFINE_bool(enable_vldr_imm, false, |
| 396 "enable use of constant pools for double immediate (ARM only)") | 400 "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)") |
| 397 | 403 |
| 398 // bootstrapper.cc | 404 // bootstrapper.cc |
| 399 DEFINE_string(expose_natives_as, NULL, "expose natives in global object") | 405 DEFINE_string(expose_natives_as, NULL, "expose natives in global object") |
| 400 DEFINE_string(expose_debug_as, NULL, "expose debug in global object") | 406 DEFINE_string(expose_debug_as, NULL, "expose debug in global object") |
| 401 DEFINE_bool(expose_free_buffer, false, "expose freeBuffer extension") | 407 DEFINE_bool(expose_free_buffer, false, "expose freeBuffer extension") |
| 402 DEFINE_bool(expose_gc, false, "expose gc extension") | 408 DEFINE_bool(expose_gc, false, "expose gc extension") |
| 403 DEFINE_string(expose_gc_as, NULL, | 409 DEFINE_string(expose_gc_as, NULL, |
| 404 "expose gc extension under the specified name") | 410 "expose gc extension under the specified name") |
| 405 DEFINE_implication(expose_gc_as, expose_gc) | 411 DEFINE_implication(expose_gc_as, expose_gc) |
| 406 DEFINE_bool(expose_externalize_string, false, | 412 DEFINE_bool(expose_externalize_string, false, |
| 407 "expose externalize string extension") | 413 "expose externalize string extension") |
| 408 DEFINE_bool(expose_trigger_failure, false, "expose trigger-failure extension") | 414 DEFINE_bool(expose_trigger_failure, false, "expose trigger-failure extension") |
| 409 DEFINE_int(stack_trace_limit, 10, "number of stack frames to capture") | 415 DEFINE_int(stack_trace_limit, 10, "number of stack frames to capture") |
| 410 DEFINE_bool(builtins_in_stack_traces, false, | 416 DEFINE_bool(builtins_in_stack_traces, false, |
| 411 "show built-in functions in stack traces") | 417 "show built-in functions in stack traces") |
| 412 DEFINE_bool(disable_native_files, false, "disable builtin natives files") | 418 DEFINE_bool(disable_native_files, false, "disable builtin natives files") |
| 413 | 419 |
| 414 // builtins-ia32.cc | 420 // builtins-ia32.cc |
| 415 DEFINE_bool(inline_new, true, "use fast inline allocation") | 421 DEFINE_bool(inline_new, true, "use fast inline allocation") |
| 416 | 422 |
| 417 // checks.cc | |
| 418 DEFINE_bool(stack_trace_on_abort, true, | |
| 419 "print a stack trace if an assertion failure occurs") | |
| 420 | |
| 421 // codegen-ia32.cc / codegen-arm.cc | 423 // codegen-ia32.cc / codegen-arm.cc |
| 422 DEFINE_bool(trace_codegen, false, | 424 DEFINE_bool(trace_codegen, false, |
| 423 "print name of functions for which code is generated") | 425 "print name of functions for which code is generated") |
| 424 DEFINE_bool(trace, false, "trace function calls") | 426 DEFINE_bool(trace, false, "trace function calls") |
| 425 DEFINE_bool(mask_constants_with_cookie, true, | 427 DEFINE_bool(mask_constants_with_cookie, true, |
| 426 "use random jit cookie to mask large constants") | 428 "use random jit cookie to mask large constants") |
| 427 | 429 |
| 428 // codegen.cc | 430 // codegen.cc |
| 429 DEFINE_bool(lazy, true, "use lazy compilation") | 431 DEFINE_bool(lazy, true, "use lazy compilation") |
| 430 DEFINE_bool(trace_opt, false, "trace lazy optimization") | 432 DEFINE_bool(trace_opt, false, "trace lazy optimization") |
| (...skipping 30 matching lines...) Expand all Loading... |
| 461 DEFINE_bool(trace_external_array_abuse, false, | 463 DEFINE_bool(trace_external_array_abuse, false, |
| 462 "trace out-of-bounds-accesses to external arrays") | 464 "trace out-of-bounds-accesses to external arrays") |
| 463 DEFINE_bool(trace_array_abuse, false, | 465 DEFINE_bool(trace_array_abuse, false, |
| 464 "trace out-of-bounds accesses to all arrays") | 466 "trace out-of-bounds accesses to all arrays") |
| 465 DEFINE_implication(trace_array_abuse, trace_js_array_abuse) | 467 DEFINE_implication(trace_array_abuse, trace_js_array_abuse) |
| 466 DEFINE_implication(trace_array_abuse, trace_external_array_abuse) | 468 DEFINE_implication(trace_array_abuse, trace_external_array_abuse) |
| 467 DEFINE_bool(debugger_auto_break, true, | 469 DEFINE_bool(debugger_auto_break, true, |
| 468 "automatically set the debug break flag when debugger commands are " | 470 "automatically set the debug break flag when debugger commands are " |
| 469 "in the queue") | 471 "in the queue") |
| 470 DEFINE_bool(enable_liveedit, true, "enable liveedit experimental feature") | 472 DEFINE_bool(enable_liveedit, true, "enable liveedit experimental feature") |
| 471 DEFINE_bool(break_on_abort, true, "always cause a debug break before aborting") | 473 DEFINE_bool(hard_abort, true, "abort by crashing") |
| 472 | 474 |
| 473 // execution.cc | 475 // execution.cc |
| 474 // Slightly less than 1MB on 64-bit, since Windows' default stack size for | 476 // Slightly less than 1MB on 64-bit, since Windows' default stack size for |
| 475 // the main execution thread is 1MB for both 32 and 64-bit. | 477 // the main execution thread is 1MB for both 32 and 64-bit. |
| 476 DEFINE_int(stack_size, kPointerSize * 123, | 478 DEFINE_int(stack_size, kPointerSize * 123, |
| 477 "default size of stack region v8 is allowed to use (in kBytes)") | 479 "default size of stack region v8 is allowed to use (in kBytes)") |
| 478 | 480 |
| 479 // frames.cc | 481 // frames.cc |
| 480 DEFINE_int(max_stack_trace_source_length, 300, | 482 DEFINE_int(max_stack_trace_source_length, 300, |
| 481 "maximum length of function source code printed in a stack trace.") | 483 "maximum length of function source code printed in a stack trace.") |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 DEFINE_bool(incremental_marking, true, "use incremental marking") | 528 DEFINE_bool(incremental_marking, true, "use incremental marking") |
| 527 DEFINE_bool(incremental_marking_steps, true, "do incremental marking steps") | 529 DEFINE_bool(incremental_marking_steps, true, "do incremental marking steps") |
| 528 DEFINE_bool(trace_incremental_marking, false, | 530 DEFINE_bool(trace_incremental_marking, false, |
| 529 "trace progress of the incremental marking") | 531 "trace progress of the incremental marking") |
| 530 DEFINE_bool(track_gc_object_stats, false, | 532 DEFINE_bool(track_gc_object_stats, false, |
| 531 "track object counts and memory usage") | 533 "track object counts and memory usage") |
| 532 DEFINE_bool(parallel_sweeping, true, "enable parallel sweeping") | 534 DEFINE_bool(parallel_sweeping, true, "enable parallel sweeping") |
| 533 DEFINE_bool(concurrent_sweeping, false, "enable concurrent sweeping") | 535 DEFINE_bool(concurrent_sweeping, false, "enable concurrent sweeping") |
| 534 DEFINE_int(sweeper_threads, 0, | 536 DEFINE_int(sweeper_threads, 0, |
| 535 "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") |
| 536 #ifdef VERIFY_HEAP | 539 #ifdef VERIFY_HEAP |
| 537 DEFINE_bool(verify_heap, false, "verify heap pointers before and after GC") | 540 DEFINE_bool(verify_heap, false, "verify heap pointers before and after GC") |
| 538 #endif | 541 #endif |
| 539 | 542 |
| 540 | 543 |
| 541 // heap-snapshot-generator.cc | 544 // heap-snapshot-generator.cc |
| 542 DEFINE_bool(heap_profiler_trace_objects, false, | 545 DEFINE_bool(heap_profiler_trace_objects, false, |
| 543 "Dump heap object allocations/movements/size_updates") | 546 "Dump heap object allocations/movements/size_updates") |
| 544 | 547 |
| 545 | 548 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 562 DEFINE_bool(compact_code_space, true, | 565 DEFINE_bool(compact_code_space, true, |
| 563 "Compact code space on full non-incremental collections") | 566 "Compact code space on full non-incremental collections") |
| 564 DEFINE_bool(incremental_code_compaction, true, | 567 DEFINE_bool(incremental_code_compaction, true, |
| 565 "Compact code space on full incremental collections") | 568 "Compact code space on full incremental collections") |
| 566 DEFINE_bool(cleanup_code_caches_at_gc, true, | 569 DEFINE_bool(cleanup_code_caches_at_gc, true, |
| 567 "Flush inline caches prior to mark compact collection and " | 570 "Flush inline caches prior to mark compact collection and " |
| 568 "flush code caches in maps during mark compact cycle.") | 571 "flush code caches in maps during mark compact cycle.") |
| 569 DEFINE_bool(use_marking_progress_bar, true, | 572 DEFINE_bool(use_marking_progress_bar, true, |
| 570 "Use a progress bar to scan large objects in increments when " | 573 "Use a progress bar to scan large objects in increments when " |
| 571 "incremental marking is active.") | 574 "incremental marking is active.") |
| 575 DEFINE_bool(zap_code_space, true, |
| 576 "Zap free memory in code space with 0xCC while sweeping.") |
| 572 DEFINE_int(random_seed, 0, | 577 DEFINE_int(random_seed, 0, |
| 573 "Default seed for initializing random generator " | 578 "Default seed for initializing random generator " |
| 574 "(0, the default, means to use system random).") | 579 "(0, the default, means to use system random).") |
| 575 | 580 |
| 576 // objects.cc | 581 // objects.cc |
| 577 DEFINE_bool(use_verbose_printer, true, "allows verbose printing") | 582 DEFINE_bool(use_verbose_printer, true, "allows verbose printing") |
| 578 | 583 |
| 579 // parser.cc | 584 // parser.cc |
| 580 DEFINE_bool(allow_natives_syntax, false, "allow natives syntax") | 585 DEFINE_bool(allow_natives_syntax, false, "allow natives syntax") |
| 581 DEFINE_bool(trace_parse, false, "trace parsing and preparsing") | 586 DEFINE_bool(trace_parse, false, "trace parsing and preparsing") |
| 582 | 587 |
| 583 DEFINE_bool(trace_lexer, false, "trace lexing") | 588 // simulator-arm.cc, simulator-a64.cc and simulator-mips.cc |
| 584 | |
| 585 // simulator-arm.cc and simulator-mips.cc | |
| 586 DEFINE_bool(trace_sim, false, "Trace simulator execution") | 589 DEFINE_bool(trace_sim, false, "Trace simulator execution") |
| 590 DEFINE_bool(debug_sim, false, "Enable debugging the simulator") |
| 587 DEFINE_bool(check_icache, false, | 591 DEFINE_bool(check_icache, false, |
| 588 "Check icache flushes in ARM and MIPS simulator") | 592 "Check icache flushes in ARM and MIPS simulator") |
| 589 DEFINE_int(stop_sim_at, 0, "Simulator stop after x number of instructions") | 593 DEFINE_int(stop_sim_at, 0, "Simulator stop after x number of instructions") |
| 594 #ifdef V8_TARGET_ARCH_A64 |
| 595 DEFINE_int(sim_stack_alignment, 16, |
| 596 "Stack alignment in bytes in simulator. This must be a power of two " |
| 597 "and it must be at least 16. 16 is default.") |
| 598 #else |
| 590 DEFINE_int(sim_stack_alignment, 8, | 599 DEFINE_int(sim_stack_alignment, 8, |
| 591 "Stack alingment in bytes in simulator (4 or 8, 8 is default)") | 600 "Stack alingment in bytes in simulator (4 or 8, 8 is default)") |
| 601 #endif |
| 602 DEFINE_int(sim_stack_size, 2 * MB / KB, |
| 603 "Stack size of the A64 simulator in kBytes (default is 2 MB)") |
| 604 DEFINE_bool(log_regs_modified, true, |
| 605 "When logging register values, only print modified registers.") |
| 606 DEFINE_bool(log_colour, true, |
| 607 "When logging, try to use coloured output.") |
| 608 DEFINE_bool(ignore_asm_unimplemented_break, false, |
| 609 "Don't break for ASM_UNIMPLEMENTED_BREAK macros.") |
| 610 DEFINE_bool(trace_sim_messages, false, |
| 611 "Trace simulator debug messages. Implied by --trace-sim.") |
| 592 | 612 |
| 593 // isolate.cc | 613 // isolate.cc |
| 614 DEFINE_bool(stack_trace_on_illegal, false, |
| 615 "print stack trace when an illegal exception is thrown") |
| 594 DEFINE_bool(abort_on_uncaught_exception, false, | 616 DEFINE_bool(abort_on_uncaught_exception, false, |
| 595 "abort program (dump core) when an uncaught exception is thrown") | 617 "abort program (dump core) when an uncaught exception is thrown") |
| 596 DEFINE_bool(trace_exception, false, | |
| 597 "print stack trace when throwing exceptions") | |
| 598 DEFINE_bool(randomize_hashes, true, | 618 DEFINE_bool(randomize_hashes, true, |
| 599 "randomize hashes to avoid predictable hash collisions " | 619 "randomize hashes to avoid predictable hash collisions " |
| 600 "(with snapshots this option cannot override the baked-in seed)") | 620 "(with snapshots this option cannot override the baked-in seed)") |
| 601 DEFINE_int(hash_seed, 0, | 621 DEFINE_int(hash_seed, 0, |
| 602 "Fixed seed to use to hash property keys (0 means random)" | 622 "Fixed seed to use to hash property keys (0 means random)" |
| 603 "(with snapshots this option cannot override the baked-in seed)") | 623 "(with snapshots this option cannot override the baked-in seed)") |
| 604 | 624 |
| 605 // snapshot-common.cc | 625 // snapshot-common.cc |
| 606 DEFINE_bool(profile_deserialization, false, | 626 DEFINE_bool(profile_deserialization, false, |
| 607 "Print the time it takes to deserialize the snapshot.") | 627 "Print the time it takes to deserialize the snapshot.") |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 "Enable perf linux profiler (basic support).") | 812 "Enable perf linux profiler (basic support).") |
| 793 DEFINE_bool(perf_jit_prof, false, | 813 DEFINE_bool(perf_jit_prof, false, |
| 794 "Enable perf linux profiler (experimental annotate support).") | 814 "Enable perf linux profiler (experimental annotate support).") |
| 795 DEFINE_string(gc_fake_mmap, "/tmp/__v8_gc__", | 815 DEFINE_string(gc_fake_mmap, "/tmp/__v8_gc__", |
| 796 "Specify the name of the file for fake gc mmap used in ll_prof") | 816 "Specify the name of the file for fake gc mmap used in ll_prof") |
| 797 DEFINE_bool(log_internal_timer_events, false, "Time internal events.") | 817 DEFINE_bool(log_internal_timer_events, false, "Time internal events.") |
| 798 DEFINE_bool(log_timer_events, false, | 818 DEFINE_bool(log_timer_events, false, |
| 799 "Time events including external callbacks.") | 819 "Time events including external callbacks.") |
| 800 DEFINE_implication(log_timer_events, log_internal_timer_events) | 820 DEFINE_implication(log_timer_events, log_internal_timer_events) |
| 801 DEFINE_implication(log_internal_timer_events, prof) | 821 DEFINE_implication(log_internal_timer_events, prof) |
| 822 DEFINE_bool(log_instruction_stats, false, "Log AArch64 instruction statistics.") |
| 823 DEFINE_string(log_instruction_file, "a64_inst.csv", |
| 824 "AArch64 instruction statistics log file.") |
| 825 DEFINE_int(log_instruction_period, 1 << 22, |
| 826 "AArch64 instruction statistics logging period.") |
| 802 | 827 |
| 803 DEFINE_bool(redirect_code_traces, false, | 828 DEFINE_bool(redirect_code_traces, false, |
| 804 "output deopt information and disassembly into file " | 829 "output deopt information and disassembly into file " |
| 805 "code-<pid>-<isolate id>.asm") | 830 "code-<pid>-<isolate id>.asm") |
| 806 DEFINE_string(redirect_code_traces_to, NULL, | 831 DEFINE_string(redirect_code_traces_to, NULL, |
| 807 "output deopt information and disassembly into the given file") | 832 "output deopt information and disassembly into the given file") |
| 808 | 833 |
| 834 DEFINE_bool(hydrogen_track_positions, false, |
| 835 "track source code positions when building IR") |
| 836 |
| 809 // | 837 // |
| 810 // Disassembler only flags | 838 // Disassembler only flags |
| 811 // | 839 // |
| 812 #undef FLAG | 840 #undef FLAG |
| 813 #ifdef ENABLE_DISASSEMBLER | 841 #ifdef ENABLE_DISASSEMBLER |
| 814 #define FLAG FLAG_FULL | 842 #define FLAG FLAG_FULL |
| 815 #else | 843 #else |
| 816 #define FLAG FLAG_READONLY | 844 #define FLAG FLAG_READONLY |
| 817 #endif | 845 #endif |
| 818 | 846 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 831 "test primary stub cache by disabling the secondary one") | 859 "test primary stub cache by disabling the secondary one") |
| 832 | 860 |
| 833 | 861 |
| 834 // codegen-ia32.cc / codegen-arm.cc | 862 // codegen-ia32.cc / codegen-arm.cc |
| 835 DEFINE_bool(print_code, false, "print generated code") | 863 DEFINE_bool(print_code, false, "print generated code") |
| 836 DEFINE_bool(print_opt_code, false, "print optimized code") | 864 DEFINE_bool(print_opt_code, false, "print optimized code") |
| 837 DEFINE_bool(print_unopt_code, false, "print unoptimized code before " | 865 DEFINE_bool(print_unopt_code, false, "print unoptimized code before " |
| 838 "printing optimized code based on it") | 866 "printing optimized code based on it") |
| 839 DEFINE_bool(print_code_verbose, false, "print more information for code") | 867 DEFINE_bool(print_code_verbose, false, "print more information for code") |
| 840 DEFINE_bool(print_builtin_code, false, "print generated code for builtins") | 868 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") | |
| 843 | 869 |
| 844 #ifdef ENABLE_DISASSEMBLER | 870 #ifdef ENABLE_DISASSEMBLER |
| 845 DEFINE_bool(sodium, false, "print generated code output suitable for use with " | 871 DEFINE_bool(sodium, false, "print generated code output suitable for use with " |
| 846 "the Sodium code viewer") | 872 "the Sodium code viewer") |
| 847 | 873 |
| 848 DEFINE_implication(sodium, print_code_stubs) | 874 DEFINE_implication(sodium, print_code_stubs) |
| 849 DEFINE_implication(sodium, print_code) | 875 DEFINE_implication(sodium, print_code) |
| 850 DEFINE_implication(sodium, print_opt_code) | 876 DEFINE_implication(sodium, print_opt_code) |
| 851 DEFINE_implication(sodium, emit_opt_code_positions) | 877 DEFINE_implication(sodium, hydrogen_track_positions) |
| 852 DEFINE_implication(sodium, code_comments) | 878 DEFINE_implication(sodium, code_comments) |
| 853 | 879 |
| 854 DEFINE_bool(print_all_code, false, "enable all flags related to printing code") | 880 DEFINE_bool(print_all_code, false, "enable all flags related to printing code") |
| 855 DEFINE_implication(print_all_code, print_code) | 881 DEFINE_implication(print_all_code, print_code) |
| 856 DEFINE_implication(print_all_code, print_opt_code) | 882 DEFINE_implication(print_all_code, print_opt_code) |
| 857 DEFINE_implication(print_all_code, print_unopt_code) | 883 DEFINE_implication(print_all_code, print_unopt_code) |
| 858 DEFINE_implication(print_all_code, print_code_verbose) | 884 DEFINE_implication(print_all_code, print_code_verbose) |
| 859 DEFINE_implication(print_all_code, print_builtin_code) | 885 DEFINE_implication(print_all_code, print_builtin_code) |
| 860 DEFINE_implication(print_all_code, print_code_stubs) | 886 DEFINE_implication(print_all_code, print_code_stubs) |
| 861 DEFINE_implication(print_all_code, code_comments) | 887 DEFINE_implication(print_all_code, code_comments) |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 894 #undef DEFINE_ALIAS_float | 920 #undef DEFINE_ALIAS_float |
| 895 #undef DEFINE_ALIAS_args | 921 #undef DEFINE_ALIAS_args |
| 896 | 922 |
| 897 #undef FLAG_MODE_DECLARE | 923 #undef FLAG_MODE_DECLARE |
| 898 #undef FLAG_MODE_DEFINE | 924 #undef FLAG_MODE_DEFINE |
| 899 #undef FLAG_MODE_DEFINE_DEFAULTS | 925 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 900 #undef FLAG_MODE_META | 926 #undef FLAG_MODE_META |
| 901 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 927 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
| 902 | 928 |
| 903 #undef COMMA | 929 #undef COMMA |
| OLD | NEW |