@@ -68,10 +68,12 @@ load(":bazel/v8-non-pointer-compression.bzl", "v8_binary_non_pointer_compression
6868# v8_control_flow_integrity
6969# v8_enable_sandbox
7070# cppgc_enable_caged_heap
71+ # cppgc_enable_api_checks
7172# cppgc_enable_check_assignments_in_prefinalizers
7273# cppgc_enable_slim_write_barrier
7374# cppgc_enable_object_names
7475# cppgc_enable_pointer_compression
76+ # cppgc_enable_slow_api_checks
7577# cppgc_enable_verify_heap
7678# cppgc_enable_young_generation
7779# v8_enable_zone_compression
@@ -148,6 +150,8 @@ v8_flag(name = "v8_enable_verify_predictable")
148150
149151v8_flag (name = "v8_enable_test_features" )
150152
153+ v8_flag (name = "v8_wasm_random_fuzzers" )
154+
151155v8_flag (
152156 name = "v8_enable_maglev" ,
153157 default = True ,
@@ -187,6 +191,14 @@ selects.config_setting_group(
187191 ],
188192)
189193
194+ selects .config_setting_group (
195+ name = "enable_maglev_riscv" ,
196+ match_all = [
197+ ":enable_maglev" ,
198+ "@v8//bazel/config:v8_target_riscv64" ,
199+ ],
200+ )
201+
190202selects .config_setting_group (
191203 name = "enable_maglev_arm" ,
192204 match_all = [
@@ -326,10 +338,10 @@ selects.config_setting_group(
326338 ],
327339)
328340
329- # Enable isolated cage if v8_enable_pointer_compression and
341+ # Enable multiple cages if v8_enable_pointer_compression and
330342# NOT v8_enable_pointer_compression_shared_cage.
331343selects .config_setting_group (
332- name = "enable_pointer_compression_isolated_cage " ,
344+ name = "enable_pointer_compression_multiple_cages " ,
333345 match_all = [
334346 ":is_v8_enable_pointer_compression" ,
335347 ":is_not_v8_enable_pointer_compression_shared_cage" ,
@@ -463,6 +475,7 @@ v8_config(
463475 "V8_ENABLE_SPARKPLUG" ,
464476 "V8_ENABLE_EXTENSIBLE_RO_SNAPSHOT" ,
465477 "V8_ENABLE_CONTINUATION_PRESERVED_EMBEDDER_DATA" ,
478+ "V8_TLS_USED_IN_LIBRARY" ,
466479 ] + select ({
467480 "@v8//bazel/config:is_debug" : [
468481 "DEBUG" ,
@@ -480,8 +493,7 @@ v8_config(
480493 ],
481494 "@v8//bazel/config:v8_target_arm64" : ["V8_TARGET_ARCH_ARM64" ],
482495 "@v8//bazel/config:v8_target_s390x" : [
483- "V8_TARGET_ARCH_S390" ,
484- "V8_TARGET_ARCH_S390X" ,
496+ "V8_TARGET_ARCH_S390X"
485497 ],
486498 "@v8//bazel/config:v8_target_riscv64" : [
487499 # NOTE: Bazel rules for riscv64 weren't tested on a real system.
@@ -525,8 +537,8 @@ v8_config(
525537 ":enable_pointer_compression_shared_cage" : [
526538 "V8_COMPRESS_POINTERS_IN_SHARED_CAGE" ,
527539 ],
528- ":enable_pointer_compression_isolated_cage " : [
529- "V8_COMPRESS_POINTERS_IN_ISOLATE_CAGE " ,
540+ ":enable_pointer_compression_multiple_cages " : [
541+ "V8_COMPRESS_POINTERS_IN_MULTIPLE_CAGES " ,
530542 ],
531543 "//conditions:default" : [],
532544 }) + select ({
@@ -837,7 +849,7 @@ filegroup(
837849 "src/base/strings.h" ,
838850 "src/base/sys-info.cc" ,
839851 "src/base/sys-info.h" ,
840- "src/base/template-meta-programming/algorithm .h" ,
852+ "src/base/template-meta-programming/common .h" ,
841853 "src/base/template-meta-programming/functional.h" ,
842854 "src/base/template-meta-programming/list.h" ,
843855 "src/base/template-meta-programming/string-literal.h" ,
@@ -1299,6 +1311,7 @@ filegroup(
12991311 "src/base/sanitizer/lsan-virtual-address-space.h" ,
13001312 "src/base/sanitizer/msan.h" ,
13011313 "src/base/sanitizer/tsan.h" ,
1314+ "src/base/sanitizer/ubsan.h" ,
13021315 "src/baseline/baseline.cc" ,
13031316 "src/baseline/baseline.h" ,
13041317 "src/baseline/baseline-assembler.h" ,
@@ -1449,6 +1462,7 @@ filegroup(
14491462 "src/common/ptr-compr.cc" ,
14501463 "src/common/ptr-compr.h" ,
14511464 "src/common/ptr-compr-inl.h" ,
1465+ "src/common/thread-local-storage.h" ,
14521466 "src/common/segmented-table.h" ,
14531467 "src/common/segmented-table-inl.h" ,
14541468 "src/common/simd128.h" ,
@@ -1674,8 +1688,13 @@ filegroup(
16741688 "src/heap/heap-controller.cc" ,
16751689 "src/heap/heap-controller.h" ,
16761690 "src/heap/heap-inl.h" ,
1691+ "src/heap/heap-layout.cc" ,
1692+ "src/heap/heap-layout.h" ,
1693+ "src/heap/heap-layout-inl.h" ,
16771694 "src/heap/heap-layout-tracer.cc" ,
16781695 "src/heap/heap-layout-tracer.h" ,
1696+ "src/heap/heap-utils.h" ,
1697+ "src/heap/heap-utils-inl.h" ,
16791698 "src/heap/heap-verifier.cc" ,
16801699 "src/heap/heap-verifier.h" ,
16811700 "src/heap/heap-write-barrier.cc" ,
@@ -1695,6 +1714,8 @@ filegroup(
16951714 "src/heap/large-spaces.h" ,
16961715 "src/heap/linear-allocation-area.h" ,
16971716 "src/heap/list.h" ,
1717+ "src/heap/live-object-range.h" ,
1718+ "src/heap/live-object-range-inl.h" ,
16981719 "src/heap/local-factory.cc" ,
16991720 "src/heap/local-factory.h" ,
17001721 "src/heap/local-factory-inl.h" ,
@@ -1735,7 +1756,6 @@ filegroup(
17351756 "src/heap/memory-chunk.cc" ,
17361757 "src/heap/memory-chunk.h" ,
17371758 "src/heap/memory-chunk-inl.h" ,
1738- "src/heap/memory-chunk-layout.cc" ,
17391759 "src/heap/memory-chunk-layout.h" ,
17401760 "src/heap/memory-measurement.cc" ,
17411761 "src/heap/memory-measurement.h" ,
@@ -1751,9 +1771,9 @@ filegroup(
17511771 "src/heap/object-lock-inl.h" ,
17521772 "src/heap/object-stats.cc" ,
17531773 "src/heap/object-stats.h" ,
1754- "src/heap/objects-visiting .cc" ,
1755- "src/heap/objects-visiting .h" ,
1756- "src/heap/objects-visiting -inl.h" ,
1774+ "src/heap/heap-visitor .cc" ,
1775+ "src/heap/heap-visitor .h" ,
1776+ "src/heap/heap-visitor -inl.h" ,
17571777 "src/heap/page-metadata.cc" ,
17581778 "src/heap/page-metadata.h" ,
17591779 "src/heap/page-metadata-inl.h" ,
@@ -1792,6 +1812,8 @@ filegroup(
17921812 "src/heap/sweeper.h" ,
17931813 "src/heap/traced-handles-marking-visitor.cc" ,
17941814 "src/heap/traced-handles-marking-visitor.h" ,
1815+ "src/heap/visit-object.cc" ,
1816+ "src/heap/visit-object.h" ,
17951817 "src/heap/weak-object-worklists.cc" ,
17961818 "src/heap/weak-object-worklists.h" ,
17971819 "src/heap/young-generation-marking-visitor.h" ,
@@ -1911,7 +1933,6 @@ filegroup(
19111933 "src/objects/backing-store.h" ,
19121934 "src/objects/bigint.cc" ,
19131935 "src/objects/bigint.h" ,
1914- "src/objects/bigint-inl.h" ,
19151936 "src/objects/bytecode-array.cc" ,
19161937 "src/objects/bytecode-array.h" ,
19171938 "src/objects/bytecode-array-inl.h" ,
@@ -2193,8 +2214,8 @@ filegroup(
21932214 "src/parsing/expression-scope.h" ,
21942215 "src/parsing/func-name-inferrer.cc" ,
21952216 "src/parsing/func-name-inferrer.h" ,
2196- "src/parsing/import-assertions .cc" ,
2197- "src/parsing/import-assertions .h" ,
2217+ "src/parsing/import-attributes .cc" ,
2218+ "src/parsing/import-attributes .h" ,
21982219 "src/parsing/keywords-gen.h" ,
21992220 "src/parsing/literal-buffer.cc" ,
22002221 "src/parsing/literal-buffer.h" ,
@@ -2291,6 +2312,8 @@ filegroup(
22912312 "src/regexp/regexp-nodes.h" ,
22922313 "src/regexp/regexp-parser.cc" ,
22932314 "src/regexp/regexp-parser.h" ,
2315+ "src/regexp/regexp-result-vector.cc" ,
2316+ "src/regexp/regexp-result-vector.h" ,
22942317 "src/regexp/regexp-stack.cc" ,
22952318 "src/regexp/regexp-stack.h" ,
22962319 "src/regexp/regexp-utils.cc" ,
@@ -2817,6 +2840,13 @@ filegroup(
28172840 "src/maglev/arm64/maglev-ir-arm64.cc" ,
28182841 ],
28192842 "//conditions:default" : [],
2843+ }) + select ({
2844+ ":enable_maglev_riscv" : [
2845+ "src/maglev/riscv/maglev-assembler-riscv-inl.h" ,
2846+ "src/maglev/riscv/maglev-assembler-riscv.cc" ,
2847+ "src/maglev/riscv/maglev-ir-riscv.cc" ,
2848+ ],
2849+ "//conditions:default" : [],
28202850 }) + select ({
28212851 ":enable_maglev_arm" : [
28222852 "src/maglev/arm/maglev-assembler-arm-inl.h" ,
@@ -2877,7 +2907,6 @@ filegroup(
28772907 "src/wasm/function-body-decoder-impl.h" ,
28782908 "src/wasm/function-compiler.cc" ,
28792909 "src/wasm/function-compiler.h" ,
2880- "src/wasm/fuzzing/random-module-generation.cc" ,
28812910 "src/wasm/fuzzing/random-module-generation.h" ,
28822911 "src/wasm/graph-builder-interface.cc" ,
28832912 "src/wasm/graph-builder-interface.h" ,
@@ -2900,7 +2929,6 @@ filegroup(
29002929 "src/wasm/object-access.h" ,
29012930 "src/wasm/pgo.cc" ,
29022931 "src/wasm/pgo.h" ,
2903- "src/wasm/serialized-signature-inl.h" ,
29042932 "src/wasm/signature-hashing.h" ,
29052933 "src/wasm/simd-shuffle.cc" ,
29062934 "src/wasm/simd-shuffle.h" ,
@@ -2983,6 +3011,11 @@ filegroup(
29833011 "src/wasm/interpreter/wasm-interpreter-simd.cc" ,
29843012 ],
29853013 "//conditions:default" : [],
3014+ }) + select ({
3015+ ":is_v8_wasm_random_fuzzers" : [
3016+ "src/wasm/fuzzing/random-module-generation.cc" ,
3017+ ],
3018+ "//conditions:default" : [],
29863019 }),
29873020)
29883021
@@ -3135,16 +3168,12 @@ filegroup(
31353168 "src/compiler/frame-states.h" ,
31363169 "src/compiler/functional-list.h" ,
31373170 "src/compiler/globals.h" ,
3138- "src/compiler/graph.cc" ,
3139- "src/compiler/graph.h" ,
31403171 "src/compiler/graph-assembler.cc" ,
31413172 "src/compiler/graph-assembler.h" ,
31423173 "src/compiler/graph-reducer.cc" ,
31433174 "src/compiler/graph-reducer.h" ,
31443175 "src/compiler/graph-trimmer.cc" ,
31453176 "src/compiler/graph-trimmer.h" ,
3146- "src/compiler/graph-visualizer.cc" ,
3147- "src/compiler/graph-visualizer.h" ,
31483177 "src/compiler/graph-zone-traits.h" ,
31493178 "src/compiler/heap-refs.cc" ,
31503179 "src/compiler/heap-refs.h" ,
@@ -3268,6 +3297,14 @@ filegroup(
32683297 "src/compiler/string-builder-optimizer.h" ,
32693298 "src/compiler/turbofan.h" ,
32703299 "src/compiler/turbofan-enabled.cc" ,
3300+ "src/compiler/turbofan-graph.cc" ,
3301+ "src/compiler/turbofan-graph.h" ,
3302+ "src/compiler/turbofan-graph-visualizer.cc" ,
3303+ "src/compiler/turbofan-graph-visualizer.h" ,
3304+ "src/compiler/turbofan-typer.cc" ,
3305+ "src/compiler/turbofan-typer.h" ,
3306+ "src/compiler/turbofan-types.cc" ,
3307+ "src/compiler/turbofan-types.h" ,
32713308 "src/compiler/turboshaft/access-builder.h" ,
32723309 "src/compiler/turboshaft/analyzer-iterator.cc" ,
32733310 "src/compiler/turboshaft/analyzer-iterator.h" ,
@@ -3282,7 +3319,6 @@ filegroup(
32823319 "src/compiler/turboshaft/build-graph-phase.cc" ,
32833320 "src/compiler/turboshaft/build-graph-phase.h" ,
32843321 "src/compiler/turboshaft/builtin-call-descriptors.h" ,
3285- "src/compiler/turboshaft/builtin-compiler.cc" ,
32863322 "src/compiler/turboshaft/builtin-compiler.h" ,
32873323 "src/compiler/turboshaft/csa-optimize-phase.cc" ,
32883324 "src/compiler/turboshaft/csa-optimize-phase.h" ,
@@ -3366,9 +3402,6 @@ filegroup(
33663402 "src/compiler/turboshaft/select-lowering-reducer.h" ,
33673403 "src/compiler/turboshaft/sidetable.cc" ,
33683404 "src/compiler/turboshaft/sidetable.h" ,
3369- "src/compiler/turboshaft/simplified-lowering-phase.cc" ,
3370- "src/compiler/turboshaft/simplified-lowering-phase.h" ,
3371- "src/compiler/turboshaft/simplified-lowering-reducer.h" ,
33723405 "src/compiler/turboshaft/simplify-tf-loops.cc" ,
33733406 "src/compiler/turboshaft/simplify-tf-loops.h" ,
33743407 "src/compiler/turboshaft/snapshot-table.h" ,
@@ -3409,10 +3442,6 @@ filegroup(
34093442 "src/compiler/type-narrowing-reducer.h" ,
34103443 "src/compiler/typed-optimization.cc" ,
34113444 "src/compiler/typed-optimization.h" ,
3412- "src/compiler/typer.cc" ,
3413- "src/compiler/typer.h" ,
3414- "src/compiler/types.cc" ,
3415- "src/compiler/types.h" ,
34163445 "src/compiler/use-info.h" ,
34173446 "src/compiler/value-numbering-reducer.cc" ,
34183447 "src/compiler/value-numbering-reducer.h" ,
@@ -3626,6 +3655,8 @@ filegroup(
36263655 "src/codegen/code-stub-assembler.h" ,
36273656 "src/codegen/define-code-stub-assembler-macros.inc" ,
36283657 "src/codegen/undef-code-stub-assembler-macros.inc" ,
3658+ "src/compiler/turboshaft/builtin-compiler.cc" ,
3659+ "src/compiler/turboshaft/builtin-compiler.h" ,
36293660 "src/heap/setup-heap-internal.cc" ,
36303661 "src/ic/accessor-assembler.cc" ,
36313662 "src/ic/accessor-assembler.h" ,
0 commit comments