Reland "Enable lazy source positions by default"
4th attempt to reland this after this revert: https://chromium-review.googlesource.com/c/v8/v8/+/1680553 Required fixes for default values in arrow function parameters and for eval scopes: https://chromium-review.googlesource.com/c/v8/v8/+/1710671 https://chromium-review.googlesource.com/c/v8/v8/+/1733077 Original change's description: > Enable lazy source positions by default > > Also adds a compile time flag which allows the default to be configured > so node can disable it since it hangs the node cpu profiler tests. Bug: v8:8510 Change-Id: I20fd82f636527e405d73fd5941b1b4c2f134b666 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1733078 Commit-Queue: Dan Elphick <delphick@chromium.org> Reviewed-by: Ross McIlroy <rmcilroy@chromium.org> Cr-Commit-Position: refs/heads/master@{#63052}
This commit is contained in:
parent
9cf089e968
commit
5cf67ad933
6
BUILD.gn
6
BUILD.gn
@ -188,6 +188,9 @@ declare_args() {
|
||||
# Sets -DV8_SHARED_RO_HEAP.
|
||||
v8_enable_shared_ro_heap = ""
|
||||
|
||||
# Enables lazy source positions by default.
|
||||
v8_enable_lazy_source_positions = true
|
||||
|
||||
# Disable write barriers when GCs are non-incremental and
|
||||
# heap has single generation.
|
||||
v8_disable_write_barriers = false
|
||||
@ -446,6 +449,9 @@ config("features") {
|
||||
if (v8_enable_concurrent_marking) {
|
||||
defines += [ "V8_CONCURRENT_MARKING" ]
|
||||
}
|
||||
if (v8_enable_lazy_source_positions) {
|
||||
defines += [ "V8_ENABLE_LAZY_SOURCE_POSITIONS" ]
|
||||
}
|
||||
if (v8_check_microtasks_scopes_consistency) {
|
||||
defines += [ "V8_CHECK_MICROTASKS_SCOPES_CONSISTENCY" ]
|
||||
}
|
||||
|
@ -297,13 +297,18 @@ 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
|
||||
@ -435,7 +440,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,
|
||||
|
Loading…
Reference in New Issue
Block a user