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 <henrique.ferreiro@gmail.com>
Helmut Januschka <helmut@januschka.com>
Hirofumi Mako <mkhrfm@gmail.com>
Hisham Muhammad <hisham@gobolinux.org>
Ho Cheung <uioptt24@gmail.com>
Honggyu Kim <honggyu.kp@gmail.com>
Huáng Jùnliàng <jlhwung@gmail.com>
HyeockJin Kim <kherootz@gmail.com>
Iain Ireland <iireland@mozilla.com>
Ilya Gavrilin <ilya.gavrilin@syntacore.com>
Ingvar Stepanyan <me@rreverser.com>
Ioseb Dzmanashvili <ioseb.dzmanashvili@gmail.com>
Isiah Meadows <impinball@gmail.com>
Expand All @@ -170,6 +170,7 @@ Joel Stanley <joel@jms.id.au>
Johan Bergström <johan@bergstroem.nu>
Johan Levin <johan13@gmail.com>
John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Jojo R <rjiejie@gmail.com>
Jonathan Liu <net147@gmail.com>
Juan Arboleda <soyjuanarbol@gmail.com>
Julien Brianceau <jbriance@cisco.com>
Expand Down Expand Up @@ -205,6 +206,7 @@ Matt Hanselman <mjhanselman@gmail.com>
Matthew Sporleder <msporleder@gmail.com>
Maxim Mazurok <maxim@mazurok.com>
Maxim Mossienko <maxim.mossienko@gmail.com>
Md Hasibul Hasan <hasibulhasan873@gmail.com>
Meir Shpilraien <meir@redis.com>
Michael Lutz <michi@icosahedron.de>
Michael Mclaughlin <m8ch88l@gmail.com>
Expand Down Expand Up @@ -312,6 +314,7 @@ Yuxiang Cao <caoyxsh@outlook.com>
Zac Hansen <xaxxon@gmail.com>
Zeynep Cankara <zeynepcankara402@gmail.com>
Zhao Jiazhong <kyslie3100@gmail.com>
Zhaojun Meng <zhaojun.meng@gmail.com>
Zheng Liu <i6122f@gmail.com>
Zhongping Wang <kewpie.w.zp@gmail.com>
柳荣一 <admin@web-tinker.com>
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