Skip to content

Commit 974ab40

Browse files
committed
deps: update V8 to 9.8.177.9
PR-URL: #41610 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 4318b23 commit 974ab40

File tree

1,131 files changed

+37260
-16586
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,131 files changed

+37260
-16586
lines changed

deps/v8/.vpython3

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This is a vpython "spec" file.
2+
#
3+
# It describes patterns for python wheel dependencies of the python scripts in
4+
# the chromium repo, particularly for dependencies that have compiled components
5+
# (since pure-python dependencies can be easily vendored into third_party).
6+
#
7+
# When vpython is invoked, it finds this file and builds a python VirtualEnv,
8+
# containing all of the dependencies described in this file, fetching them from
9+
# CIPD (the "Chrome Infrastructure Package Deployer" service). Unlike `pip`,
10+
# this never requires the end-user machine to have a working python extension
11+
# compilation environment. All of these packages are built using:
12+
# https://chromium.googlesource.com/infra/infra/+/main/infra/tools/dockerbuild/
13+
#
14+
# All python scripts in the repo share this same spec, to avoid dependency
15+
# fragmentation.
16+
#
17+
# If you have depot_tools installed in your $PATH, you can invoke python scripts
18+
# in this repo by running them as you normally would run them, except
19+
# substituting `vpython` instead of `python` on the command line, e.g.:
20+
# vpython path/to/script.py some --arguments
21+
#
22+
# Read more about `vpython` and how to modify this file here:
23+
# https://chromium.googlesource.com/infra/infra/+/main/doc/users/vpython.md
24+
25+
python_version: "3.8"
26+
27+
# The default set of platforms vpython checks does not yet include mac-arm64.
28+
# Setting `verify_pep425_tag` to the list of platforms we explicitly must support
29+
# allows us to ensure that vpython specs stay mac-arm64-friendly
30+
verify_pep425_tag: [
31+
{python: "cp38", abi: "cp38", platform: "manylinux1_x86_64"},
32+
{python: "cp38", abi: "cp38", platform: "linux_arm64"},
33+
34+
{python: "cp38", abi: "cp38", platform: "macosx_10_10_intel"},
35+
{python: "cp38", abi: "cp38", platform: "macosx_11_0_arm64"},
36+
37+
{python: "cp38", abi: "cp38", platform: "win32"},
38+
{python: "cp38", abi: "cp38", platform: "win_amd64"}
39+
]
40+
41+
# TODO(https://crbug.com/898348): Add in necessary wheels as Python3 versions
42+
# become available.
43+
wheel: <
44+
name: "infra/python/wheels/six-py2_py3"
45+
version: "version:1.15.0"
46+
>

deps/v8/AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ Loo Rong Jie <loorongjie@gmail.com>
149149
Lu Yahan <yahan@iscas.ac.cn>
150150
Luis Reis <luis.m.reis@gmail.com>
151151
Luke Zarko <lukezarko@gmail.com>
152+
Ma Aiguo <maaiguo@uniontech.com>
152153
Maciej Małecki <me@mmalecki.com>
153154
Marcel Laverdet <marcel@laverdet.com>
154155
Marcin Cieślak <saper@marcincieslak.com>

deps/v8/BUILD.bazel

+93-13
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ config_setting(
4444
# v8_enable_trace_baseline_exec
4545
# v8_enable_trace_feedback_updates
4646
# v8_enable_atomic_object_field_writes
47-
# v8_enable_atomic_marking_state
4847
# v8_enable_concurrent_marking
4948
# v8_enable_ignition_dispatch_counting
5049
# v8_enable_builtins_profiling
@@ -322,6 +321,14 @@ v8_config(
322321
"V8_HAVE_TARGET_OS",
323322
"V8_TARGET_OS_MACOSX",
324323
],
324+
"@config//:is_windows": [
325+
"V8_HAVE_TARGET_OS",
326+
"V8_TARGET_OS_WIN",
327+
"UNICODE",
328+
"_UNICODE",
329+
"_CRT_RAND_S",
330+
"_WIN32_WINNT=0x0602",
331+
],
325332
}) + select({
326333
":is_v8_enable_pointer_compression": [
327334
"V8_COMPRESS_POINTERS",
@@ -351,6 +358,19 @@ v8_config(
351358
# File group rules
352359
# =================================================
353360

361+
filegroup(
362+
name = "public_header_files",
363+
srcs = glob(["include/**/*.h"]),
364+
)
365+
366+
filegroup(
367+
name = "public_wasm_c_api_header_files",
368+
srcs = [
369+
"third_party/wasm-api/wasm.h",
370+
"third_party/wasm-api/wasm.hh",
371+
],
372+
)
373+
354374
filegroup(
355375
name = "v8_config_headers_files",
356376
srcs = [
@@ -425,6 +445,7 @@ filegroup(
425445
"include/v8-date.h",
426446
"include/v8-debug.h",
427447
"include/v8-embedder-heap.h",
448+
"include/v8-embedder-state-scope.h",
428449
"include/v8-exception.h",
429450
"include/v8-extension.h",
430451
"include/v8-external.h",
@@ -520,6 +541,8 @@ filegroup(
520541
"src/base/debug/stack_trace.h",
521542
"src/base/division-by-constant.cc",
522543
"src/base/division-by-constant.h",
544+
"src/base/emulated-virtual-address-subspace.cc",
545+
"src/base/emulated-virtual-address-subspace.h",
523546
"src/base/enum-set.h",
524547
"src/base/export-template.h",
525548
"src/base/file-utils.cc",
@@ -591,9 +614,14 @@ filegroup(
591614
"src/base/utils/random-number-generator.cc",
592615
"src/base/utils/random-number-generator.h",
593616
"src/base/vector.h",
617+
"src/base/virtual-address-space-page-allocator.cc",
618+
"src/base/virtual-address-space-page-allocator.h",
619+
"src/base/virtual-address-space.cc",
620+
"src/base/virtual-address-space.h",
594621
"src/base/v8-fallthrough.h",
595622
"src/base/vlq-base64.cc",
596623
"src/base/vlq-base64.h",
624+
"src/base/platform/yield-processor.h",
597625
] + select({
598626
"@config//:is_posix": [
599627
"src/base/platform/platform-posix.cc",
@@ -615,6 +643,11 @@ filegroup(
615643
"src/base/debug/stack_trace_posix.cc",
616644
"src/base/platform/platform-macos.cc",
617645
],
646+
"@config//:is_windows": [
647+
"src/base/win32-headers.h",
648+
"src/base/debug/stack_trace_win.cc",
649+
"src/base/platform/platform-win32.cc",
650+
],
618651
}),
619652
visibility = ["//visibility:public"],
620653
)
@@ -1110,6 +1143,7 @@ filegroup(
11101143
"src/common/assert-scope.cc",
11111144
"src/common/assert-scope.h",
11121145
"src/common/checks.h",
1146+
"src/common/high-allocation-throughput-scope.h",
11131147
"src/common/message-template.h",
11141148
"src/common/ptr-compr-inl.h",
11151149
"src/common/ptr-compr.h",
@@ -1180,6 +1214,10 @@ filegroup(
11801214
"src/execution/arguments-inl.h",
11811215
"src/execution/arguments.cc",
11821216
"src/execution/arguments.h",
1217+
"src/execution/encoded-c-signature.cc",
1218+
"src/execution/encoded-c-signature.h",
1219+
"src/execution/embedder-state.h",
1220+
"src/execution/embedder-state.cc",
11831221
"src/execution/execution.cc",
11841222
"src/execution/execution.h",
11851223
"src/execution/frame-constants.h",
@@ -1307,6 +1345,8 @@ filegroup(
13071345
"src/heap/heap-controller.cc",
13081346
"src/heap/heap-controller.h",
13091347
"src/heap/heap-inl.h",
1348+
"src/heap/heap-layout-tracer.cc",
1349+
"src/heap/heap-layout-tracer.h",
13101350
"src/heap/heap-write-barrier-inl.h",
13111351
"src/heap/heap-write-barrier.cc",
13121352
"src/heap/heap-write-barrier.h",
@@ -1400,7 +1440,6 @@ filegroup(
14001440
"src/heap/sweeper.h",
14011441
"src/heap/weak-object-worklists.cc",
14021442
"src/heap/weak-object-worklists.h",
1403-
"src/heap/worklist.h",
14041443
"src/ic/call-optimization.cc",
14051444
"src/ic/call-optimization.h",
14061445
"src/ic/handler-configuration-inl.h",
@@ -1890,6 +1929,8 @@ filegroup(
18901929
"src/base/sanitizer/asan.h",
18911930
"src/base/sanitizer/lsan-page-allocator.cc",
18921931
"src/base/sanitizer/lsan-page-allocator.h",
1932+
"src/base/sanitizer/lsan-virtual-address-space.cc",
1933+
"src/base/sanitizer/lsan-virtual-address-space.h",
18931934
"src/base/sanitizer/msan.h",
18941935
"src/base/sanitizer/tsan.h",
18951936
"src/snapshot/code-serializer.cc",
@@ -1961,6 +2002,8 @@ filegroup(
19612002
"src/tasks/operations-barrier.h",
19622003
"src/tasks/task-utils.cc",
19632004
"src/tasks/task-utils.h",
2005+
"src/temporal/temporal-parser.cc",
2006+
"src/temporal/temporal-parser.h",
19642007
"src/torque/runtime-macro-shims.h",
19652008
"src/third_party/siphash/halfsiphash.cc",
19662009
"src/third_party/siphash/halfsiphash.h",
@@ -2163,7 +2206,7 @@ filegroup(
21632206
],
21642207
}) + select({
21652208
# Only for x64 builds and for arm64 with x64 host simulator.
2166-
"@config//:is_x64": [
2209+
"@config//:is_posix_x64": [
21672210
"src/trap-handler/handler-inside-posix.cc",
21682211
"src/trap-handler/handler-outside-posix.cc",
21692212
],
@@ -2174,6 +2217,22 @@ filegroup(
21742217
"src/trap-handler/handler-outside-simulator.cc",
21752218
],
21762219
"//conditions:default": [],
2220+
}) + select({
2221+
"@config//:is_windows": [
2222+
"src/trap-handler/handler-inside-win.cc",
2223+
"src/trap-handler/handler-outside-win.cc",
2224+
"src/trap-handler/handler-inside-win.h",
2225+
# Needed on windows to work around https://github.com/bazelbuild/bazel/issues/6337
2226+
"third_party/zlib/zlib.h",
2227+
"third_party/zlib/zconf.h",
2228+
],
2229+
"//conditions:default": [],
2230+
}) + select({
2231+
"@config//:is_windows_64bit": [
2232+
"src/diagnostics/unwinding-info-win64.cc",
2233+
"src/diagnostics/unwinding-info-win64.h",
2234+
],
2235+
"//conditions:default": [],
21772236
}) + select({
21782237
":is_v8_enable_webassembly": [
21792238
"src/asmjs/asm-js.cc",
@@ -2717,6 +2776,7 @@ filegroup(
27172776
"src/heap/cppgc/marking-visitor.h",
27182777
"src/heap/cppgc/marking-worklists.cc",
27192778
"src/heap/cppgc/marking-worklists.h",
2779+
"src/heap/cppgc/memory.cc",
27202780
"src/heap/cppgc/memory.h",
27212781
"src/heap/cppgc/metric-recorder.h",
27222782
"src/heap/cppgc/name-trait.cc",
@@ -2770,10 +2830,13 @@ filegroup(
27702830
# Note these cannot be v8_target_is_* selects because these contain
27712831
# inline assembly that runs inside the executable. Since these are
27722832
# linked directly into mksnapshot, they must use the actual target cpu.
2773-
"@config//:is_ia32": ["src/heap/base/asm/ia32/push_registers_asm.cc"],
2774-
"@config//:is_x64": ["src/heap/base/asm/x64/push_registers_asm.cc"],
2775-
"@config//:is_arm": ["src/heap/base/asm/arm/push_registers_asm.cc"],
2776-
"@config//:is_arm64": ["src/heap/base/asm/arm64/push_registers_asm.cc"],
2833+
"@config//:is_inline_asm_ia32": ["src/heap/base/asm/ia32/push_registers_asm.cc"],
2834+
"@config//:is_inline_asm_x64": ["src/heap/base/asm/x64/push_registers_asm.cc"],
2835+
"@config//:is_inline_asm_arm": ["src/heap/base/asm/arm/push_registers_asm.cc"],
2836+
"@config//:is_inline_asm_arm64": ["src/heap/base/asm/arm64/push_registers_asm.cc"],
2837+
"@config//:is_msvc_asm_ia32": ["src/heap/base/asm/ia32/push_registers_masm.S"],
2838+
"@config//:is_msvc_asm_x64": ["src/heap/base/asm/x64/push_registers_masm.S"],
2839+
"@config//:is_msvc_asm_arm64": ["src/heap/base/asm/arm64/push_registers_masm.S"],
27772840
}),
27782841
)
27792842

@@ -2968,6 +3031,11 @@ filegroup(
29683031
],
29693032
)
29703033

3034+
filegroup(
3035+
name = "kythe_torque_headers",
3036+
srcs = glob(["src/torque/*.h"]),
3037+
)
3038+
29713039
# =================================================
29723040
# Generated files
29733041
# =================================================
@@ -3033,6 +3101,7 @@ genrule(
30333101
"src/inspector/protocol/Schema.h",
30343102
],
30353103
cmd = "bazel/generate-inspector-files.sh $(@D)",
3104+
cmd_bat = "bazel\\generate-inspector-files.cmd $(@D)",
30363105
local = 1,
30373106
message = "Generating inspector files",
30383107
)
@@ -3071,6 +3140,7 @@ genrule(
30713140
srcs = [],
30723141
outs = ["builtins-generated/bytecodes-builtins-list.h"],
30733142
cmd = "$(location :bytecode_builtins_list_generator) $@",
3143+
cmd_bat = "$(location :bytecode_builtins_list_generator) $@",
30743144
tools = [":bytecode_builtins_list_generator"],
30753145
)
30763146

@@ -3079,6 +3149,7 @@ genrule(
30793149
srcs = [],
30803150
outs = ["src/regexp/special-case.cc"],
30813151
cmd = "$(location :regexp_special_case_generator) $@",
3152+
cmd_bat = "$(location :regexp_special_case_generator) $@",
30823153
tools = [":regexp_special_case_generator"],
30833154
)
30843155

@@ -3137,17 +3208,18 @@ cc_library(
31373208
],
31383209
include_prefix = "third_party/v8",
31393210
includes = ["."],
3140-
visibility = ["//visibility:public"],
31413211
)
31423212

31433213
cc_library(
3144-
name = "torque_base",
3214+
name = "kythe_torque_base",
31453215
srcs = [
31463216
":torque_base_files",
31473217
],
3148-
copts = ["-fexceptions"],
3218+
copts = select({
3219+
"@config//:is_posix": [ "-fexceptions" ],
3220+
"//conditions:default": [],
3221+
}),
31493222
features = ["-use_header_modules"],
3150-
visibility = ["//visibility:public"],
31513223
deps = [
31523224
":torque_base_headers",
31533225
":v8_libbase",
@@ -3250,7 +3322,10 @@ v8_binary(
32503322
"src/torque/torque.cc",
32513323
":torque_base_files",
32523324
],
3253-
copts = ["-fexceptions"],
3325+
copts = select({
3326+
"@config//:is_posix": [ "-fexceptions" ],
3327+
"//conditions:default": [],
3328+
}),
32543329
features = ["-use_header_modules"],
32553330
linkopts = select({
32563331
"@config//:is_android": ["-llog"],
@@ -3267,7 +3342,7 @@ v8_binary(
32673342
"@config//:is_android": ["-llog"],
32683343
"//conditions:default": [],
32693344
}),
3270-
noicu_deps = [":noicu/v8_libshared"],
3345+
noicu_deps = [":v8_libshared_noicu"],
32713346
)
32723347

32733348
v8_binary(
@@ -3283,6 +3358,11 @@ v8_binary_non_pointer_compression(
32833358
binary = "torque",
32843359
)
32853360

3361+
alias(
3362+
name = "v8ci",
3363+
actual = "icu/v8",
3364+
)
3365+
32863366
# =================================================
32873367
# Tests
32883368
# =================================================

0 commit comments

Comments
 (0)