Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: update V8 to 12.9 #54536

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
'v8_embedder_string': '-node.15',
'v8_embedder_string': '-node.9',

##### V8 defaults for Node.js #####

Expand Down
6 changes: 3 additions & 3 deletions deps/v8/.editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
root = true
# editorconfig.org

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
4 changes: 2 additions & 2 deletions deps/v8/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
!/third_party/test262-harness
!/third_party/v8
!/third_party/wasm-api
/tools/builtins-pgo/profiles/*.profile
/tools/builtins-pgo/profiles/profiles_version
/tools/builtins-pgo/profiles/*
!/tools/builtins-pgo/profiles/.*
/tools/clang
/tools/gcmole/bootstrap
/tools/gcmole/gcmole-tools
Expand Down
5 changes: 4 additions & 1 deletion deps/v8/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ Henrique Ferreiro <[email protected]>
Helmut Januschka <[email protected]>
Hirofumi Mako <[email protected]>
Hisham Muhammad <[email protected]>
Ho Cheung <[email protected]>
Honggyu Kim <[email protected]>
Huáng Jùnliàng <[email protected]>
HyeockJin Kim <[email protected]>
Iain Ireland <[email protected]>
Ilya Gavrilin <[email protected]>
Ingvar Stepanyan <[email protected]>
Ioseb Dzmanashvili <[email protected]>
Isiah Meadows <[email protected]>
Expand All @@ -170,6 +170,7 @@ Joel Stanley <[email protected]>
Johan Bergström <[email protected]>
Johan Levin <[email protected]>
John Paul Adrian Glaubitz <[email protected]>
Jojo R <[email protected]>
Jonathan Liu <[email protected]>
Juan Arboleda <[email protected]>
Julien Brianceau <[email protected]>
Expand Down Expand Up @@ -205,6 +206,7 @@ Matt Hanselman <[email protected]>
Matthew Sporleder <[email protected]>
Maxim Mazurok <[email protected]>
Maxim Mossienko <[email protected]>
Md Hasibul Hasan <[email protected]>
Meir Shpilraien <[email protected]>
Michael Lutz <[email protected]>
Michael Mclaughlin <[email protected]>
Expand Down Expand Up @@ -312,6 +314,7 @@ Yuxiang Cao <[email protected]>
Zac Hansen <[email protected]>
Zeynep Cankara <[email protected]>
Zhao Jiazhong <[email protected]>
Zhaojun Meng <[email protected]>
Zheng Liu <[email protected]>
Zhongping Wang <[email protected]>
柳荣一 <[email protected]>
Expand Down
80 changes: 78 additions & 2 deletions deps/v8/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ load(":bazel/v8-non-pointer-compression.bzl", "v8_binary_non_pointer_compression
# v8_enable_concurrent_marking
# v8_enable_conservative_stack_scanning
# v8_enable_direct_handle
# v8_enable_direct_local
# v8_enable_local_off_stack_check
# v8_enable_ignition_dispatch_counting
# v8_enable_builtins_optimization
Expand Down Expand Up @@ -208,6 +207,49 @@ v8_flag(
default = True,
)

v8_flag(
name = "v8_enable_drumbrake",
default = False,
)

v8_flag(
name = "v8_enable_drumbrake_tracing",
default = False,
)

selects.config_setting_group(
name = "enable_drumbrake_x64",
match_all = [
":is_v8_enable_drumbrake",
"@v8//bazel/config:v8_target_x64",
],
)

selects.config_setting_group(
name = "enable_drumbrake_arm64",
match_all = [
":is_v8_enable_drumbrake",
"@v8//bazel/config:v8_target_arm64",
],
)

selects.config_setting_group(
name = "is_drumbrake_trap_handling_platform",
match_any = [
"@v8//bazel/config:is_linux",
"@v8//bazel/config:is_macos",
"@v8//bazel/config:is_windows",
],
)

selects.config_setting_group(
name = "v8_drumbrake_bounds_checks",
match_all = [
":enable_drumbrake_x64",
":is_drumbrake_trap_handling_platform",
],
)

v8_flag(
name = "v8_jitless",
default = False,
Expand Down Expand Up @@ -411,6 +453,8 @@ v8_config(
"v8_enable_verify_heap": "VERIFY_HEAP",
"v8_enable_verify_predictable": "VERIFY_PREDICTABLE",
"v8_enable_webassembly": "V8_ENABLE_WEBASSEMBLY",
"v8_enable_drumbrake": "V8_ENABLE_DRUMBRAKE",
"v8_enable_drumbrake_tracing": "V8_ENABLE_DRUMBRAKE_TRACING",
"v8_jitless": "V8_JITLESS",
"v8_enable_vtunejit": "ENABLE_VTUNE_JIT_INTERFACE",
},
Expand Down Expand Up @@ -518,7 +562,13 @@ v8_config(
"V8_ENABLE_DOUBLE_CONST_STORE_CHECK",
],
"//conditions:default": [],
}) + select({
"v8_drumbrake_bounds_checks": [
"V8_DRUMBRAKE_BOUNDS_CHECKS"
],
"//conditions:default": [],
}),

deps = [":default"],
)

Expand Down Expand Up @@ -757,7 +807,6 @@ filegroup(
"src/base/numbers/strtod.h",
"src/base/once.cc",
"src/base/once.h",
"src/base/optional.h",
"src/base/overflowing-math.h",
"src/base/page-allocator.cc",
"src/base/page-allocator.h",
Expand Down Expand Up @@ -1268,6 +1317,7 @@ filegroup(
"src/builtins/builtins.cc",
"src/builtins/builtins-inl.h",
"src/builtins/builtins.h",
"src/builtins/builtins-abstract-module-source.cc",
"src/builtins/builtins-api.cc",
"src/builtins/builtins-array.cc",
"src/builtins/builtins-arraybuffer.cc",
Expand Down Expand Up @@ -1402,6 +1452,8 @@ filegroup(
"src/common/ptr-compr.cc",
"src/common/ptr-compr.h",
"src/common/ptr-compr-inl.h",
"src/common/segmented-table.h",
"src/common/segmented-table-inl.h",
"src/common/simd128.h",
"src/compiler-dispatcher/lazy-compile-dispatcher.cc",
"src/compiler-dispatcher/lazy-compile-dispatcher.h",
Expand Down Expand Up @@ -2916,6 +2968,21 @@ filegroup(
"src/wasm/wrappers.cc",
],
"//conditions:default": [],
}) + select({
":is_v8_enable_drumbrake": [
"src/wasm/interpreter/instruction-handlers.h",
"src/wasm/interpreter/wasm-interpreter.cc",
"src/wasm/interpreter/wasm-interpreter.h",
"src/wasm/interpreter/wasm-interpreter-inl.h",
"src/wasm/interpreter/wasm-interpreter-objects.cc",
"src/wasm/interpreter/wasm-interpreter-objects-inl.h",
"src/wasm/interpreter/wasm-interpreter-objects.h",
"src/wasm/interpreter/wasm-interpreter-runtime.cc",
"src/wasm/interpreter/wasm-interpreter-runtime-inl.h",
"src/wasm/interpreter/wasm-interpreter-runtime.h",
"src/wasm/interpreter/wasm-interpreter-simd.cc",
],
"//conditions:default": [],
}),
)

Expand Down Expand Up @@ -3307,6 +3374,7 @@ filegroup(
"src/compiler/turboshaft/store-store-elimination-phase.cc",
"src/compiler/turboshaft/store-store-elimination-phase.h",
"src/compiler/turboshaft/store-store-elimination-reducer-inl.h",
"src/compiler/turboshaft/string-view.h",
"src/compiler/turboshaft/structural-optimization-reducer.h",
"src/compiler/turboshaft/tracing.h",
"src/compiler/turboshaft/type-assertions-phase.cc",
Expand Down Expand Up @@ -3579,6 +3647,14 @@ filegroup(
"src/builtins/builtins-wasm-gen.h",
],
"//conditions:default": [],
}) + select({
":enable_drumbrake_x64": [
"src/wasm/interpreter/x64/interpreter-builtins-x64.cc"
],
":enable_drumbrake_arm64": [
"src/wasm/interpreter/arm64/interpreter-builtins-arm64.cc"
],
"//conditions:default": [],
}),
)

Expand Down
Loading
Loading