diff options
Diffstat (limited to 'deps/v8/src/flag-definitions.h')
-rw-r--r-- | deps/v8/src/flag-definitions.h | 72 |
1 files changed, 47 insertions, 25 deletions
diff --git a/deps/v8/src/flag-definitions.h b/deps/v8/src/flag-definitions.h index 8fceed0783..311620ebc5 100644 --- a/deps/v8/src/flag-definitions.h +++ b/deps/v8/src/flag-definitions.h @@ -213,7 +213,8 @@ DEFINE_IMPLICATION(harmony_class_fields, harmony_private_fields) V(harmony_do_expressions, "harmony do-expressions") \ V(harmony_class_fields, "harmony fields in class literals") \ V(harmony_static_fields, "harmony static fields in class literals") \ - V(harmony_bigint, "harmony arbitrary precision integers") + V(harmony_array_flatten, "harmony Array.prototype.flat{ten,Map}") \ + V(harmony_string_matchall, "harmony String.prototype.matchAll") // Features that are complete (but still behind --harmony/es-staging flag). #define HARMONY_STAGED(V) \ @@ -221,7 +222,8 @@ DEFINE_IMPLICATION(harmony_class_fields, harmony_private_fields) "harmony disallow non undefined primitive return value from class " \ "constructor") \ V(harmony_public_fields, "harmony public fields in class literals") \ - V(harmony_private_fields, "harmony private fields in class literals") + V(harmony_private_fields, "harmony private fields in class literals") \ + V(harmony_numeric_separator, "harmony numeric separator between digits") // Features that are shipping (turned on by default, but internal flag remains). #define HARMONY_SHIPPING_BASE(V) \ @@ -234,6 +236,7 @@ DEFINE_IMPLICATION(harmony_class_fields, harmony_private_fields) V(harmony_promise_finally, "harmony Promise.prototype.finally") \ V(harmony_optional_catch_binding, "allow omitting binding in catch blocks") \ V(harmony_import_meta, "harmony import.meta property") \ + V(harmony_bigint, "harmony arbitrary precision integers") \ V(harmony_dynamic_import, "harmony dynamic import") #ifdef V8_INTL_SUPPORT @@ -270,8 +273,7 @@ HARMONY_SHIPPING(FLAG_SHIPPING_FEATURES) #undef FLAG_SHIPPING_FEATURES #ifdef V8_INTL_SUPPORT -DEFINE_BOOL(icu_timezone_data, false, - "get information about timezones from ICU") +DEFINE_BOOL(icu_timezone_data, true, "get information about timezones from ICU") #endif #ifdef V8_ENABLE_FUTURE @@ -477,6 +479,7 @@ DEFINE_BOOL(turbo_loop_peeling, true, "Turbofan loop peeling") DEFINE_BOOL(turbo_loop_variable, true, "Turbofan loop variable optimization") DEFINE_BOOL(turbo_cf_optimization, true, "optimize control flow in TurboFan") DEFINE_BOOL(turbo_escape, true, "enable escape analysis") +DEFINE_BOOL(turbo_allocation_folding, true, "Turbofan allocation folding") DEFINE_BOOL(turbo_instruction_scheduling, false, "enable instruction scheduling in TurboFan") DEFINE_BOOL(turbo_stress_instruction_scheduling, false, @@ -501,7 +504,9 @@ DEFINE_BOOL(untrusted_code_mitigations, V8_DEFAULT_UNTRUSTED_CODE_MITIGATIONS, DEFINE_BOOL(turbo_disable_switch_jump_table, false, "do not emit jump-tables in Turbofan") DEFINE_IMPLICATION(untrusted_code_mitigations, turbo_disable_switch_jump_table) + DEFINE_BOOL(branch_load_poisoning, false, "Mask loads with branch conditions.") +DEFINE_IMPLICATION(future, branch_load_poisoning) // Flags to help platform porters DEFINE_BOOL(minimal, false, @@ -520,11 +525,8 @@ DEFINE_INT(wasm_num_compilation_tasks, 10, "number of parallel compilation tasks for wasm") DEFINE_DEBUG_BOOL(wasm_trace_native_heap, false, "trace wasm native heap events") -DEFINE_BOOL(wasm_jit_to_native, true, - "JIT wasm code to native (not JS GC) memory") DEFINE_BOOL(wasm_write_protect_code_memory, false, "write protect code memory on the wasm native heap") -DEFINE_IMPLICATION(future, wasm_jit_to_native) DEFINE_BOOL(wasm_trace_serialization, false, "trace serialization/deserialization") DEFINE_BOOL(wasm_async_compilation, true, @@ -541,6 +543,9 @@ DEFINE_UINT(wasm_max_mem_pages, v8::internal::wasm::kV8MaxWasmMemoryPages, "maximum memory size of a wasm instance") DEFINE_UINT(wasm_max_table_size, v8::internal::wasm::kV8MaxWasmTableSize, "maximum table size of a wasm instance") +DEFINE_BOOL(wasm_tier_up, false, + "enable basic tiering up to the optimizing compiler") +DEFINE_IMPLICATION(wasm_tier_up, liftoff) DEFINE_DEBUG_BOOL(trace_wasm_decoder, false, "trace decoding of wasm code") DEFINE_DEBUG_BOOL(trace_wasm_decode_time, false, "trace decoding time of wasm code") @@ -587,6 +592,10 @@ DEFINE_BOOL(experimental_wasm_sat_f2i_conversions, false, "enable non-trapping float-to-int conversions for wasm") DEFINE_BOOL(experimental_wasm_se, false, "enable prototype sign extension opcodes for wasm") +DEFINE_BOOL(experimental_wasm_anyref, false, + "enable prototype anyref support for wasm") +DEFINE_BOOL(experimental_wasm_mut_global, false, + "enable prototype import/export mutable global support for wasm") DEFINE_BOOL(wasm_opt, false, "enable wasm optimization") DEFINE_BOOL(wasm_no_bounds_checks, false, @@ -672,7 +681,13 @@ DEFINE_BOOL(incremental_marking_wrappers, true, DEFINE_BOOL(trace_unmapper, false, "Trace the unmapping") DEFINE_BOOL(parallel_scavenge, true, "parallel scavenge") DEFINE_BOOL(trace_parallel_scavenge, false, "trace parallel scavenge") -DEFINE_BOOL(write_protect_code_memory, false, "write protect code memory") +#if defined(V8_TARGET_ARCH_ARM) || defined(V8_TARGET_ARCH_ARM64) +#define V8_WRITE_PROTECT_CODE_MEMORY_BOOL false +#else +#define V8_WRITE_PROTECT_CODE_MEMORY_BOOL true +#endif +DEFINE_BOOL(write_protect_code_memory, V8_WRITE_PROTECT_CODE_MEMORY_BOOL, + "write protect code memory") #ifdef V8_CONCURRENT_MARKING #define V8_CONCURRENT_MARKING_BOOL true #else @@ -683,11 +698,6 @@ DEFINE_BOOL(concurrent_marking, V8_CONCURRENT_MARKING_BOOL, DEFINE_BOOL(parallel_marking, true, "use parallel marking in atomic pause") DEFINE_IMPLICATION(parallel_marking, concurrent_marking) DEFINE_BOOL(trace_concurrent_marking, false, "trace concurrent marking") -DEFINE_BOOL(minor_mc_parallel_marking, true, - "use parallel marking for the young generation") -DEFINE_BOOL(trace_minor_mc_parallel_marking, false, - "trace parallel marking for the young generation") -DEFINE_BOOL(minor_mc, false, "perform young generation mark compact GCs") DEFINE_BOOL(black_allocation, true, "use black allocation") DEFINE_BOOL(concurrent_store_buffer, true, "use concurrent store buffer processing") @@ -695,6 +705,8 @@ DEFINE_BOOL(concurrent_sweeping, true, "use concurrent sweeping") DEFINE_BOOL(parallel_compaction, true, "use parallel compaction") DEFINE_BOOL(parallel_pointer_update, true, "use parallel pointer update during compaction") +DEFINE_BOOL(detect_ineffective_gcs_near_heap_limit, true, + "trigger out-of-memory failure to avoid GC storm near heap limit") DEFINE_BOOL(trace_incremental_marking, false, "trace progress of the incremental marking") DEFINE_BOOL(trace_stress_marking, false, "trace stress marking progress") @@ -829,7 +841,7 @@ DEFINE_BOOL(expose_trigger_failure, false, "expose trigger-failure extension") DEFINE_INT(stack_trace_limit, 10, "number of stack frames to capture") DEFINE_BOOL(builtins_in_stack_traces, false, "show built-in functions in stack traces") -DEFINE_BOOL(enable_experimental_builtins, true, +DEFINE_BOOL(enable_experimental_builtins, false, "enable new csa-based experimental builtins") DEFINE_BOOL(disallow_code_generation_from_strings, false, "disallow eval and friends") @@ -955,7 +967,6 @@ DEFINE_BOOL(native_code_counters, false, // objects.cc DEFINE_BOOL(thin_strings, true, "Enable ThinString support") -DEFINE_BOOL(trace_weak_arrays, false, "Trace WeakFixedArray usage") DEFINE_BOOL(trace_prototype_users, false, "Trace updates to prototype user tracking") DEFINE_BOOL(use_verbose_printer, true, "allows verbose printing") @@ -974,9 +985,6 @@ DEFINE_BOOL(preparser_scope_analysis, true, "perform scope analysis for preparsed inner functions") DEFINE_IMPLICATION(preparser_scope_analysis, aggressive_lazy_inner_functions) -// compiler.cc -DEFINE_BOOL(background_compile, true, "enable background compilation") - // simulator-arm.cc, simulator-arm64.cc and simulator-mips.cc DEFINE_BOOL(trace_sim, false, "Trace simulator execution") DEFINE_BOOL(debug_sim, false, "Enable debugging the simulator") @@ -1029,13 +1037,6 @@ DEFINE_INT(fuzzer_random_seed, 0, DEFINE_BOOL(trace_rail, false, "trace RAIL mode") DEFINE_BOOL(print_all_exceptions, false, "print exception object and stack trace on each thrown exception") -#ifdef V8_EMBEDDED_BUILTINS -DEFINE_BOOL(stress_off_heap_code, false, - "Move code objects off-heap for testing.") -#else -FLAG_READONLY(BOOL, bool, stress_off_heap_code, false, - "Move code objects off-heap for testing.") -#endif // runtime.cc DEFINE_BOOL(runtime_call_stats, false, "report runtime call counts and times") @@ -1069,12 +1070,28 @@ DEFINE_STRING(testing_string_flag, "Hello, world!", "string-flag") DEFINE_INT(testing_prng_seed, 42, "Seed used for threading test randomness") // mksnapshot.cc +DEFINE_STRING(embedded_src, nullptr, + "Path for the generated embedded data file. (mksnapshot only)") +DEFINE_STRING( + embedded_variant, nullptr, + "Label to disambiguate symbols in embedded data file. (mksnapshot only)") DEFINE_STRING(startup_src, nullptr, "Write V8 startup as C++ src. (mksnapshot only)") DEFINE_STRING(startup_blob, nullptr, "Write V8 startup blob file. (mksnapshot only)") // +// Minor mark compact collector flags. +// +#ifdef ENABLE_MINOR_MC +DEFINE_BOOL(minor_mc_parallel_marking, true, + "use parallel marking for the young generation") +DEFINE_BOOL(trace_minor_mc_parallel_marking, false, + "trace parallel marking for the young generation") +DEFINE_BOOL(minor_mc, false, "perform young generation mark compact GCs") +#endif // ENABLE_MINOR_MC + +// // Dev shell flags // @@ -1218,6 +1235,9 @@ DEFINE_BOOL(prof_browser_mode, true, DEFINE_STRING(logfile, "v8.log", "Specify the name of the log file.") DEFINE_BOOL(logfile_per_isolate, true, "Separate log files for each isolate.") DEFINE_BOOL(ll_prof, false, "Enable low-level linux profiler.") +DEFINE_BOOL(interpreted_frames_native_stack, false, + "Show interpreted frames on the native stack (useful for external " + "profilers).") DEFINE_BOOL(perf_basic_prof, false, "Enable perf linux profiler (basic support).") DEFINE_NEG_IMPLICATION(perf_basic_prof, compact_code_space) @@ -1340,7 +1360,9 @@ DEFINE_NEG_IMPLICATION(single_threaded_gc, parallel_marking) DEFINE_NEG_IMPLICATION(single_threaded_gc, parallel_pointer_update) DEFINE_NEG_IMPLICATION(single_threaded_gc, parallel_scavenge) DEFINE_NEG_IMPLICATION(single_threaded_gc, concurrent_store_buffer) +#ifdef ENABLE_MINOR_MC DEFINE_NEG_IMPLICATION(single_threaded_gc, minor_mc_parallel_marking) +#endif // ENABLE_MINOR_MC DEFINE_NEG_IMPLICATION(single_threaded_gc, concurrent_array_buffer_freeing) #undef FLAG |