| Index: src/flag-definitions.h
|
| diff --git a/src/flag-definitions.h b/src/flag-definitions.h
|
| index 3fc16fbef392c220a762c873bfa074c9056336ae..56698378962a23e48036f91dd8f38ebde069eeaa 100644
|
| --- a/src/flag-definitions.h
|
| +++ b/src/flag-definitions.h
|
| @@ -286,7 +286,8 @@ DEFINE_BOOL(array_bounds_checks_elimination, true,
|
| DEFINE_BOOL(trace_bce, false, "trace array bounds check elimination")
|
| DEFINE_BOOL(array_bounds_checks_hoisting, false,
|
| "perform array bounds checks hoisting")
|
| -DEFINE_BOOL(array_index_dehoisting, true, "perform array index dehoisting")
|
| +DEFINE_BOOL(array_index_dehoisting, true,
|
| + "perform array index dehoisting")
|
| DEFINE_BOOL(analyze_environment_liveness, true,
|
| "analyze liveness of environment slots and zap dead values")
|
| DEFINE_BOOL(load_elimination, true, "use load elimination")
|
| @@ -302,7 +303,8 @@ DEFINE_BOOL(optimize_closures, true, "optimize closures")
|
| DEFINE_BOOL(lookup_sample_by_shared, true,
|
| "when picking a function to optimize, watch for shared function "
|
| "info, not JSFunction itself")
|
| -DEFINE_BOOL(cache_optimized_code, true, "cache optimized code for closures")
|
| +DEFINE_BOOL(cache_optimized_code, true,
|
| + "cache optimized code for closures")
|
| DEFINE_BOOL(flush_optimized_code_cache, true,
|
| "flushes the cache of optimized code for closures on every GC")
|
| DEFINE_BOOL(inline_construct, true, "inline constructor calls")
|
| @@ -311,7 +313,8 @@ DEFINE_BOOL(inline_accessors, true, "inline JavaScript accessors")
|
| DEFINE_INT(escape_analysis_iterations, 2,
|
| "maximum number of escape analysis fix-point iterations")
|
|
|
| -DEFINE_BOOL(optimize_for_in, true, "optimize functions containing for-in loops")
|
| +DEFINE_BOOL(optimize_for_in, true,
|
| + "optimize functions containing for-in loops")
|
| DEFINE_BOOL(opt_safe_uint32_operations, true,
|
| "allow uint32 values on optimize frames if they are used only in "
|
| "safe operations")
|
| @@ -326,19 +329,34 @@ DEFINE_INT(concurrent_recompilation_delay, 0,
|
| "artificial compilation delay in ms")
|
| DEFINE_BOOL(block_concurrent_recompilation, false,
|
| "block queued jobs until released")
|
| -DEFINE_BOOL(concurrent_osr, true, "concurrent on-stack replacement")
|
| +DEFINE_BOOL(concurrent_osr, true,
|
| + "concurrent on-stack replacement")
|
| DEFINE_IMPLICATION(concurrent_osr, concurrent_recompilation)
|
|
|
| DEFINE_BOOL(omit_map_checks_for_leaf_maps, true,
|
| "do not emit check maps for constant values that have a leaf map, "
|
| "deoptimize the optimized code if the layout of the maps changes.")
|
|
|
| +// Flags for TurboFan.
|
| +DEFINE_STRING(turbo_filter, "~", "optimization filter for TurboFan compiler")
|
| +DEFINE_BOOL(trace_turbo, false, "trace generated TurboFan IR")
|
| +DEFINE_BOOL(trace_turbo_types, true, "trace generated TurboFan types")
|
| +DEFINE_BOOL(trace_turbo_scheduler, false, "trace generated TurboFan scheduler")
|
| +DEFINE_BOOL(turbo_verify, false, "verify TurboFan graphs at each phase")
|
| +DEFINE_BOOL(turbo_stats, false, "print TurboFan statistics")
|
| +DEFINE_BOOL(turbo_types, false, "use typed lowering in TurboFan")
|
| +DEFINE_BOOL(turbo_source_positions, false,
|
| + "track source code positions when building TurboFan IR")
|
| +DEFINE_BOOL(context_specialization, true,
|
| + "enable context specialization in TurboFan")
|
| +DEFINE_BOOL(turbo_deoptimization, false, "enable deoptimization in TurboFan")
|
| +
|
| DEFINE_INT(typed_array_max_size_in_heap, 64,
|
| - "threshold for in-heap typed array")
|
| + "threshold for in-heap typed array")
|
|
|
| // Profiler flags.
|
| DEFINE_INT(frame_count, 1, "number of stack frames inspected by the profiler")
|
| -// 0x1800 fits in the immediate field of an ARM instruction.
|
| + // 0x1800 fits in the immediate field of an ARM instruction.
|
| DEFINE_INT(interrupt_budget, 0x1800,
|
| "execution budget before interrupt is triggered")
|
| DEFINE_INT(type_info_threshold, 25,
|
| @@ -349,9 +367,11 @@ DEFINE_BOOL(trace_opt_verbose, false, "extra verbose compilation tracing")
|
| DEFINE_IMPLICATION(trace_opt_verbose, trace_opt)
|
|
|
| // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc
|
| -DEFINE_BOOL(debug_code, false, "generate extra code (assertions) for debugging")
|
| +DEFINE_BOOL(debug_code, false,
|
| + "generate extra code (assertions) for debugging")
|
| DEFINE_BOOL(code_comments, false, "emit comments in code disassembly")
|
| -DEFINE_BOOL(enable_sse3, true, "enable use of SSE3 instructions if available")
|
| +DEFINE_BOOL(enable_sse3, true,
|
| + "enable use of SSE3 instructions if available")
|
| DEFINE_BOOL(enable_sse4_1, true,
|
| "enable use of SSE4.1 instructions if available")
|
| DEFINE_BOOL(enable_sahf, true,
|
| @@ -469,11 +489,11 @@ DEFINE_BOOL(always_inline_smi_code, false,
|
|
|
| // heap.cc
|
| DEFINE_INT(min_semi_space_size, 0,
|
| - "min size of a semi-space (in MBytes), the new space consists of two"
|
| - "semi-spaces")
|
| + "min size of a semi-space (in MBytes), the new space consists of two"
|
| + "semi-spaces")
|
| DEFINE_INT(max_semi_space_size, 0,
|
| - "max size of a semi-space (in MBytes), the new space consists of two"
|
| - "semi-spaces")
|
| + "max size of a semi-space (in MBytes), the new space consists of two"
|
| + "semi-spaces")
|
| DEFINE_INT(max_old_space_size, 0, "max size of the old space (in Mbytes)")
|
| DEFINE_INT(max_executable_size, 0, "max size of executable memory (in Mbytes)")
|
| DEFINE_BOOL(gc_global, false, "always perform global GCs")
|
| @@ -589,7 +609,8 @@ DEFINE_INT(sim_stack_size, 2 * MB / KB,
|
| "in kBytes (default is 2 MB)")
|
| DEFINE_BOOL(log_regs_modified, true,
|
| "When logging register values, only print modified registers.")
|
| -DEFINE_BOOL(log_colour, true, "When logging, try to use coloured output.")
|
| +DEFINE_BOOL(log_colour, true,
|
| + "When logging, try to use coloured output.")
|
| DEFINE_BOOL(ignore_asm_unimplemented_break, false,
|
| "Don't break for ASM_UNIMPLEMENTED_BREAK macros.")
|
| DEFINE_BOOL(trace_sim_messages, false,
|
| @@ -630,18 +651,14 @@ DEFINE_STRING(testing_serialization_file, "/tmp/serdes",
|
| #endif
|
|
|
| // mksnapshot.cc
|
| -DEFINE_STRING(extra_code, NULL,
|
| - "A filename with extra code to be included in"
|
| - " the snapshot (mksnapshot only)")
|
| -DEFINE_STRING(raw_file, NULL,
|
| - "A file to write the raw snapshot bytes to. "
|
| - "(mksnapshot only)")
|
| -DEFINE_STRING(raw_context_file, NULL,
|
| - "A file to write the raw context "
|
| - "snapshot bytes to. (mksnapshot only)")
|
| -DEFINE_STRING(startup_blob, NULL,
|
| - "Write V8 startup blob file. "
|
| - "(mksnapshot only)")
|
| +DEFINE_STRING(extra_code, NULL, "A filename with extra code to be included in"
|
| + " the snapshot (mksnapshot only)")
|
| +DEFINE_STRING(raw_file, NULL, "A file to write the raw snapshot bytes to. "
|
| + "(mksnapshot only)")
|
| +DEFINE_STRING(raw_context_file, NULL, "A file to write the raw context "
|
| + "snapshot bytes to. (mksnapshot only)")
|
| +DEFINE_STRING(startup_blob, NULL, "Write V8 startup blob file. "
|
| + "(mksnapshot only)")
|
|
|
| // code-stubs-hydrogen.cc
|
| DEFINE_BOOL(profile_hydrogen_code_stub_compilation, false,
|
| @@ -727,6 +744,10 @@ DEFINE_BOOL(verify_native_context_separation, false,
|
| DEFINE_BOOL(print_handles, false, "report handles after GC")
|
| DEFINE_BOOL(print_global_handles, false, "report global handles after GC")
|
|
|
| +// TurboFan debug-only flags.
|
| +DEFINE_BOOL(print_turbo_replay, false,
|
| + "print C++ code to recreate TurboFan graphs")
|
| +
|
| // interface.cc
|
| DEFINE_BOOL(print_interfaces, false, "print interfaces")
|
| DEFINE_BOOL(print_interface_details, false, "print interface inference details")
|
|
|