1
- # 1. Disable pointer compression (limits the maximum number of WasmVMs).
2
- # 2. Don't expose Wasm C API (only Wasm C++ API).
3
- # 3. Revert v8 commit b26554ec368e9553782012c96aa5e99b163eaff2, which removed
4
- # use of _allowlist_function_transition from v8 bazel/defs.bzl, since it is
5
- # still required by the version of Bazel we currently use (6.5.0).
1
+ From bc2a85e39fd55879b9baed51429c08b27d5514c8 Mon Sep 17 00:00:00 2001
2
+ From: Matt Leon <
[email protected] >
3
+ Date: Wed, 16 Jul 2025 16:55:02 -0400
4
+ Subject: [PATCH 1/6] Disable pointer compression
5
+
6
+ Pointer compression limits the maximum number of WasmVMs.
7
+
8
+ Signed-off-by: Matt Leon <
[email protected] >
9
+ ---
10
+ BUILD.bazel | 2 +-
11
+ 1 file changed, 1 insertion(+), 1 deletion(-)
6
12
7
13
diff --git a/BUILD.bazel b/BUILD.bazel
8
14
index 3f5a87d054e..0a693b7ee10 100644
@@ -17,6 +23,25 @@ index 3f5a87d054e..0a693b7ee10 100644
17
23
)
18
24
19
25
# Default setting for v8_enable_pointer_compression.
26
+ - -
27
+ 2.50.0.727.gbf7dc18ff4-goog
28
+
29
+
30
+ From 61898e9a63ac89a37261c081b84714cfc400a4b1 Mon Sep 17 00:00:00 2001
31
+ From: Matt Leon <
[email protected] >
32
+ Date: Wed, 16 Jul 2025 16:56:31 -0400
33
+ Subject: [PATCH 2/6] Restore _allowlist_function_transition
34
+
35
+ Reverts v8 commit b26554ec368e9553782012c96aa5e99b163eaff2, which removed use of
36
+ _allowlist_function_transition from v8 bazel/defs.bzl, since it is still required
37
+ by the version of Bazel we currently use (6.5.0).
38
+
39
+ Signed-off-by: Matt Leon <
[email protected] >
40
+ ---
41
+ bazel/defs.bzl | 3 +++
42
+ bazel/v8-non-pointer-compression.bzl | 11 +++++++++++
43
+ 2 files changed, 14 insertions(+)
44
+
20
45
diff --git a/bazel/defs.bzl b/bazel/defs.bzl
21
46
index 0539ea176ac..14d7ace5e59 100644
22
47
--- a/bazel/defs.bzl
@@ -53,6 +78,20 @@ index 8c929454840..57336154cf7 100644
53
78
},
54
79
# Making this executable means it works with "$ bazel run".
55
80
executable = True,
81
+ - -
82
+ 2.50.0.727.gbf7dc18ff4-goog
83
+
84
+
85
+ From 4a6e7158fd4ca48c75c8e33ea15760c9beea1d2f Mon Sep 17 00:00:00 2001
86
+ From: Matt Leon <
[email protected] >
87
+ Date: Wed, 16 Jul 2025 16:56:52 -0400
88
+ Subject: [PATCH 3/6] Don't expose Wasm C API (only Wasm C++ API).
89
+
90
+ Signed-off-by: Matt Leon <
[email protected] >
91
+ ---
92
+ src/wasm/c-api.cc | 4 ++++
93
+ 1 file changed, 4 insertions(+)
94
+
56
95
diff --git a/src/wasm/c-api.cc b/src/wasm/c-api.cc
57
96
index 05e4029f183..d705be96a16 100644
58
97
--- a/src/wasm/c-api.cc
@@ -72,3 +111,93 @@ index 05e4029f183..d705be96a16 100644
72
111
} // extern "C"
73
112
+
74
113
+ #endif
114
+ - -
115
+ 2.50.0.727.gbf7dc18ff4-goog
116
+
117
+
118
+ From 7b593eb8086dcfe9012d4fa694d622f21dadb731 Mon Sep 17 00:00:00 2001
119
+ From: Matt Leon <
[email protected] >
120
+ Date: Wed, 16 Jul 2025 16:58:02 -0400
121
+ Subject: [PATCH 4/6] Stub out fast_float for bazel-supplied version
122
+
123
+ Signed-off-by: Matt Leon <
[email protected] >
124
+ ---
125
+ BUILD.bazel | 2 +-
126
+ 1 file changed, 1 insertion(+), 1 deletion(-)
127
+
128
+ diff --git a/BUILD.bazel b/BUILD.bazel
129
+ index 0a693b7ee10..eafd9dad20c 100644
130
+ --- a/BUILD.bazel
131
+ +++ b/BUILD.bazel
132
+ @@ -4438,7 +4438,7 @@ v8_library(
133
+ ],
134
+ deps = [
135
+ ":lib_dragonbox",
136
+ - "//third_party/fast_float/src:fast_float",
137
+ + "@fast_float//:fast_float",
138
+ ":lib_fp16",
139
+ ":simdutf",
140
+ ":v8_libbase",
141
+ - -
142
+ 2.50.0.727.gbf7dc18ff4-goog
143
+
144
+
145
+ From b442d34b12dd513946f509d9db86839ce8aa4d7f Mon Sep 17 00:00:00 2001
146
+ From: Matt Leon <
[email protected] >
147
+ Date: Wed, 16 Jul 2025 20:04:05 -0400
148
+ Subject: [PATCH 5/6] Stub out vendored dependencies for bazel-sourced versions
149
+
150
+ Signed-off-by: Matt Leon <
[email protected] >
151
+ ---
152
+ BUILD.bazel | 6 +++---
153
+ 1 file changed, 3 insertions(+), 3 deletions(-)
154
+
155
+ diff --git a/BUILD.bazel b/BUILD.bazel
156
+ index eafd9dad20c..ce36666e36e 100644
157
+ --- a/BUILD.bazel
158
+ +++ b/BUILD.bazel
159
+ @@ -4437,10 +4437,10 @@ v8_library(
160
+ ":noicu/generated_torque_definitions",
161
+ ],
162
+ deps = [
163
+ - ":lib_dragonbox",
164
+ + "@dragonbox//:dragonbox",
165
+ "@fast_float//:fast_float",
166
+ - ":lib_fp16",
167
+ - ":simdutf",
168
+ + "@fp16//:FP16",
169
+ + "@simdutf//:simdutf",
170
+ ":v8_libbase",
171
+ "@abseil-cpp//absl/container:btree",
172
+ "@abseil-cpp//absl/container:flat_hash_map",
173
+ - -
174
+ 2.50.0.727.gbf7dc18ff4-goog
175
+
176
+
177
+ From e0b8f32cc057a3c0875437d5d54d012cabcab458 Mon Sep 17 00:00:00 2001
178
+ From: Matt Leon <
[email protected] >
179
+ Date: Wed, 16 Jul 2025 20:29:10 -0400
180
+ Subject: [PATCH 6/6] Add build flags to make V8 compile with GCC
181
+
182
+ Signed-off-by: Matt Leon <
[email protected] >
183
+ ---
184
+ bazel/defs.bzl | 3 +++
185
+ 1 file changed, 3 insertions(+)
186
+
187
+ diff --git a/bazel/defs.bzl b/bazel/defs.bzl
188
+ index 14d7ace5e59..c7a48d4e805 100644
189
+ --- a/bazel/defs.bzl
190
+ +++ b/bazel/defs.bzl
191
+ @@ -117,6 +117,9 @@ def _default_args():
192
+ "-Wno-implicit-int-float-conversion",
193
+ "-Wno-deprecated-copy",
194
+ "-Wno-non-virtual-dtor",
195
+ + "-Wno-invalid-offsetof",
196
+ + "-Wno-dangling-pointer",
197
+ + "-Wno-dangling-reference",
198
+ "-isystem .",
199
+ ],
200
+ "//conditions:default": [],
201
+ - -
202
+ 2.50.0.727.gbf7dc18ff4-goog
203
+
0 commit comments