Skip to content

Commit ff054d8

Browse files
deps: update V8 to 14.4.20
1 parent b470ba0 commit ff054d8

File tree

1,056 files changed

+61535
-18717
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,056 files changed

+61535
-18717
lines changed

deps/v8/.clang-format

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
BasedOnStyle: Google
44
DerivePointerAlignment: false
55
MaxEmptyLinesToKeep: 1
6+
SpaceBeforeCaseColon: false
67
IfMacros:
78
- IF
89
- IF_NOT
910
Macros:
1011
# Make clang-format think TurboShaft `ELSE` expands to just `else`, so that
1112
# it formats well alongside `if`
1213
- ELSE=else
14+
- CASE_=case
1315
- FOR_WITH_HANDLE_SCOPE(isolate, init, loop_var, limit_check, increment)=for(init; loop_var; increment)
1416
- WHILE_WITH_HANDLE_SCOPE(isolate, limit_check)=while(limit_check)
1517
StatementMacros:

deps/v8/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
.cache
2727
.ccls-cache
2828
.clangd
29+
.clang-format-cache
2930
.cpplint-cache
3031
.cproject
3132
.DS_Store
@@ -153,6 +154,7 @@ bazel-bin
153154
bazel-out
154155
bazel-testlogs
155156
bazel-v8
157+
launch.json
156158
!/third_party/jinja2
157159
!/third_party/markupsafe
158160
!/third_party/zlib

deps/v8/AUTHORS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ Kang-Hao (Kenny) Lu <[email protected]>
188188
Karl Skomski <[email protected]>
189189
Kasper Lund <[email protected]>
190190
Keith Smiley <[email protected]>
191+
Kenta Moriuchi <[email protected]>
191192
Kevin Gibbons <[email protected]>
193+
Kevin Wang <[email protected]>
192194
Keyhan Vakil <[email protected]>
193195
Kris Selden <[email protected]>
194196
Krishna Ravishankar <[email protected]>
@@ -260,6 +262,7 @@ Refael Ackermann <[email protected]>
260262
Rene Rebe <[email protected]>
261263
Reza Yazdani <[email protected]>
262264
Rick Waldron <[email protected]>
265+
Riya Amemiya <[email protected]>
263266
264267
Robert Meijer <[email protected]>
265268
Robert Mustacchi <[email protected]>
@@ -346,3 +349,8 @@ Ryuhei Shima <[email protected]>
346349
Domagoj Stolfa <[email protected]>
347350
Zhijin Zeng <[email protected]>
348351
王家睿 <[email protected]>
352+
Julian Gremminger <[email protected]>
353+
Liam Wachter <[email protected]>
354+
Flavio Toffalini <[email protected]>
355+
Mathias Payer <[email protected]>
356+
Christian Wressnegger <[email protected]>

deps/v8/BUILD.bazel

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2923,6 +2923,7 @@ filegroup(
29232923
"src/maglev/maglev-pipeline-statistics.h",
29242924
"src/maglev/maglev-post-hoc-optimizations-processors.h",
29252925
"src/maglev/maglev-pre-regalloc-codegen-processors.h",
2926+
"src/maglev/maglev-range-analysis.h",
29262927
"src/maglev/maglev-reducer-inl.h",
29272928
"src/maglev/maglev-reducer.h",
29282929
"src/maglev/maglev-regalloc-data.h",
@@ -3246,8 +3247,8 @@ filegroup(
32463247
"src/compiler/backend/spill-placer.cc",
32473248
"src/compiler/backend/spill-placer.h",
32483249
"src/compiler/backend/unwinding-info-writer.h",
3249-
"src/compiler/basic-block-instrumentor.cc",
3250-
"src/compiler/basic-block-instrumentor.h",
3250+
"src/compiler/basic-block-call-graph-profiler.cc",
3251+
"src/compiler/basic-block-call-graph-profiler.h",
32513252
"src/compiler/branch-elimination.cc",
32523253
"src/compiler/branch-elimination.h",
32533254
"src/compiler/bytecode-analysis.cc",
@@ -3450,6 +3451,7 @@ filegroup(
34503451
"src/compiler/turboshaft/build-graph-phase.h",
34513452
"src/compiler/turboshaft/builtin-call-descriptors.h",
34523453
"src/compiler/turboshaft/builtin-compiler.h",
3454+
"src/compiler/turboshaft/call-descriptors-util.h",
34533455
"src/compiler/turboshaft/csa-branch-elimination-phase.cc",
34543456
"src/compiler/turboshaft/csa-branch-elimination-phase.h",
34553457
"src/compiler/turboshaft/csa-early-machine-optimization-phase.cc",
@@ -3513,6 +3515,8 @@ filegroup(
35133515
"src/compiler/turboshaft/machine-lowering-phase.h",
35143516
"src/compiler/turboshaft/machine-lowering-reducer-inl.h",
35153517
"src/compiler/turboshaft/turbolev-early-lowering-reducer-inl.h",
3518+
"src/compiler/turboshaft/turbolev-frontend-pipeline.cc",
3519+
"src/compiler/turboshaft/turbolev-frontend-pipeline.h",
35163520
"src/compiler/turboshaft/turbolev-graph-builder.cc",
35173521
"src/compiler/turboshaft/turbolev-graph-builder.h",
35183522
"src/compiler/turboshaft/machine-optimization-reducer.h",
@@ -3565,6 +3569,7 @@ filegroup(
35653569
"src/compiler/turboshaft/typer.h",
35663570
"src/compiler/turboshaft/types.cc",
35673571
"src/compiler/turboshaft/types.h",
3572+
"src/compiler/turboshaft/typeswitch.h",
35683573
"src/compiler/turboshaft/undef-assembler-macros.inc",
35693574
"src/compiler/turboshaft/uniform-reducer-adapter.h",
35703575
"src/compiler/turboshaft/use-map.cc",
@@ -3673,8 +3678,6 @@ filegroup(
36733678
"src/compiler/turboshaft/wasm-shuffle-reducer.h",
36743679
"src/compiler/turboshaft/wasm-simd-phase.cc",
36753680
"src/compiler/turboshaft/wasm-simd-phase.h",
3676-
"src/compiler/turboshaft/wasm-type-cast-rtt-optimization-helpers.cc",
3677-
"src/compiler/turboshaft/wasm-type-cast-rtt-optimization-helpers.h",
36783681
"src/compiler/wasm-address-reassociation.cc",
36793682
"src/compiler/wasm-address-reassociation.h",
36803683
"src/compiler/wasm-call-descriptors.cc",
@@ -3734,6 +3737,7 @@ filegroup(
37343737
"src/maglev/maglev-ir.h",
37353738
"src/maglev/maglev-ir-inl.h",
37363739
"src/maglev/maglev-kna-processor.h",
3740+
"src/maglev/maglev-range-analysis.h",
37373741
"src/maglev/maglev-reducer-inl.h",
37383742
"src/maglev/maglev-reducer.h",
37393743
"src/maglev/maglev-register-frame-array.h",

deps/v8/BUILD.gn

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ declare_args() {
7777
# Sets the number of internal fields on array buffer view objects.
7878
v8_array_buffer_view_internal_field_count = 0
7979

80-
# Sets -DENABLE_GDB_JIT_INTERFACE.
81-
v8_enable_gdbjit = ""
82-
8380
# Sets -DENABLE_VTUNE_JIT_INTERFACE.
8481
v8_enable_vtunejit = false
8582

@@ -280,9 +277,11 @@ declare_args() {
280277
# Controls the threshold for on-heap/off-heap Typed Arrays.
281278
v8_typed_array_max_size_in_heap = 64
282279

283-
v8_enable_gdbjit = ((v8_current_cpu == "x86" || v8_current_cpu == "x64") &&
284-
(is_linux || is_chromeos || is_mac)) ||
285-
(v8_current_cpu == "ppc64" && (is_linux || is_chromeos))
280+
# Sets -DENABLE_GDB_JIT_INTERFACE.
281+
v8_enable_gdbjit =
282+
is_debug && (((v8_current_cpu == "x86" || v8_current_cpu == "x64") &&
283+
(is_linux || is_chromeos || is_mac)) ||
284+
(v8_current_cpu == "ppc64" && (is_linux || is_chromeos)))
286285

287286
# Check that each header can be included in isolation (requires also
288287
# setting the "check_v8_header_includes" gclient variable to run a
@@ -494,14 +493,15 @@ declare_args() {
494493

495494
# Derived defaults.
496495
if (cppgc_enable_verify_heap == "") {
497-
cppgc_enable_verify_heap = v8_enable_debugging_features || v8_dcheck_always_on
496+
cppgc_enable_verify_heap =
497+
v8_enable_verification_features || v8_dcheck_always_on
498498
}
499499
if (v8_enable_verify_heap == "") {
500-
v8_enable_verify_heap = v8_enable_debugging_features
500+
v8_enable_verify_heap = v8_enable_verification_features
501501
}
502502
if (v8_enable_verify_write_barriers == "") {
503503
v8_enable_verify_write_barriers =
504-
(v8_enable_debugging_features || v8_dcheck_always_on) &&
504+
(v8_enable_verification_features || v8_dcheck_always_on) &&
505505
!v8_disable_write_barriers
506506
}
507507
if (v8_enable_object_print == "") {
@@ -517,18 +517,19 @@ if (v8_enable_trace_maps == "") {
517517
v8_enable_trace_maps = v8_enable_debugging_features
518518
}
519519
if (v8_enable_test_features == "") {
520-
v8_enable_test_features = v8_enable_debugging_features || v8_dcheck_always_on
520+
v8_enable_test_features =
521+
v8_enable_verification_features || v8_dcheck_always_on
521522
}
522523
if (v8_enable_v8_checks == "") {
523-
v8_enable_v8_checks = v8_enable_debugging_features
524+
v8_enable_v8_checks = v8_enable_verification_features
524525
}
525526
if (v8_enable_memory_accounting_checks == "") {
526527
v8_enable_memory_accounting_checks =
527-
v8_enable_debugging_features || v8_dcheck_always_on
528+
v8_enable_verification_features || v8_dcheck_always_on
528529
}
529530
if (v8_enable_heap_snapshot_verify == "") {
530531
v8_enable_heap_snapshot_verify =
531-
v8_enable_debugging_features || v8_dcheck_always_on
532+
v8_enable_verification_features || v8_dcheck_always_on
532533
}
533534
if (v8_enable_snapshot_code_comments) {
534535
assert(v8_code_comments == true || v8_code_comments == "",
@@ -538,7 +539,7 @@ if (v8_enable_snapshot_code_comments) {
538539
v8_code_comments = v8_enable_debugging_features
539540
}
540541
if (v8_enable_debug_code == "") {
541-
v8_enable_debug_code = v8_enable_debugging_features || v8_dcheck_always_on
542+
v8_enable_debug_code = v8_enable_verification_features || v8_dcheck_always_on
542543
}
543544
if (v8_enable_snapshot_native_code_counters == "") {
544545
v8_enable_snapshot_native_code_counters = v8_enable_debugging_features
@@ -651,9 +652,9 @@ assert(!v8_enable_trace_ignition || v8_enable_trace_unoptimized,
651652
assert(!v8_enable_trace_baseline_exec || v8_enable_trace_unoptimized,
652653
"Baseline tracing requires unoptimized tracing to be enabled.")
653654
assert(
654-
v8_enable_debugging_features == true || v8_dcheck_always_on ||
655+
v8_enable_verification_features == true || v8_dcheck_always_on ||
655656
!v8_enable_slow_dchecks,
656-
"v8_enable_slow_dchecks requires v8_enable_debugging_features or dcheck_always_on.")
657+
"v8_enable_slow_dchecks requires v8_enable_verification_features or dcheck_always_on.")
657658

658659
if (v8_enable_short_builtin_calls &&
659660
(!v8_enable_pointer_compression && v8_current_cpu != "x64")) {
@@ -825,7 +826,7 @@ assert(
825826
v8_random_seed = "314159265"
826827
v8_toolset_for_shell = "host"
827828

828-
is_DEBUG_defined = v8_enable_debugging_features || v8_dcheck_always_on
829+
is_DEBUG_defined = v8_enable_verification_features || v8_dcheck_always_on
829830

830831
###############################################################################
831832
# Configurations
@@ -1264,7 +1265,7 @@ config("features") {
12641265
}
12651266
if (v8_enable_debug_code) {
12661267
defines += [ "V8_ENABLE_DEBUG_CODE" ]
1267-
if (v8_enable_debugging_features) {
1268+
if (v8_enable_verification_features) {
12681269
defines += [ "V8_ENABLE_SLOW_DEBUG_CODE_BY_DEFAULT" ]
12691270
}
12701271
}
@@ -1646,7 +1647,7 @@ config("toolchain") {
16461647
# TODO(infra): Support v8_enable_prof on Windows.
16471648
# TODO(infra): Add support for compiling with simulators.
16481649

1649-
if (v8_enable_debugging_features || v8_dcheck_always_on) {
1650+
if (v8_enable_verification_features || v8_dcheck_always_on) {
16501651
defines += [ "DEBUG" ]
16511652
if (v8_enable_slow_dchecks) {
16521653
defines += [ "ENABLE_SLOW_DCHECKS" ]
@@ -2696,7 +2697,7 @@ template("run_mksnapshot") {
26962697
args += [ "--no-turbo-rewrite-far-jumps" ]
26972698
}
26982699

2699-
if (v8_enable_debugging_features && v8_enable_slow_dchecks) {
2700+
if (v8_enable_verification_features && v8_enable_slow_dchecks) {
27002701
# mksnapshot only accepts this flag if ENABLE_SLOW_DCHECKS is defined.
27012702
args += [ "--no-enable-slow-asserts" ]
27022703
}
@@ -2830,7 +2831,7 @@ if (v8_verify_builtins_compatibility) {
28302831
action("v8_dump_build_config") {
28312832
script = "tools/testrunner/utils/dump_build_config.py"
28322833
outputs = [ "$root_out_dir/v8_build_config.json" ]
2833-
is_full_debug = v8_enable_debugging_features && !v8_optimized_debug
2834+
is_full_debug = v8_enable_verification_features && !v8_optimized_debug
28342835

28352836
arch = v8_target_cpu
28362837
if (v8_target_cpu == "x86") {
@@ -2915,6 +2916,7 @@ action("v8_dump_build_config") {
29152916
"v8_cfi=$v8_control_flow_integrity",
29162917
"v8_current_cpu=\"$v8_current_cpu\"",
29172918
"v8_target_cpu=\"$v8_target_cpu\"",
2919+
"verification_features=$v8_enable_verification_features",
29182920
"verify_csa=$v8_enable_verify_csa",
29192921
"verify_heap=$v8_enable_verify_heap",
29202922
"verify_predictable=$v8_enable_verify_predictable",
@@ -3553,7 +3555,7 @@ v8_header_set("v8_internal_headers") {
35533555
"src/compiler/backend/register-allocator.h",
35543556
"src/compiler/backend/spill-placer.h",
35553557
"src/compiler/backend/unwinding-info-writer.h",
3556-
"src/compiler/basic-block-instrumentor.h",
3558+
"src/compiler/basic-block-call-graph-profiler.h",
35573559
"src/compiler/branch-elimination.h",
35583560
"src/compiler/bytecode-analysis.h",
35593561
"src/compiler/bytecode-graph-builder.h",
@@ -3663,6 +3665,7 @@ v8_header_set("v8_internal_headers") {
36633665
"src/compiler/turboshaft/branch-elimination-reducer.h",
36643666
"src/compiler/turboshaft/build-graph-phase.h",
36653667
"src/compiler/turboshaft/builtin-call-descriptors.h",
3668+
"src/compiler/turboshaft/call-descriptors-util.h",
36663669
"src/compiler/turboshaft/code-elimination-and-simplification-phase.h",
36673670
"src/compiler/turboshaft/copying-phase.h",
36683671
"src/compiler/turboshaft/csa-branch-elimination-phase.h",
@@ -3730,6 +3733,7 @@ v8_header_set("v8_internal_headers") {
37303733
"src/compiler/turboshaft/string-view.h",
37313734
"src/compiler/turboshaft/tracing.h",
37323735
"src/compiler/turboshaft/turbolev-early-lowering-reducer-inl.h",
3736+
"src/compiler/turboshaft/turbolev-frontend-pipeline.h",
37333737
"src/compiler/turboshaft/turbolev-graph-builder.h",
37343738
"src/compiler/turboshaft/type-assertions-phase.h",
37353739
"src/compiler/turboshaft/type-inference-analysis.h",
@@ -3739,6 +3743,7 @@ v8_header_set("v8_internal_headers") {
37393743
"src/compiler/turboshaft/typed-optimizations-reducer.h",
37403744
"src/compiler/turboshaft/typer.h",
37413745
"src/compiler/turboshaft/types.h",
3746+
"src/compiler/turboshaft/typeswitch.h",
37423747
"src/compiler/turboshaft/undef-assembler-macros.inc",
37433748
"src/compiler/turboshaft/uniform-reducer-adapter.h",
37443749
"src/compiler/turboshaft/use-map.h",
@@ -4562,7 +4567,6 @@ v8_header_set("v8_internal_headers") {
45624567
"src/compiler/turboshaft/wasm-shuffle-reducer.h",
45634568
"src/compiler/turboshaft/wasm-simd-phase.h",
45644569
"src/compiler/turboshaft/wasm-turboshaft-compiler.h",
4565-
"src/compiler/turboshaft/wasm-type-cast-rtt-optimization-helpers.h",
45664570
"src/compiler/wasm-address-reassociation.h",
45674571
"src/compiler/wasm-call-descriptors.h",
45684572
"src/compiler/wasm-compiler-definitions.h",
@@ -5134,7 +5138,7 @@ v8_compiler_sources = [
51345138
"src/compiler/backend/register-allocator-verifier.cc",
51355139
"src/compiler/backend/register-allocator.cc",
51365140
"src/compiler/backend/spill-placer.cc",
5137-
"src/compiler/basic-block-instrumentor.cc",
5141+
"src/compiler/basic-block-call-graph-profiler.cc",
51385142
"src/compiler/branch-elimination.cc",
51395143
"src/compiler/bytecode-analysis.cc",
51405144
"src/compiler/bytecode-graph-builder.cc",
@@ -5259,6 +5263,7 @@ v8_compiler_sources = [
52595263
"src/compiler/turboshaft/simplify-tf-loops.cc",
52605264
"src/compiler/turboshaft/store-store-elimination-phase.cc",
52615265
"src/compiler/turboshaft/string-escape-analysis-reducer.cc",
5266+
"src/compiler/turboshaft/turbolev-frontend-pipeline.cc",
52625267
"src/compiler/turboshaft/turbolev-graph-builder.cc",
52635268
"src/compiler/turboshaft/type-assertions-phase.cc",
52645269
"src/compiler/turboshaft/type-parser.cc",
@@ -5385,7 +5390,6 @@ if (v8_enable_webassembly) {
53855390
"src/compiler/turboshaft/wasm-shuffle-reducer.cc",
53865391
"src/compiler/turboshaft/wasm-simd-phase.cc",
53875392
"src/compiler/turboshaft/wasm-turboshaft-compiler.cc",
5388-
"src/compiler/turboshaft/wasm-type-cast-rtt-optimization-helpers.cc",
53895393
"src/compiler/wasm-address-reassociation.cc",
53905394
"src/compiler/wasm-call-descriptors.cc",
53915395
"src/compiler/wasm-compiler.cc",

0 commit comments

Comments
 (0)