1 .TH NODE.JS "1" "2010" "" ""
5 node \- Server-side JavaScript
33 Execute without arguments to start the REPL.
38 Node.js is a set of libraries for JavaScript which allows
39 it to be used outside of the browser. It is primarily
40 focused on creating simple, easy to build network clients
46 -v, --version print node's version
48 -e, --eval script evaluate script
50 -p, --print print result of --eval
52 -c, --check syntax check script without executing
54 -i, --interactive always enter the REPL even if stdin
55 does not appear to be a terminal
57 -r, --require module to preload at startup
59 --no-deprecation silence deprecation warnings
61 --trace-deprecation show stack traces on deprecations
63 --throw-deprecation throw errors on deprecations
65 --track-heap-objects track heap object allocations for heap snapshots
67 --v8-options print v8 command line options
69 --tls-cipher-list=list use an alternative default TLS cipher list
70 (available only when Node.js is built with
71 OpenSSL and crypto support enabled)
73 .SH ENVIRONMENT VARIABLES
76 \':\'\-separated list of directories prefixed to the module search path.
77 .IP NODE_DISABLE_COLORS
78 If set to 1 then colors will not be used in the REPL.
80 Data path for ICU (Intl object) data. Will extend linked-in data when compiled
81 with small-icu support.
83 Path to the file used to store the persistent REPL history. The default path
84 is ~/.node_repl_history, which is overridden by this variable. Setting the
85 value to an empty string ("") disables persistent REPL history.
89 --use_strict (enforce strict mode)
90 type: bool default: false
91 --use_strong (enforce strong mode)
92 type: bool default: false
93 --strong_mode (experimental strong language mode)
94 type: bool default: false
95 --es_staging (enable all completed harmony features)
96 type: bool default: false
97 --harmony (enable all completed harmony features)
98 type: bool default: false
99 --harmony_shipping (enable all shipped harmony features)
100 type: bool default: true
101 --harmony_modules (enable "harmony modules" (in progress))
102 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
107 --harmony_regexps (enable "harmony regular expression extensions" (in progress))
108 type: bool default: false
109 --harmony_arrow_functions (enable "harmony arrow functions" (in progress))
110 type: bool default: false
111 --harmony_proxies (enable "harmony proxies" (in progress))
112 type: bool default: false
113 --harmony_sloppy (enable "harmony features in sloppy mode" (in progress))
114 type: bool default: false
115 --harmony_unicode (enable "harmony unicode escapes" (in progress))
116 type: bool default: false
117 --harmony_unicode_regexps (enable "harmony unicode regexps" (in progress))
118 type: bool default: false
119 --harmony_rest_parameters (enable "harmony rest parameters" (in progress))
120 type: bool default: false
121 --harmony_reflect (enable "harmony Reflect API" (in progress))
122 type: bool default: false
123 --harmony_computed_property_names (enable "harmony computed property names")
124 type: bool default: false
125 --harmony_tostring (enable "harmony toString")
126 type: bool default: false
127 --harmony_numeric_literals (enable "harmony numeric literals")
128 type: bool default: true
129 --harmony_classes (enable "harmony classes (implies object literal extension)")
130 type: bool default: true
131 --harmony_object_literals (enable "harmony object literal extensions")
132 type: bool default: true
133 --compiled_keyed_generic_loads (use optimizing compiler to generate keyed generic load stubs)
134 type: bool default: false
135 --pretenuring_call_new (pretenure call new)
136 type: bool default: false
137 --allocation_site_pretenuring (pretenure with allocation sites)
138 type: bool default: true
139 --trace_pretenuring (trace pretenuring decisions of HAllocate instructions)
140 type: bool default: false
141 --trace_pretenuring_statistics (trace allocation site pretenuring statistics)
142 type: bool default: false
143 --track_fields (track fields with only smi values)
144 type: bool default: true
145 --track_double_fields (track fields with double values)
146 type: bool default: true
147 --track_heap_object_fields (track fields with heap values)
148 type: bool default: true
149 --track_computed_fields (track computed boilerplate fields)
150 type: bool default: true
151 --track_field_types (track field types)
152 type: bool default: true
153 --smi_binop (support smi representation in binary operations)
154 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.)
158 type: bool default: false
159 --unbox_double_arrays (automatically unbox arrays of doubles)
160 type: bool default: true
161 --string_slices (use string slices)
162 type: bool default: true
163 --crankshaft (use crankshaft)
164 type: bool default: true
165 --hydrogen_filter (optimization filter)
166 type: string default: *
167 --use_gvn (use hydrogen global value numbering)
168 type: bool default: true
169 --gvn_iterations (maximum number of GVN fix-point iterations)
171 --use_canonicalizing (use hydrogen instruction canonicalizing)
172 type: bool default: true
173 --use_inlining (use function inlining)
174 type: bool default: true
175 --use_escape_analysis (use hydrogen escape analysis)
176 type: bool default: true
177 --use_allocation_folding (use allocation folding)
178 type: bool default: true
179 --use_local_allocation_folding (only fold in basic blocks)
180 type: bool default: false
181 --use_write_barrier_elimination (eliminate write barriers targeting allocations in optimized code)
182 type: bool default: true
183 --max_inlining_levels (maximum number of inlining levels)
185 --max_inlined_source_size (maximum source size in bytes considered for a single inlining)
186 type: int default: 600
187 --max_inlined_nodes (maximum number of AST nodes considered for a single inlining)
188 type: int default: 196
189 --max_inlined_nodes_cumulative (maximum cumulative number of AST nodes considered for inlining)
190 type: int default: 400
191 --loop_invariant_code_motion (loop invariant code motion)
192 type: bool default: true
193 --fast_math (faster (but maybe less accurate) math functions)
194 type: bool default: true
195 --collect_megamorphic_maps_from_stub_cache (crankshaft harvests type feedback from stub cache)
196 type: bool default: true
197 --hydrogen_stats (print statistics for hydrogen)
198 type: bool default: false
199 --trace_check_elimination (trace check elimination phase)
200 type: bool default: false
201 --trace_environment_liveness (trace liveness of local variable slots)
202 type: bool default: false
203 --trace_hydrogen (trace generated hydrogen to file)
204 type: bool default: false
205 --trace_hydrogen_filter (hydrogen tracing filter)
206 type: string default: *
207 --trace_hydrogen_stubs (trace generated hydrogen for stubs)
208 type: bool default: false
209 --trace_hydrogen_file (trace hydrogen to given file name)
210 type: string default: NULL
211 --trace_phase (trace generated IR for specified phases)
212 type: string default: HLZ
213 --trace_inlining (trace inlining decisions)
214 type: bool default: false
215 --trace_load_elimination (trace load elimination)
216 type: bool default: false
217 --trace_store_elimination (trace store elimination)
218 type: bool default: false
219 --trace_alloc (trace register allocator)
220 type: bool default: false
221 --trace_all_uses (trace all use positions)
222 type: bool default: false
223 --trace_range (trace range analysis)
224 type: bool default: false
225 --trace_gvn (trace global value numbering)
226 type: bool default: false
227 --trace_representation (trace representation types)
228 type: bool default: false
229 --trace_removable_simulates (trace removable simulates)
230 type: bool default: false
231 --trace_escape_analysis (trace hydrogen escape analysis)
232 type: bool default: false
233 --trace_allocation_folding (trace allocation folding)
234 type: bool default: false
235 --trace_track_allocation_sites (trace the tracking of allocation sites)
236 type: bool default: false
237 --trace_migration (trace object migration)
238 type: bool default: false
239 --trace_generalization (trace map generalization)
240 type: bool default: false
241 --stress_pointer_maps (pointer map for every instruction)
242 type: bool default: false
243 --stress_environments (environment for every instruction)
244 type: bool default: false
245 --deopt_every_n_times (deoptimize every n times a deopt point is passed)
247 --deopt_every_n_garbage_collections (deoptimize every n garbage collections)
249 --print_deopt_stress (print number of possible deopt points)
250 type: bool default: false
251 --trap_on_deopt (put a break point before deoptimizing)
252 type: bool default: false
253 --trap_on_stub_deopt (put a break point before deoptimizing a stub)
254 type: bool default: false
255 --deoptimize_uncommon_cases (deoptimize uncommon cases)
256 type: bool default: true
257 --polymorphic_inlining (polymorphic inlining)
258 type: bool default: true
259 --use_osr (use on-stack replacement)
260 type: bool default: true
261 --array_bounds_checks_elimination (perform array bounds checks elimination)
262 type: bool default: true
263 --trace_bce (trace array bounds check elimination)
264 type: bool default: false
265 --array_bounds_checks_hoisting (perform array bounds checks hoisting)
266 type: bool default: false
267 --array_index_dehoisting (perform array index dehoisting)
268 type: bool default: true
269 --analyze_environment_liveness (analyze liveness of environment slots and zap dead values)
270 type: bool default: true
271 --load_elimination (use load elimination)
272 type: bool default: true
273 --check_elimination (use check elimination)
274 type: bool default: true
275 --store_elimination (use store elimination)
276 type: bool default: false
277 --dead_code_elimination (use dead code elimination)
278 type: bool default: true
279 --fold_constants (use constant folding)
280 type: bool default: true
281 --trace_dead_code_elimination (trace dead code elimination)
282 type: bool default: false
283 --unreachable_code_elimination (eliminate unreachable code)
284 type: bool default: true
285 --trace_osr (trace on-stack replacement)
286 type: bool default: false
287 --stress_runs (number of stress runs)
289 --lookup_sample_by_shared (when picking a function to optimize, watch for shared function info, not JSFunction itself)
290 type: bool default: true
291 --cache_optimized_code (cache optimized code for closures)
292 type: bool default: true
293 --flush_optimized_code_cache (flushes the cache of optimized code for closures on every GC)
294 type: bool default: true
295 --inline_construct (inline constructor calls)
296 type: bool default: true
297 --inline_arguments (inline functions with arguments object)
298 type: bool default: true
299 --inline_accessors (inline JavaScript accessors)
300 type: bool default: true
301 --escape_analysis_iterations (maximum number of escape analysis fix-point iterations)
303 --optimize_for_in (optimize functions containing for-in loops)
304 type: bool default: true
305 --concurrent_recompilation (optimizing hot functions asynchronously on a separate thread)
306 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
309 --trace_concurrent_recompilation (track concurrent recompilation)
310 type: bool default: false
311 --concurrent_recompilation_queue_length (the length of the concurrent compilation queue)
313 --concurrent_recompilation_delay (artificial compilation delay in ms)
315 --block_concurrent_recompilation (block queued jobs until released)
316 type: bool default: false
317 --concurrent_osr (concurrent on-stack replacement)
318 type: bool default: true
319 --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.)
320 type: bool default: true
321 --turbo_filter (optimization filter for TurboFan compiler)
322 type: string default: ~
323 --trace_turbo (trace generated TurboFan IR)
324 type: bool default: false
325 --trace_turbo_graph (trace generated TurboFan graphs)
326 type: bool default: false
327 --trace_turbo_cfg_file (trace turbo cfg graph (for C1 visualizer) to a given file name)
328 type: string default: NULL
329 --trace_turbo_types (trace TurboFan's types)
330 type: bool default: true
331 --trace_turbo_scheduler (trace TurboFan's scheduler)
332 type: bool default: false
333 --trace_turbo_reduction (trace TurboFan's various reducers)
334 type: bool default: false
335 --trace_turbo_jt (trace TurboFan's jump threading)
336 type: bool default: false
337 --turbo_asm (enable TurboFan for asm.js code)
338 type: bool default: true
339 --turbo_verify (verify TurboFan graphs at each phase)
340 type: bool default: false
341 --turbo_stats (print TurboFan statistics)
342 type: bool default: false
343 --turbo_splitting (split nodes during scheduling in TurboFan)
344 type: bool default: true
345 --turbo_types (use typed lowering in TurboFan)
346 type: bool default: true
347 --turbo_type_feedback (use type feedback in TurboFan)
348 type: bool default: false
349 --turbo_source_positions (track source code positions when building TurboFan IR)
350 type: bool default: false
351 --context_specialization (enable context specialization in TurboFan)
352 type: bool default: false
353 --turbo_deoptimization (enable deoptimization in TurboFan)
354 type: bool default: false
355 --turbo_inlining (enable inlining in TurboFan)
356 type: bool default: false
357 --turbo_builtin_inlining (enable builtin inlining in TurboFan)
358 type: bool default: true
359 --trace_turbo_inlining (trace TurboFan inlining)
360 type: bool default: false
361 --loop_assignment_analysis (perform loop assignment analysis)
362 type: bool default: true
363 --turbo_profiling (enable profiling in TurboFan)
364 type: bool default: false
365 --turbo_delay_ssa_decon (delay ssa deconstruction in TurboFan register allocator)
366 type: bool default: false
367 --turbo_verify_allocation (verify register allocation in TurboFan)
368 type: bool default: false
369 --turbo_move_optimization (optimize gap moves in TurboFan)
370 type: bool default: true
371 --turbo_jt (enable jump threading in TurboFan)
372 type: bool default: true
373 --turbo_osr (enable OSR in TurboFan)
374 type: bool default: true
375 --turbo_exceptions (enable exception handling in TurboFan)
376 type: bool default: false
377 --turbo_stress_loop_peeling (stress loop peeling optimization)
378 type: bool default: false
379 --turbo_cf_optimization (optimize control flow in TurboFan)
380 type: bool default: true
381 --typed_array_max_size_in_heap (threshold for in-heap typed array)
382 type: int default: 64
383 --frame_count (number of stack frames inspected by the profiler)
385 --interrupt_budget (execution budget before interrupt is triggered)
386 type: int default: 6144
387 --type_info_threshold (percentage of ICs that must have type info to allow optimization)
388 type: int default: 25
389 --generic_ic_threshold (max percentage of megamorphic/generic ICs to allow optimization)
390 type: int default: 30
391 --self_opt_count (call count before self-optimization)
392 type: int default: 130
393 --trace_opt_verbose (extra verbose compilation tracing)
394 type: bool default: false
395 --debug_code (generate extra code (assertions) for debugging)
396 type: bool default: false
397 --code_comments (emit comments in code disassembly)
398 type: bool default: false
399 --enable_sse3 (enable use of SSE3 instructions if available)
400 type: bool default: true
401 --enable_sse4_1 (enable use of SSE4.1 instructions if available)
402 type: bool default: true
403 --enable_sahf (enable use of SAHF instruction if available (X64 only))
404 type: bool default: true
405 --enable_avx (enable use of AVX instructions if available)
406 type: bool default: true
407 --enable_fma3 (enable use of FMA3 instructions if available)
408 type: bool default: true
409 --enable_vfp3 (enable use of VFP3 instructions if available)
410 type: bool default: true
411 --enable_armv7 (enable use of ARMv7 instructions if available (ARM only))
412 type: bool default: true
413 --enable_armv8 (enable use of ARMv8 instructions if available (ARM 32-bit only))
414 type: bool default: true
415 --enable_neon (enable use of NEON instructions if available (ARM only))
416 type: bool default: true
417 --enable_sudiv (enable use of SDIV and UDIV instructions if available (ARM only))
418 type: bool default: true
419 --enable_mls (enable use of MLS instructions if available (ARM only))
420 type: bool default: true
421 --enable_movw_movt (enable loading 32-bit constant by means of movw/movt instruction pairs (ARM only))
422 type: bool default: false
423 --enable_unaligned_accesses (enable unaligned accesses for ARMv7 (ARM only))
424 type: bool default: true
425 --enable_32dregs (enable use of d16-d31 registers on ARM - this requires VFP3)
426 type: bool default: true
427 --enable_vldr_imm (enable use of constant pools for double immediate (ARM only))
428 type: bool default: false
429 --force_long_branches (force all emitted branches to be in long mode (MIPS/PPC only))
430 type: bool default: false
431 --mcpu (enable optimization for specific cpu)
432 type: string default: auto
433 --expose_natives_as (expose natives in global object)
434 type: string default: NULL
435 --expose_debug_as (expose debug in global object)
436 type: string default: NULL
437 --expose_free_buffer (expose freeBuffer extension)
438 type: bool default: false
439 --expose_gc (expose gc extension)
440 type: bool default: false
441 --expose_gc_as (expose gc extension under the specified name)
442 type: string default: NULL
443 --expose_externalize_string (expose externalize string extension)
444 type: bool default: false
445 --expose_trigger_failure (expose trigger-failure extension)
446 type: bool default: false
447 --stack_trace_limit (number of stack frames to capture)
448 type: int default: 10
449 --builtins_in_stack_traces (show built-in functions in stack traces)
450 type: bool default: false
451 --disable_native_files (disable builtin natives files)
452 type: bool default: false
453 --inline_new (use fast inline allocation)
454 type: bool default: true
455 --trace_codegen (print name of functions for which code is generated)
456 type: bool default: false
457 --trace (trace function calls)
458 type: bool default: false
459 --mask_constants_with_cookie (use random jit cookie to mask large constants)
460 type: bool default: true
461 --lazy (use lazy compilation)
462 type: bool default: true
463 --trace_opt (trace lazy optimization)
464 type: bool default: false
465 --trace_opt_stats (trace lazy optimization statistics)
466 type: bool default: false
467 --opt (use adaptive optimizations)
468 type: bool default: true
469 --always_opt (always try to optimize functions)
470 type: bool default: false
471 --always_osr (always try to OSR functions)
472 type: bool default: false
473 --prepare_always_opt (prepare for turning on always opt)
474 type: bool default: false
475 --trace_deopt (trace optimize function deoptimization)
476 type: bool default: false
477 --trace_stub_failures (trace deoptimization of generated code stubs)
478 type: bool default: false
479 --serialize_toplevel (enable caching of toplevel scripts)
480 type: bool default: true
481 --serialize_inner (enable caching of inner functions)
482 type: bool default: true
483 --trace_serializer (print code serializer trace)
484 type: bool default: false
485 --min_preparse_length (minimum length for automatic enable preparsing)
486 type: int default: 1024
487 --max_opt_count (maximum number of optimization attempts before giving up.)
488 type: int default: 10
489 --compilation_cache (enable compilation cache)
490 type: bool default: true
491 --cache_prototype_transitions (cache prototype transitions)
492 type: bool default: true
493 --cpu_profiler_sampling_interval (CPU profiler sampling interval in microseconds)
494 type: int default: 1000
495 --trace_debug_json (trace debugging JSON request/response)
496 type: bool default: false
497 --trace_js_array_abuse (trace out-of-bounds accesses to JS arrays)
498 type: bool default: false
499 --trace_external_array_abuse (trace out-of-bounds-accesses to external arrays)
500 type: bool default: false
501 --trace_array_abuse (trace out-of-bounds accesses to all arrays)
502 type: bool default: false
503 --enable_liveedit (enable liveedit experimental feature)
504 type: bool default: true
505 --hard_abort (abort by crashing)
506 type: bool default: true
507 --stack_size (default size of stack region v8 is allowed to use (in kBytes))
508 type: int default: 984
509 --max_stack_trace_source_length (maximum length of function source code printed in a stack trace.)
510 type: int default: 300
511 --always_inline_smi_code (always inline smi code in non-opt code)
512 type: bool default: false
513 --min_semi_space_size (min size of a semi-space (in MBytes), the new space consists of twosemi-spaces)
515 --target_semi_space_size (target size of a semi-space (in MBytes) before triggering a GC)
517 --max_semi_space_size (max size of a semi-space (in MBytes), the new space consists of twosemi-spaces)
519 --semi_space_growth_factor (factor by which to grow the new space)
521 --experimental_new_space_growth_heuristic (Grow the new space based on the percentage of survivors instead of their absolute value.)
522 type: bool default: false
523 --max_old_space_size (max size of the old space (in Mbytes))
525 --initial_old_space_size (initial old space size (in Mbytes))
527 --max_executable_size (max size of executable memory (in Mbytes))
529 --gc_global (always perform global GCs)
530 type: bool default: false
531 --gc_interval (garbage collect after <n> allocations)
532 type: int default: -1
533 --retain_maps_for_n_gc (keeps maps alive for <n> old space garbage collections)
535 --trace_gc (print one trace line following each garbage collection)
536 type: bool default: false
537 --trace_gc_nvp (print one detailed trace line in name=value format after each garbage collection)
538 type: bool default: false
539 --trace_gc_ignore_scavenger (do not print trace line after scavenger collection)
540 type: bool default: false
541 --trace_idle_notification (print one trace line following each idle notification)
542 type: bool default: false
543 --trace_idle_notification_verbose (prints the heap state used by the idle notification)
544 type: bool default: false
545 --print_cumulative_gc_stat (print cumulative GC statistics in name=value format on exit)
546 type: bool default: false
547 --print_max_heap_committed (print statistics of the maximum memory committed for the heap in name=value format on exit)
548 type: bool default: false
549 --trace_gc_verbose (print more details following each garbage collection)
550 type: bool default: false
551 --trace_fragmentation (report fragmentation for old space)
552 type: bool default: false
553 --trace_fragmentation_verbose (report fragmentation for old space (detailed))
554 type: bool default: false
555 --collect_maps (garbage collect maps from which no objects can be reached)
556 type: bool default: true
557 --weak_embedded_maps_in_optimized_code (make maps embedded in optimized code weak)
558 type: bool default: true
559 --weak_embedded_objects_in_optimized_code (make objects embedded in optimized code weak)
560 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))
564 type: bool default: true
565 --trace_code_flushing (trace code flushing progress)
566 type: bool default: false
567 --age_code (track un-executed functions to age code and flush only old code (required for code flushing))
568 type: bool default: true
569 --incremental_marking (use incremental marking)
570 type: bool default: true
571 --incremental_marking_steps (do incremental marking steps)
572 type: bool default: true
573 --overapproximate_weak_closure (overapproximate weak closer to reduce atomic pause time)
574 type: bool default: true
575 --min_progress_during_object_groups_marking (keep overapproximating the weak closure as long as we discover at least this many unmarked objects)
576 type: int default: 128
577 --max_object_groups_marking_rounds (at most try this many times to over approximate the weak closure)
579 --concurrent_sweeping (use concurrent sweeping)
580 type: bool default: true
581 --trace_incremental_marking (trace progress of the incremental marking)
582 type: bool default: false
583 --track_gc_object_stats (track object counts and memory usage)
584 type: bool default: false
585 --track_detached_contexts (track native contexts that are expected to be garbage collected)
586 type: bool default: true
587 --trace_detached_contexts (trace native contexts that are expected to be garbage collected)
588 type: bool default: false
589 --heap_profiler_trace_objects (Dump heap object allocations/movements/size_updates)
590 type: bool default: false
591 --use_idle_notification (Use idle notification to reduce memory footprint.)
592 type: bool default: true
593 --use_ic (use inline caching)
594 type: bool default: true
595 --trace_ic (trace inline cache state transitions)
596 type: bool default: false
597 --native_code_counters (generate extra code for manipulating stats counters)
598 type: bool default: false
599 --always_compact (Perform compaction on every full GC)
600 type: bool default: false
601 --never_compact (Never perform compaction on full GC - testing only)
602 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)
606 type: bool default: true
607 --cleanup_code_caches_at_gc (Flush inline caches prior to mark compact collection and flush code caches in maps during mark compact cycle.)
608 type: bool default: true
609 --use_marking_progress_bar (Use a progress bar to scan large objects in increments when incremental marking is active.)
610 type: bool default: true
611 --zap_code_space (Zap free memory in code space with 0xCC while sweeping.)
612 type: bool default: true
613 --random_seed (Default seed for initializing random generator (0, the default, means to use system random).)
615 --trace_weak_arrays (trace WeakFixedArray usage)
616 type: bool default: false
617 --track_prototype_users (keep track of which maps refer to a given prototype object)
618 type: bool default: false
619 --use_verbose_printer (allows verbose printing)
620 type: bool default: true
621 --allow_natives_syntax (allow natives syntax)
622 type: bool default: false
623 --trace_parse (trace parsing and preparsing)
624 type: bool default: false
625 --trace_sim (Trace simulator execution)
626 type: bool default: false
627 --debug_sim (Enable debugging the simulator)
628 type: bool default: false
629 --check_icache (Check icache flushes in ARM and MIPS simulator)
630 type: bool default: false
631 --stop_sim_at (Simulator stop after x number of instructions)
633 --sim_stack_alignment (Stack alingment in bytes in simulator (4 or 8, 8 is default))
635 --sim_stack_size (Stack size of the ARM64 and MIPS64 simulator in kBytes (default is 2 MB))
636 type: int default: 2048
637 --log_regs_modified (When logging register values, only print modified registers.)
638 type: bool default: true
639 --log_colour (When logging, try to use coloured output.)
640 type: bool default: true
641 --ignore_asm_unimplemented_break (Don't break for ASM_UNIMPLEMENTED_BREAK macros.)
642 type: bool default: false
643 --trace_sim_messages (Trace simulator debug messages. Implied by --trace-sim.)
644 type: bool default: false
645 --stack_trace_on_illegal (print stack trace when an illegal exception is thrown)
646 type: bool default: false
647 --abort_on_uncaught_exception (abort program (dump core) when an uncaught exception is thrown)
648 type: bool default: false
649 --randomize_hashes (randomize hashes to avoid predictable hash collisions (with snapshots this option cannot override the baked-in seed))
650 type: bool default: true
651 --hash_seed (Fixed seed to use to hash property keys (0 means random)(with snapshots this option cannot override the baked-in seed))
653 --profile_deserialization (Print the time it takes to deserialize the snapshot.)
654 type: bool default: false
655 --regexp_optimization (generate optimized regexp code)
656 type: bool default: true
657 --testing_bool_flag (testing_bool_flag)
658 type: bool default: true
659 --testing_maybe_bool_flag (testing_maybe_bool_flag)
660 type: maybe_bool default: unset
661 --testing_int_flag (testing_int_flag)
662 type: int default: 13
663 --testing_float_flag (float-flag)
664 type: float default: 2.5
665 --testing_string_flag (string-flag)
666 type: string default: Hello, world!
667 --testing_prng_seed (Seed used for threading test randomness)
668 type: int default: 42
669 --testing_serialization_file (file in which to serialize heap)
670 type: string default: /tmp/serdes
671 --startup_blob (Write V8 startup blob file. (mksnapshot only))
672 type: string default: NULL
673 --profile_hydrogen_code_stub_compilation (Print the time it takes to lazily compile hydrogen code stubs.)
674 type: bool default: false
675 --predictable (enable predictable mode)
676 type: bool default: false
677 --force_marking_deque_overflows (force overflows of marking deque by reducing it's size to 64 words)
678 type: bool default: false
679 --stress_compaction (stress the GC compactor to flush out bugs (implies --force_marking_deque_overflows))
680 type: bool default: false
681 --manual_evacuation_candidates_selection (Test mode only flag. It allows an unit test to select evacuation candidates pages (requires --stress_compaction).)
682 type: bool default: false
683 --help (Print usage message, including flags, on console)
684 type: bool default: true
685 --dump_counters (Dump counters on exit)
686 type: bool default: false
687 --debugger (Enable JavaScript debugger)
688 type: bool default: false
689 --map_counters (Map counters to a file)
690 type: string default:
691 --js_arguments (Pass all remaining arguments to the script. Alias for "--".)
692 type: arguments default:
693 --log (Minimal logging (no API, code, GC, suspect, or handles samples).)
694 type: bool default: false
695 --log_all (Log all events to the log file.)
696 type: bool default: false
697 --log_api (Log API events to the log file.)
698 type: bool default: false
699 --log_code (Log code events to the log file without profiling.)
700 type: bool default: false
701 --log_gc (Log heap samples on garbage collection for the hp2ps tool.)
702 type: bool default: false
703 --log_handles (Log global handle events.)
704 type: bool default: false
705 --log_snapshot_positions (log positions of (de)serialized objects in the snapshot.)
706 type: bool default: false
707 --log_suspect (Log suspect operations.)
708 type: bool default: false
709 --prof (Log statistical profiling information (implies --log-code).)
710 type: bool default: false
711 --prof_cpp (Like --prof, but ignore generated code.)
712 type: bool default: false
713 --prof_browser_mode (Used with --prof, turns on browser-compatible mode for profiling.)
714 type: bool default: true
715 --log_regexp (Log regular expression execution.)
716 type: bool default: false
717 --logfile (Specify the name of the log file.)
718 type: string default: v8.log
719 --logfile_per_isolate (Separate log files for each isolate.)
720 type: bool default: true
721 --ll_prof (Enable low-level linux profiler.)
722 type: bool default: false
723 --perf_basic_prof (Enable perf linux profiler (basic support).)
724 type: bool default: false
725 --perf_jit_prof (Enable perf linux profiler (experimental annotate support).)
726 type: bool default: false
727 --gc_fake_mmap (Specify the name of the file for fake gc mmap used in ll_prof)
728 type: string default: /tmp/__v8_gc__
729 --log_internal_timer_events (Time internal events.)
730 type: bool default: false
731 --log_timer_events (Time events including external callbacks.)
732 type: bool default: false
733 --log_instruction_stats (Log AArch64 instruction statistics.)
734 type: bool default: false
735 --log_instruction_file (AArch64 instruction statistics log file.)
736 type: string default: arm64_inst.csv
737 --log_instruction_period (AArch64 instruction statistics logging period.)
738 type: int default: 4194304
739 --redirect_code_traces (output deopt information and disassembly into file code-<pid>-<isolate id>.asm)
740 type: bool default: false
741 --redirect_code_traces_to (output deopt information and disassembly into the given file)
742 type: string default: NULL
743 --hydrogen_track_positions (track source code positions when building IR)
744 type: bool default: false
745 --trace_elements_transitions (trace elements transitions)
746 type: bool default: false
747 --trace_creation_allocation_sites (trace the creation of allocation sites)
748 type: bool default: false
749 --print_code_stubs (print code stubs)
750 type: bool default: false
751 --test_secondary_stub_cache (test secondary stub cache by disabling the primary one)
752 type: bool default: false
753 --test_primary_stub_cache (test primary stub cache by disabling the secondary one)
754 type: bool default: false
755 --print_code (print generated code)
756 type: bool default: false
757 --print_opt_code (print optimized code)
758 type: bool default: false
759 --print_unopt_code (print unoptimized code before printing optimized code based on it)
760 type: bool default: false
761 --print_code_verbose (print more information for code)
762 type: bool default: false
763 --print_builtin_code (print generated code for builtins)
764 type: bool default: false
765 --sodium (print generated code output suitable for use with the Sodium code viewer)
766 type: bool default: false
767 --print_all_code (enable all flags related to printing code)
768 type: bool default: false
770 .SH RESOURCES AND DOCUMENTATION
772 See the website for documentation https://nodejs.org/
774 Mailing list: http://groups.google.com/group/nodejs
776 IRC: irc.freenode.net #io.js