Skip to content

Commit 81cbb68

Browse files
committed
Bump V8 to 14.5
1 parent 3262926 commit 81cbb68

File tree

27 files changed

+171
-225
lines changed

27 files changed

+171
-225
lines changed

build/deps/v8.MODULE.bazel

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "ht
1818

1919
git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
2020

21-
VERSION = "14.3.127.16"
21+
VERSION = "14.5.201.6"
2222

23-
INTEGRITY = "sha256-4dMw1ahFEEgUAyDlDgbintH78BizOk4VWMiCRrWt6Rs="
23+
INTEGRITY = "sha256-IL8zV72yG5TUbY8HHW9fPoaOYNLiY8FtRkPtkJ6SiLo="
2424

2525
PATCHES = [
2626
"0001-Allow-manually-setting-ValueDeserializer-format-vers.patch",
@@ -51,9 +51,8 @@ PATCHES = [
5151
"0026-Implement-additional-Exception-construction-methods.patch",
5252
"0027-Export-icudata-file-to-facilitate-embedding-it.patch",
5353
"0028-bind-icu-to-googlesource.patch",
54-
"0029-optimize-ascii-fast-path-in-WriteUtf8V2.patch",
55-
"0030-Add-v8-String-IsFlat-API.patch",
56-
"0031-Expose-AdjustAmountOfExternalAllocatedMemoryImpl.patch",
54+
"0029-Add-v8-String-IsFlat-API.patch",
55+
"0030-Expose-AdjustAmountOfExternalAllocatedMemoryImpl-as-.patch",
5756
]
5857

5958
http_archive(
@@ -68,7 +67,7 @@ http_archive(
6867
git_repository(
6968
name = "com_googlesource_chromium_icu",
7069
build_file = "@v8//:bazel/BUILD.icu",
71-
commit = "f27805b7d7d8618fa73ce89e9d28e0a8b2216fec",
70+
commit = "a86a32e67b8d1384b33f8fa48c83a6079b86f8cd",
7271
patch_cmds = ["find source -name BUILD.bazel | xargs rm"],
7372
patch_cmds_win = ["Get-ChildItem -Path source -File -Include BUILD.bazel -Recurse | Remove-Item"],
7473
remote = "https://chromium.googlesource.com/chromium/deps/icu.git",

patches/v8/0001-Allow-manually-setting-ValueDeserializer-format-vers.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ index 0cb3e045bc46ec732956318b980e749d1847d06d..40ad805c7970cc9379e69f046205836d
3737
* Reads raw data in various common formats to the buffer.
3838
* Note that integer types are read in base-128 varint format, not with a
3939
diff --git a/src/api/api.cc b/src/api/api.cc
40-
index 5a879e9ff5d9e8607b8dc16c4e1e7a015b1c13ae..70689feb46dd764798f74ff27e5cdf59114bd252 100644
40+
index 0b3ea819fb227ea807a3b33fb6f1c3e49af4554d..a1c286d2c073eb49b06fd58324f9525ea34fea33 100644
4141
--- a/src/api/api.cc
4242
+++ b/src/api/api.cc
43-
@@ -3480,6 +3480,10 @@ uint32_t ValueDeserializer::GetWireFormatVersion() const {
43+
@@ -3588,6 +3588,10 @@ uint32_t ValueDeserializer::GetWireFormatVersion() const {
4444
return private_->deserializer.GetWireFormatVersion();
4545
}
4646

patches/v8/0002-Allow-manually-setting-ValueSerializer-format-versio.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ index 40ad805c7970cc9379e69f046205836dbd760373..596be18adeb3a5a81794aaa44b1d347d
2323
* Writes out a header, which includes the format version.
2424
*/
2525
diff --git a/src/api/api.cc b/src/api/api.cc
26-
index 70689feb46dd764798f74ff27e5cdf59114bd252..ca37e96822e31eb726f7f01874428b0c865fa144 100644
26+
index a1c286d2c073eb49b06fd58324f9525ea34fea33..4689a9057392f463d50f56db4b559e719b81dda1 100644
2727
--- a/src/api/api.cc
2828
+++ b/src/api/api.cc
29-
@@ -3352,6 +3352,10 @@ ValueSerializer::ValueSerializer(Isolate* v8_isolate, Delegate* delegate)
29+
@@ -3460,6 +3460,10 @@ ValueSerializer::ValueSerializer(Isolate* v8_isolate, Delegate* delegate)
3030

3131
ValueSerializer::~ValueSerializer() { delete private_; }
3232

@@ -38,7 +38,7 @@ index 70689feb46dd764798f74ff27e5cdf59114bd252..ca37e96822e31eb726f7f01874428b0c
3838

3939
void ValueSerializer::SetTreatArrayBufferViewsAsHostObjects(bool mode) {
4040
diff --git a/src/objects/value-serializer.cc b/src/objects/value-serializer.cc
41-
index 10c1099691ae24f1e5b4b1f71f3c60bf25638a95..c37d9edafd5f5b460a9aa39f5aa5a275a6d49015 100644
41+
index 128331ee3fd500b3861c8e8d866ca40e5a621c02..6294e46b2a1d7b6b9e9fd57706d5cb4d72295f53 100644
4242
--- a/src/objects/value-serializer.cc
4343
+++ b/src/objects/value-serializer.cc
4444
@@ -297,6 +297,7 @@ ValueSerializer::ValueSerializer(Isolate* isolate,

patches/v8/0003-Allow-Windows-builds-under-Bazel.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ Subject: Allow Windows builds under Bazel
66
Signed-off-by: James M Snell <jsnell@cloudflare.com>
77

88
diff --git a/BUILD.bazel b/BUILD.bazel
9-
index d49da552c42612116ad032b532563c0420777a8e..5dcaecb19485e07453c90e9b98eaa565e47e03a2 100644
9+
index ab41feeb1b889087a78729d934c32cf4aa98220f..050374d1020d2a8b6e0548baf93cab3458365fba 100644
1010
--- a/BUILD.bazel
1111
+++ b/BUILD.bazel
12-
@@ -3993,6 +3993,8 @@ filegroup(
12+
@@ -4029,6 +4029,8 @@ filegroup(
1313
"@v8//bazel/config:is_inline_asm_x64": ["src/heap/base/asm/x64/push_registers_asm.cc"],
1414
"@v8//bazel/config:is_inline_asm_arm": ["src/heap/base/asm/arm/push_registers_asm.cc"],
1515
"@v8//bazel/config:is_inline_asm_arm64": ["src/heap/base/asm/arm64/push_registers_asm.cc"],
@@ -19,7 +19,7 @@ index d49da552c42612116ad032b532563c0420777a8e..5dcaecb19485e07453c90e9b98eaa565
1919
"@v8//bazel/config:is_inline_asm_riscv64": ["src/heap/base/asm/riscv64/push_registers_asm.cc"],
2020
"@v8//bazel/config:is_inline_asm_ppc64le": ["src/heap/base/asm/ppc/push_registers_asm.cc"],
2121
diff --git a/bazel/config/BUILD.bazel b/bazel/config/BUILD.bazel
22-
index c81f278203126913c3bad74d31348706678ccf06..96e0f9cdb61d0d8f6597d337c2dd965ba67de12c 100644
22+
index 17e379b8e27baaa33f58ee852cfd919a9b39d729..7c2154b8ac2e817abebf89f5fa7d30354591d381 100644
2323
--- a/bazel/config/BUILD.bazel
2424
+++ b/bazel/config/BUILD.bazel
2525
@@ -270,6 +270,7 @@ selects.config_setting_group(
@@ -88,10 +88,10 @@ index c81f278203126913c3bad74d31348706678ccf06..96e0f9cdb61d0d8f6597d337c2dd965b
8888
name = "is_clang",
8989
match_any = [
9090
diff --git a/bazel/defs.bzl b/bazel/defs.bzl
91-
index a7e1e2af786ce4ab34764292092d10a861fa5028..52037382b78a50aea49d9401b88801845f67d30c 100644
91+
index 26bb03fa5f5c16d766680905b9292734dabce3da..e18a91baa200d07dd549c15a0833e965fd645bf7 100644
9292
--- a/bazel/defs.bzl
9393
+++ b/bazel/defs.bzl
94-
@@ -125,6 +125,24 @@ def _default_args():
94+
@@ -126,6 +126,24 @@ def _default_args():
9595
"-Wno-unnecessary-virtual-specifier",
9696
"-isystem .",
9797
],
@@ -116,7 +116,7 @@ index a7e1e2af786ce4ab34764292092d10a861fa5028..52037382b78a50aea49d9401b8880184
116116
"//conditions:default": [],
117117
}) + select({
118118
"@v8//bazel/config:is_clang": [
119-
@@ -174,13 +192,23 @@ def _default_args():
119+
@@ -175,13 +193,23 @@ def _default_args():
120120
],
121121
"//conditions:default": [
122122
],

patches/v8/0005-Speed-up-V8-bazel-build-by-always-using-target-cfg.patch

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ both target and exec configurations as generator tools depend on them.
1010
Signed-off-by: James M Snell <jsnell@cloudflare.com>
1111

1212
diff --git a/BUILD.bazel b/BUILD.bazel
13-
index 5dcaecb19485e07453c90e9b98eaa565e47e03a2..8d24589d2ba8dc0dc7e47a1d87fe51232833c114 100644
13+
index 050374d1020d2a8b6e0548baf93cab3458365fba..f3381abb831f505f0bcf9e743f9f8c0354fdddf1 100644
1414
--- a/BUILD.bazel
1515
+++ b/BUILD.bazel
1616
@@ -19,6 +19,7 @@ load(
@@ -21,7 +21,7 @@ index 5dcaecb19485e07453c90e9b98eaa565e47e03a2..8d24589d2ba8dc0dc7e47a1d87fe5123
2121
)
2222
load(":bazel/v8-non-pointer-compression.bzl", "v8_binary_non_pointer_compression")
2323

24-
@@ -4392,22 +4393,20 @@ filegroup(
24+
@@ -4428,22 +4429,20 @@ filegroup(
2525
],
2626
)
2727

@@ -50,7 +50,7 @@ index 5dcaecb19485e07453c90e9b98eaa565e47e03a2..8d24589d2ba8dc0dc7e47a1d87fe5123
5050
)
5151

5252
v8_mksnapshot(
53-
@@ -4628,7 +4627,6 @@ v8_binary(
53+
@@ -4664,7 +4663,6 @@ v8_binary(
5454
srcs = [
5555
"src/regexp/gen-regexp-special-case.cc",
5656
"src/regexp/special-case.h",
@@ -59,10 +59,10 @@ index 5dcaecb19485e07453c90e9b98eaa565e47e03a2..8d24589d2ba8dc0dc7e47a1d87fe5123
5959
copts = ["-Wno-implicit-fallthrough"],
6060
defines = [
6161
diff --git a/bazel/defs.bzl b/bazel/defs.bzl
62-
index 52037382b78a50aea49d9401b88801845f67d30c..026583d04f4ee89f5d840c0b71022efda9c6e86c 100644
62+
index e18a91baa200d07dd549c15a0833e965fd645bf7..34577b352c38894698161cb8d0302f375064dd7e 100644
6363
--- a/bazel/defs.bzl
6464
+++ b/bazel/defs.bzl
65-
@@ -347,6 +347,15 @@ def v8_library(
65+
@@ -348,6 +348,15 @@ def v8_library(
6666
**kwargs
6767
)
6868

@@ -78,7 +78,7 @@ index 52037382b78a50aea49d9401b88801845f67d30c..026583d04f4ee89f5d840c0b71022efd
7878
# Use a single generator target for torque definitions and initializers. We can
7979
# split the set of outputs by using OutputGroupInfo, that way we do not need to
8080
# run the torque generator twice.
81-
@@ -415,7 +424,7 @@ _v8_torque_files = rule(
81+
@@ -416,7 +425,7 @@ _v8_torque_files = rule(
8282
"tool": attr.label(
8383
allow_files = True,
8484
executable = True,
@@ -87,7 +87,7 @@ index 52037382b78a50aea49d9401b88801845f67d30c..026583d04f4ee89f5d840c0b71022efd
8787
),
8888
"args": attr.string_list(),
8989
},
90-
@@ -516,13 +525,16 @@ _v8_mksnapshot = rule(
90+
@@ -517,13 +526,16 @@ _v8_mksnapshot = rule(
9191
mandatory = True,
9292
allow_files = True,
9393
executable = True,
@@ -106,7 +106,7 @@ index 52037382b78a50aea49d9401b88801845f67d30c..026583d04f4ee89f5d840c0b71022efd
106106
)
107107

108108
def v8_mksnapshot(name, args, suffix = ""):
109-
@@ -649,3 +661,34 @@ def v8_build_config(name, arch):
109+
@@ -650,3 +662,34 @@ def v8_build_config(name, arch):
110110
outs = ["icu/" + name + ".json"],
111111
cmd = "echo '" + build_config_content(cpu, "true") + "' > \"$@\"",
112112
)

0 commit comments

Comments
 (0)