Skip to content

Commit 4fc6388

Browse files
targosofrobots
authored andcommitted
doc: update V8 options in man page
PR-URL: #3351 Reviewed-By: indutny - Fedor Indutny <[email protected]> Reviewed-By: bnoordhuis - Ben Noordhuis <[email protected]>
1 parent 7fb128d commit 4fc6388

File tree

1 file changed

+101
-45
lines changed

1 file changed

+101
-45
lines changed

doc/node.1

+101-45
Original file line numberDiff line numberDiff line change
@@ -92,43 +92,61 @@ value to an empty string ("") disables persistent REPL history.
9292
type: bool default: false
9393
--strong_mode (experimental strong language mode)
9494
type: bool default: false
95+
--strong_this (don't allow 'this' to escape from constructors)
96+
type: bool default: true
9597
--es_staging (enable all completed harmony features)
9698
type: bool default: false
9799
--harmony (enable all completed harmony features)
98100
type: bool default: false
99-
--harmony_shipping (enable all shipped harmony features)
101+
--harmony_shipping (enable all shipped harmony fetaures)
102+
type: bool default: true
103+
--legacy_const (legacy semantics for const in sloppy mode)
100104
type: bool default: true
101105
--harmony_modules (enable "harmony modules" (in progress))
102106
type: bool default: false
103-
--harmony_arrays (enable "harmony array methods" (in progress))
104-
type: bool default: false
105-
--harmony_array_includes (enable "harmony Array.prototype.includes" (in progress))
106-
type: bool default: false
107107
--harmony_regexps (enable "harmony regular expression extensions" (in progress))
108108
type: bool default: false
109-
--harmony_arrow_functions (enable "harmony arrow functions" (in progress))
110-
type: bool default: false
111109
--harmony_proxies (enable "harmony proxies" (in progress))
112110
type: bool default: false
113-
--harmony_sloppy (enable "harmony features in sloppy mode" (in progress))
111+
--harmony_sloppy_function (enable "harmony sloppy function block scoping" (in progress))
114112
type: bool default: false
115-
--harmony_unicode (enable "harmony unicode escapes" (in progress))
113+
--harmony_sloppy_let (enable "harmony let in sloppy mode" (in progress))
116114
type: bool default: false
117115
--harmony_unicode_regexps (enable "harmony unicode regexps" (in progress))
118116
type: bool default: false
119-
--harmony_rest_parameters (enable "harmony rest parameters" (in progress))
120-
type: bool default: false
121117
--harmony_reflect (enable "harmony Reflect API" (in progress))
122118
type: bool default: false
123-
--harmony_computed_property_names (enable "harmony computed property names")
119+
--harmony_destructuring (enable "harmony destructuring" (in progress))
120+
type: bool default: false
121+
--harmony_default_parameters (enable "harmony default parameters" (in progress))
122+
type: bool default: false
123+
--harmony_sharedarraybuffer (enable "harmony sharedarraybuffer" (in progress))
124+
type: bool default: false
125+
--harmony_atomics (enable "harmony atomics" (in progress))
126+
type: bool default: false
127+
--harmony_simd (enable "harmony simd" (in progress))
128+
type: bool default: false
129+
--harmony_array_includes (enable "harmony Array.prototype.includes")
124130
type: bool default: false
125131
--harmony_tostring (enable "harmony toString")
126132
type: bool default: false
127-
--harmony_numeric_literals (enable "harmony numeric literals")
133+
--harmony_concat_spreadable (enable "harmony isConcatSpreadable")
134+
type: bool default: false
135+
--harmony_rest_parameters (enable "harmony rest parameters")
136+
type: bool default: false
137+
--harmony_sloppy (enable "harmony features in sloppy mode")
138+
type: bool default: false
139+
--harmony_arrow_functions (enable "harmony arrow functions")
128140
type: bool default: true
129-
--harmony_classes (enable "harmony classes (implies object literal extension)")
141+
--harmony_new_target (enable "harmony new.target")
130142
type: bool default: true
131-
--harmony_object_literals (enable "harmony object literal extensions")
143+
--harmony_object_observe (enable "harmony Object.observe")
144+
type: bool default: true
145+
--harmony_spreadcalls (enable "harmony spread-calls")
146+
type: bool default: true
147+
--harmony_spread_arrays (enable "harmony spread in array literals")
148+
type: bool default: true
149+
--harmony_object (enable "harmony Object methods")
132150
type: bool default: true
133151
--compiled_keyed_generic_loads (use optimizing compiler to generate keyed generic load stubs)
134152
type: bool default: false
@@ -152,14 +170,20 @@ value to an empty string ("") disables persistent REPL history.
152170
type: bool default: true
153171
--smi_binop (support smi representation in binary operations)
154172
type: bool default: true
155-
--vector_ics (support vector-based ics)
156-
type: bool default: false
157-
--optimize_for_size (Enables optimizations which favor memory size over execution speed.)
173+
--optimize_for_size (Enables optimizations which favor memory size over execution speed)
158174
type: bool default: false
159175
--unbox_double_arrays (automatically unbox arrays of doubles)
160176
type: bool default: true
161177
--string_slices (use string slices)
162178
type: bool default: true
179+
--ignition (use ignition interpreter)
180+
type: bool default: false
181+
--ignition_filter (filter for ignition interpreter)
182+
type: string default: ~~
183+
--print_bytecode (print bytecode generated by ignition interpreter)
184+
type: bool default: false
185+
--trace_ignition_codegen (trace the codegen of ignition interpreter bytecode handlers)
186+
type: bool default: false
163187
--crankshaft (use crankshaft)
164188
type: bool default: true
165189
--hydrogen_filter (optimization filter)
@@ -304,8 +328,6 @@ value to an empty string ("") disables persistent REPL history.
304328
type: bool default: true
305329
--concurrent_recompilation (optimizing hot functions asynchronously on a separate thread)
306330
type: bool default: true
307-
--job_based_recompilation (post tasks to v8::Platform instead of using a thread for concurrent recompilation)
308-
type: bool default: true
309331
--trace_concurrent_recompilation (track concurrent recompilation)
310332
type: bool default: false
311333
--concurrent_recompilation_queue_length (the length of the concurrent compilation queue)
@@ -318,8 +340,16 @@ value to an empty string ("") disables persistent REPL history.
318340
type: bool default: true
319341
--omit_map_checks_for_leaf_maps (do not emit check maps for constant values that have a leaf map, deoptimize the optimized code if the layout of the maps changes.)
320342
type: bool default: true
343+
--turbo (enable TurboFan compiler)
344+
type: bool default: false
345+
--turbo_shipping (enable TurboFan compiler on subset)
346+
type: bool default: true
347+
--turbo_greedy_regalloc (use the greedy register allocator)
348+
type: bool default: false
349+
--turbo_preprocess_ranges (run pre-register allocation heuristics)
350+
type: bool default: false
321351
--turbo_filter (optimization filter for TurboFan compiler)
322-
type: string default: ~
352+
type: string default: ~~
323353
--trace_turbo (trace generated TurboFan IR)
324354
type: bool default: false
325355
--trace_turbo_graph (trace generated TurboFan graphs)
@@ -334,8 +364,12 @@ value to an empty string ("") disables persistent REPL history.
334364
type: bool default: false
335365
--trace_turbo_jt (trace TurboFan's jump threading)
336366
type: bool default: false
367+
--trace_turbo_ceq (trace TurboFan's control equivalence)
368+
type: bool default: false
337369
--turbo_asm (enable TurboFan for asm.js code)
338370
type: bool default: true
371+
--turbo_asm_deoptimization (enable deoptimization in TurboFan for asm.js code)
372+
type: bool default: false
339373
--turbo_verify (verify TurboFan graphs at each phase)
340374
type: bool default: false
341375
--turbo_stats (print TurboFan statistics)
@@ -346,24 +380,20 @@ value to an empty string ("") disables persistent REPL history.
346380
type: bool default: true
347381
--turbo_type_feedback (use type feedback in TurboFan)
348382
type: bool default: false
383+
--turbo_allocate (enable inline allocations in TurboFan)
384+
type: bool default: false
349385
--turbo_source_positions (track source code positions when building TurboFan IR)
350386
type: bool default: false
351387
--context_specialization (enable context specialization in TurboFan)
352388
type: bool default: false
353-
--turbo_deoptimization (enable deoptimization in TurboFan)
354-
type: bool default: false
355389
--turbo_inlining (enable inlining in TurboFan)
356390
type: bool default: false
357-
--turbo_builtin_inlining (enable builtin inlining in TurboFan)
358-
type: bool default: true
359391
--trace_turbo_inlining (trace TurboFan inlining)
360392
type: bool default: false
361393
--loop_assignment_analysis (perform loop assignment analysis)
362394
type: bool default: true
363395
--turbo_profiling (enable profiling in TurboFan)
364396
type: bool default: false
365-
--turbo_delay_ssa_decon (delay ssa deconstruction in TurboFan register allocator)
366-
type: bool default: false
367397
--turbo_verify_allocation (verify register allocation in TurboFan)
368398
type: bool default: false
369399
--turbo_move_optimization (optimize gap moves in TurboFan)
@@ -372,12 +402,20 @@ value to an empty string ("") disables persistent REPL history.
372402
type: bool default: true
373403
--turbo_osr (enable OSR in TurboFan)
374404
type: bool default: true
375-
--turbo_exceptions (enable exception handling in TurboFan)
405+
--turbo_try_catch (enable try-catch support in TurboFan)
406+
type: bool default: true
407+
--turbo_try_finally (enable try-finally support in TurboFan)
376408
type: bool default: false
377409
--turbo_stress_loop_peeling (stress loop peeling optimization)
378410
type: bool default: false
379411
--turbo_cf_optimization (optimize control flow in TurboFan)
380412
type: bool default: true
413+
--turbo_frame_elision (elide frames in TurboFan)
414+
type: bool default: true
415+
--turbo_cache_shared_code (cache context-independent code)
416+
type: bool default: true
417+
--turbo_preserve_shared_code (keep context-independent code)
418+
type: bool default: false
381419
--typed_array_max_size_in_heap (threshold for in-heap typed array)
382420
type: int default: 64
383421
--frame_count (number of stack frames inspected by the profiler)
@@ -406,6 +444,14 @@ value to an empty string ("") disables persistent REPL history.
406444
type: bool default: true
407445
--enable_fma3 (enable use of FMA3 instructions if available)
408446
type: bool default: true
447+
--enable_bmi1 (enable use of BMI1 instructions if available)
448+
type: bool default: true
449+
--enable_bmi2 (enable use of BMI2 instructions if available)
450+
type: bool default: true
451+
--enable_lzcnt (enable use of LZCNT instruction if available)
452+
type: bool default: true
453+
--enable_popcnt (enable use of POPCNT instruction if available)
454+
type: bool default: true
409455
--enable_vfp3 (enable use of VFP3 instructions if available)
410456
type: bool default: true
411457
--enable_armv7 (enable use of ARMv7 instructions if available (ARM only))
@@ -548,28 +594,26 @@ value to an empty string ("") disables persistent REPL history.
548594
type: bool default: false
549595
--trace_gc_verbose (print more details following each garbage collection)
550596
type: bool default: false
597+
--trace_allocation_stack_interval (print stack trace after <n> free-list allocations)
598+
type: int default: -1
551599
--trace_fragmentation (report fragmentation for old space)
552600
type: bool default: false
553601
--trace_fragmentation_verbose (report fragmentation for old space (detailed))
554602
type: bool default: false
555-
--collect_maps (garbage collect maps from which no objects can be reached)
556-
type: bool default: true
603+
--trace_mutator_utilization (print mutator utilization, allocation speed, gc speed)
604+
type: bool default: false
557605
--weak_embedded_maps_in_optimized_code (make maps embedded in optimized code weak)
558606
type: bool default: true
559607
--weak_embedded_objects_in_optimized_code (make objects embedded in optimized code weak)
560608
type: bool default: true
561-
--flush_code (flush code that we expect not to use again (during full gc))
562-
type: bool default: true
563-
--flush_code_incrementally (flush code that we expect not to use again (incrementally))
609+
--flush_code (flush code that we expect not to use again)
564610
type: bool default: true
565611
--trace_code_flushing (trace code flushing progress)
566612
type: bool default: false
567613
--age_code (track un-executed functions to age code and flush only old code (required for code flushing))
568614
type: bool default: true
569615
--incremental_marking (use incremental marking)
570616
type: bool default: true
571-
--incremental_marking_steps (do incremental marking steps)
572-
type: bool default: true
573617
--overapproximate_weak_closure (overapproximate weak closer to reduce atomic pause time)
574618
type: bool default: true
575619
--min_progress_during_object_groups_marking (keep overapproximating the weak closure as long as we discover at least this many unmarked objects)
@@ -582,10 +626,14 @@ value to an empty string ("") disables persistent REPL history.
582626
type: bool default: false
583627
--track_gc_object_stats (track object counts and memory usage)
584628
type: bool default: false
629+
--trace_gc_object_stats (trace object counts and memory usage)
630+
type: bool default: false
585631
--track_detached_contexts (track native contexts that are expected to be garbage collected)
586632
type: bool default: true
587633
--trace_detached_contexts (trace native contexts that are expected to be garbage collected)
588634
type: bool default: false
635+
--histogram_interval (time interval in ms for aggregating memory histograms)
636+
type: int default: 600000
589637
--heap_profiler_trace_objects (Dump heap object allocations/movements/size_updates)
590638
type: bool default: false
591639
--use_idle_notification (Use idle notification to reduce memory footprint.)
@@ -594,28 +642,34 @@ value to an empty string ("") disables persistent REPL history.
594642
type: bool default: true
595643
--trace_ic (trace inline cache state transitions)
596644
type: bool default: false
645+
--vector_stores (use vectors for store ics)
646+
type: bool default: false
647+
--global_var_shortcuts (use ic-less global loads and stores)
648+
type: bool default: false
597649
--native_code_counters (generate extra code for manipulating stats counters)
598650
type: bool default: false
599651
--always_compact (Perform compaction on every full GC)
600652
type: bool default: false
601653
--never_compact (Never perform compaction on full GC - testing only)
602654
type: bool default: false
603-
--compact_code_space (Compact code space on full non-incremental collections)
604-
type: bool default: true
605-
--incremental_code_compaction (Compact code space on full incremental collections)
655+
--compact_code_space (Compact code space on full collections)
606656
type: bool default: true
607657
--cleanup_code_caches_at_gc (Flush inline caches prior to mark compact collection and flush code caches in maps during mark compact cycle.)
608658
type: bool default: true
609659
--use_marking_progress_bar (Use a progress bar to scan large objects in increments when incremental marking is active.)
610660
type: bool default: true
611661
--zap_code_space (Zap free memory in code space with 0xCC while sweeping.)
612-
type: bool default: true
662+
type: bool default: false
613663
--random_seed (Default seed for initializing random generator (0, the default, means to use system random).)
614664
type: int default: 0
615-
--trace_weak_arrays (trace WeakFixedArray usage)
665+
--trace_weak_arrays (Trace WeakFixedArray usage)
616666
type: bool default: false
617-
--track_prototype_users (keep track of which maps refer to a given prototype object)
667+
--track_prototype_users (Keep track of which maps refer to a given prototype object)
618668
type: bool default: false
669+
--trace_prototype_users (Trace updates to prototype user tracking)
670+
type: bool default: false
671+
--eliminate_prototype_chain_checks (Collapse prototype chain checks into single-cell checks)
672+
type: bool default: true
619673
--use_verbose_printer (allows verbose printing)
620674
type: bool default: true
621675
--allow_natives_syntax (allow natives syntax)
@@ -632,7 +686,7 @@ value to an empty string ("") disables persistent REPL history.
632686
type: int default: 0
633687
--sim_stack_alignment (Stack alingment in bytes in simulator (4 or 8, 8 is default))
634688
type: int default: 8
635-
--sim_stack_size (Stack size of the ARM64 and MIPS64 simulator in kBytes (default is 2 MB))
689+
--sim_stack_size (Stack size of the ARM64, MIPS64 and PPC64 simulator in kBytes (default is 2 MB))
636690
type: int default: 2048
637691
--log_regs_modified (When logging register values, only print modified registers.)
638692
type: bool default: true
@@ -652,6 +706,8 @@ value to an empty string ("") disables persistent REPL history.
652706
type: int default: 0
653707
--profile_deserialization (Print the time it takes to deserialize the snapshot.)
654708
type: bool default: false
709+
--serialization_statistics (Collect statistics on serialized objects.)
710+
type: bool default: false
655711
--regexp_optimization (generate optimized regexp code)
656712
type: bool default: true
657713
--testing_bool_flag (testing_bool_flag)
@@ -680,12 +736,12 @@ value to an empty string ("") disables persistent REPL history.
680736
type: bool default: false
681737
--manual_evacuation_candidates_selection (Test mode only flag. It allows an unit test to select evacuation candidates pages (requires --stress_compaction).)
682738
type: bool default: false
739+
--external_allocation_limit_incremental_time (Time spent in incremental marking steps (in ms) once the external allocation limit is reached)
740+
type: int default: 1
683741
--help (Print usage message, including flags, on console)
684742
type: bool default: true
685743
--dump_counters (Dump counters on exit)
686744
type: bool default: false
687-
--debugger (Enable JavaScript debugger)
688-
type: bool default: false
689745
--map_counters (Map counters to a file)
690746
type: string default:
691747
--js_arguments (Pass all remaining arguments to the script. Alias for "--".)
@@ -722,7 +778,7 @@ value to an empty string ("") disables persistent REPL history.
722778
type: bool default: false
723779
--perf_basic_prof (Enable perf linux profiler (basic support).)
724780
type: bool default: false
725-
--perf_jit_prof (Enable perf linux profiler (experimental annotate support).)
781+
--perf_basic_prof_only_functions (Only report function code ranges to perf (i.e. no stubs).)
726782
type: bool default: false
727783
--gc_fake_mmap (Specify the name of the file for fake gc mmap used in ll_prof)
728784
type: string default: /tmp/__v8_gc__

0 commit comments

Comments
 (0)