diff options
author | Myles Borins <mylesborins@google.com> | 2019-09-24 11:56:38 -0400 |
---|---|---|
committer | Myles Borins <myles.borins@gmail.com> | 2019-10-07 03:19:23 -0400 |
commit | f7f6c928c1c9c136b7926f892b8a2fda11d8b4b2 (patch) | |
tree | f5edbccb3ffda2573d70a6e291e7157f290e0ae0 /deps/v8/src/flags/flag-definitions.h | |
parent | ffd22e81983056d09c064c59343a0e488236272d (diff) | |
download | node-new-f7f6c928c1c9c136b7926f892b8a2fda11d8b4b2.tar.gz |
deps: update V8 to 7.8.279.9
PR-URL: https://github.com/nodejs/node/pull/29694
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Diffstat (limited to 'deps/v8/src/flags/flag-definitions.h')
-rw-r--r-- | deps/v8/src/flags/flag-definitions.h | 81 |
1 files changed, 67 insertions, 14 deletions
diff --git a/deps/v8/src/flags/flag-definitions.h b/deps/v8/src/flags/flag-definitions.h index c32bb03407..c7c07e6dc6 100644 --- a/deps/v8/src/flags/flag-definitions.h +++ b/deps/v8/src/flags/flag-definitions.h @@ -206,7 +206,9 @@ DEFINE_IMPLICATION(harmony_import_meta, harmony_dynamic_import) #define HARMONY_INPROGRESS_BASE(V) \ V(harmony_private_methods, "harmony private methods in class literals") \ V(harmony_regexp_sequence, "RegExp Unicode sequence properties") \ - V(harmony_weak_refs, "harmony weak references") + V(harmony_weak_refs, "harmony weak references") \ + V(harmony_optional_chaining, "harmony optional chaining syntax") \ + V(harmony_nullish, "harmony nullish operator") #ifdef V8_INTL_SUPPORT #define HARMONY_INPROGRESS(V) \ @@ -240,7 +242,6 @@ DEFINE_IMPLICATION(harmony_import_meta, harmony_dynamic_import) V(harmony_sharedarraybuffer, "harmony sharedarraybuffer") \ V(harmony_import_meta, "harmony import.meta property") \ V(harmony_dynamic_import, "harmony dynamic import") \ - V(harmony_numeric_separator, "harmony numeric separator between digits") \ V(harmony_promise_all_settled, "harmony Promise.allSettled") #ifdef V8_INTL_SUPPORT @@ -298,15 +299,47 @@ DEFINE_BOOL(icu_timezone_data, true, "get information about timezones from ICU") #define V8_LITE_BOOL false #endif +#ifdef V8_ENABLE_LAZY_SOURCE_POSITIONS +#define V8_LAZY_SOURCE_POSITIONS_BOOL true +#else +#define V8_LAZY_SOURCE_POSITIONS_BOOL false +#endif + DEFINE_BOOL(lite_mode, V8_LITE_BOOL, "enables trade-off of performance for memory savings") // Lite mode implies other flags to trade-off performance for memory. DEFINE_IMPLICATION(lite_mode, jitless) DEFINE_IMPLICATION(lite_mode, lazy_feedback_allocation) -DEFINE_IMPLICATION(lite_mode, enable_lazy_source_positions) DEFINE_IMPLICATION(lite_mode, optimize_for_size) +#ifdef V8_DISABLE_WRITE_BARRIERS +#define V8_DISABLE_WRITE_BARRIERS_BOOL true +#else +#define V8_DISABLE_WRITE_BARRIERS_BOOL false +#endif + +DEFINE_BOOL_READONLY(disable_write_barriers, V8_DISABLE_WRITE_BARRIERS_BOOL, + "disable write barriers when GC is non-incremental " + "and heap contains single generation.") + +// Disable incremental marking barriers +DEFINE_NEG_IMPLICATION(disable_write_barriers, incremental_marking) + +#ifdef V8_ENABLE_SINGLE_GENERATION +#define V8_GENERATION_BOOL true +#else +#define V8_GENERATION_BOOL false +#endif + +DEFINE_BOOL_READONLY( + single_generation, V8_GENERATION_BOOL, + "allocate all objects from young generation to old generation") + +// Prevent inline allocation into new space +DEFINE_NEG_IMPLICATION(single_generation, inline_new) +DEFINE_NEG_IMPLICATION(single_generation, turbo_allocation_folding) + #ifdef V8_ENABLE_FUTURE #define FUTURE_BOOL true #else @@ -351,10 +384,6 @@ DEFINE_BOOL(feedback_normalization, false, DEFINE_BOOL_READONLY(internalize_on_the_fly, true, "internalize string keys for generic keyed ICs on the fly") -// Flag to faster calls with arguments mismatches (https://crbug.com/v8/8895) -DEFINE_BOOL(fast_calls_with_arguments_mismatches, true, - "skip arguments adaptor frames when it's provably safe") - // Flag for one shot optimiztions. DEFINE_BOOL(enable_one_shot_optimization, true, "Enable size optimizations for the code that will " @@ -409,7 +438,7 @@ DEFINE_BOOL(ignition_share_named_property_feedback, true, "the same object") DEFINE_BOOL(print_bytecode, false, "print bytecode generated by ignition interpreter") -DEFINE_BOOL(enable_lazy_source_positions, false, +DEFINE_BOOL(enable_lazy_source_positions, V8_LAZY_SOURCE_POSITIONS_BOOL, "skip generating source positions during initial compile but " "regenerate when actually required") DEFINE_BOOL(stress_lazy_source_positions, false, @@ -677,13 +706,18 @@ DEFINE_STRING(dump_wasm_module_path, nullptr, // for configurability. #include "src/wasm/wasm-feature-flags.h" -#define SPACE #define DECL_WASM_FLAG(feat, desc, val) \ DEFINE_BOOL(experimental_wasm_##feat, val, \ "enable prototype " desc " for wasm") -FOREACH_WASM_FEATURE_FLAG(DECL_WASM_FLAG, SPACE) +FOREACH_WASM_FEATURE_FLAG(DECL_WASM_FLAG) #undef DECL_WASM_FLAG -#undef SPACE + +DEFINE_BOOL(wasm_staging, false, "enable staged wasm features") + +#define WASM_STAGING_IMPLICATION(feat, desc, val) \ + DEFINE_IMPLICATION(wasm_staging, experimental_wasm_##feat) +FOREACH_WASM_STAGING_FEATURE_FLAG(WASM_STAGING_IMPLICATION) +#undef WASM_STAGING_IMPLICATION DEFINE_BOOL(wasm_opt, false, "enable wasm optimization") DEFINE_BOOL(wasm_no_bounds_checks, false, @@ -752,6 +786,7 @@ DEFINE_SIZE_T( "max size of the heap (in Mbytes) " "both max_semi_space_size and max_old_space_size take precedence. " "All three flags cannot be specified at the same time.") +DEFINE_SIZE_T(initial_heap_size, 0, "initial size of the heap (in Mbytes)") DEFINE_BOOL(huge_max_old_generation_size, false, "Increase max size of the old space to 4 GB for x64 systems with" "the physical memory bigger than 16 GB") @@ -788,9 +823,18 @@ DEFINE_BOOL(trace_gc_freelists_verbose, false, DEFINE_IMPLICATION(trace_gc_freelists_verbose, trace_gc_freelists) DEFINE_BOOL(trace_evacuation_candidates, false, "Show statistics about the pages evacuation by the compaction") -DEFINE_INT(gc_freelist_strategy, 0, +DEFINE_BOOL( + trace_allocations_origins, false, + "Show statistics about the origins of allocations. " + "Combine with --no-inline-new to track allocations from generated code") +DEFINE_INT(gc_freelist_strategy, 5, "Freelist strategy to use: " - "1=FreeListFastAlloc. 2=FreeListMany. Anything else=FreeListLegacy") + "0:FreeListLegacy. " + "1:FreeListFastAlloc. " + "2:FreeListMany. " + "3:FreeListManyCached. " + "4:FreeListManyCachedFastPath. " + "5:FreeListManyCachedOrigin. ") DEFINE_INT(trace_allocation_stack_interval, -1, "print stack trace after <n> free-list allocations") @@ -1210,6 +1254,9 @@ DEFINE_UINT(serialization_chunk_size, 4096, DEFINE_BOOL(regexp_optimization, true, "generate optimized regexp code") DEFINE_BOOL(regexp_mode_modifiers, false, "enable inline flags in regexp.") DEFINE_BOOL(regexp_interpret_all, false, "interpret all regexp code") +DEFINE_BOOL(regexp_tier_up, false, + "enable regexp interpreter and tier up to the compiler") +DEFINE_NEG_IMPLICATION(regexp_interpret_all, regexp_tier_up) // Testing flags test/cctest/test-{flags,api,serialization}.cc DEFINE_BOOL(testing_bool_flag, true, "testing_bool_flag") @@ -1348,6 +1395,7 @@ DEFINE_BOOL(trace_regexp_bytecodes, false, "trace regexp bytecode execution") DEFINE_BOOL(trace_regexp_assembler, false, "trace regexp macro assembler calls.") DEFINE_BOOL(trace_regexp_parser, false, "trace regexp parsing") +DEFINE_BOOL(trace_regexp_tier_up, false, "trace regexp tiering up execution") // Debugger DEFINE_BOOL(print_break_location, false, "print source location on debug break") @@ -1407,6 +1455,9 @@ DEFINE_BOOL(perf_basic_prof_only_functions, false, DEFINE_IMPLICATION(perf_basic_prof_only_functions, perf_basic_prof) DEFINE_BOOL(perf_prof, false, "Enable perf linux profiler (experimental annotate support).") +DEFINE_BOOL(perf_prof_annotate_wasm, false, + "Used with --perf-prof, load wasm source map and provide annotate " + "support (experimental).") DEFINE_NEG_IMPLICATION(perf_prof, compact_code_space) // TODO(v8:8462) Remove implication once perf supports remapping. DEFINE_NEG_IMPLICATION(perf_prof, write_protect_code_memory) @@ -1463,7 +1514,6 @@ DEFINE_BOOL(trace_elements_transitions, false, "trace elements transitions") DEFINE_BOOL(trace_creation_allocation_sites, false, "trace the creation of allocation sites") -// codegen-ia32.cc / codegen-arm.cc DEFINE_BOOL(print_code, false, "print generated code") DEFINE_BOOL(print_opt_code, false, "print optimized code") DEFINE_STRING(print_opt_code_filter, "*", "filter for printing optimized code") @@ -1471,6 +1521,8 @@ DEFINE_BOOL(print_code_verbose, false, "print more information for code") DEFINE_BOOL(print_builtin_code, false, "print generated code for builtins") DEFINE_STRING(print_builtin_code_filter, "*", "filter for printing builtin code") +DEFINE_BOOL(print_regexp_code, false, "print generated regexp code") +DEFINE_BOOL(print_regexp_bytecode, false, "print generated regexp bytecode") DEFINE_BOOL(print_builtin_size, false, "print code size for builtins") #ifdef ENABLE_DISASSEMBLER @@ -1487,6 +1539,7 @@ DEFINE_IMPLICATION(print_all_code, print_code) DEFINE_IMPLICATION(print_all_code, print_opt_code) DEFINE_IMPLICATION(print_all_code, print_code_verbose) DEFINE_IMPLICATION(print_all_code, print_builtin_code) +DEFINE_IMPLICATION(print_all_code, print_regexp_code) DEFINE_IMPLICATION(print_all_code, code_comments) #endif |