@@ -299,7 +299,7 @@ declare_args() {
299
299
300
300
# Enable the experimental V8 sandbox.
301
301
# Sets -DV8_SANDBOX.
302
- v8_enable_sandbox = false
302
+ v8_enable_sandbox = " "
303
303
304
304
# Enable external pointer sandboxing. Requires v8_enable_sandbox.
305
305
# Sets -DV8_SANDBOXED_EXTERNAL_POINRTERS.
@@ -421,13 +421,10 @@ if (v8_enable_short_builtin_calls == "") {
421
421
v8_current_cpu == " x64" || (! is_android && v8_current_cpu == " arm64" )
422
422
}
423
423
if (v8_enable_external_code_space == " " ) {
424
- # Can't use !is_android here, because Torque toolchain is affected by
425
- # the value of this flag but actually runs on the host side.
426
424
v8_enable_external_code_space =
427
425
v8 _enable_pointer_compression &&
428
426
(v8_current_cpu == " x64" ||
429
- (target_os != " android" && target_os != " fuchsia" &&
430
- v8_current_cpu == " arm64" ))
427
+ (target_os != " fuchsia" && v8_current_cpu == " arm64" ))
431
428
}
432
429
if (v8_enable_maglev == " " ) {
433
430
v8_enable_maglev = v8_current_cpu == " x64" && v8 _enable_pointer_compression
@@ -474,7 +471,8 @@ if (v8_multi_arch_build &&
474
471
# Check if it is a Chromium build and activate PAC/BTI if needed.
475
472
# TODO(cavalcantii ): have a single point of integration with PAC/BTI flags.
476
473
if (build_with_chromium && v8_current_cpu == " arm64" &&
477
- arm_control_flow_integrity == " standard" ) {
474
+ (arm_control_flow_integrity == " standard" ||
475
+ arm_control_flow_integrity == " pac" )) {
478
476
v8_control_flow_integrity = true
479
477
}
480
478
@@ -492,10 +490,12 @@ if (v8_enable_shared_ro_heap == "") {
492
490
v8 _enable_pointer_compression_shared_cage
493
491
}
494
492
495
- # Enable the v8 sandbox on 64-bit Chromium builds.
496
- if (build_with_chromium && v8_enable_pointer_compression_shared_cage &&
497
- v8_enable_external_code_space ) {
498
- v8_enable_sandbox = true
493
+ if (v8_enable_sandbox == " " ) {
494
+ # TODO(saelo, v8:11880) remove dependency on v8_enable_external_code_space
495
+ # once that is enabled everywhere by default.
496
+ v8_enable_sandbox =
497
+ build_with_chromium && v8 _enable_pointer_compression_shared_cage &&
498
+ v8 _enable_external_code_space
499
499
}
500
500
501
501
# Enable all available sandbox features if sandbox future is enabled.
@@ -1044,8 +1044,8 @@ config("toolchain") {
1044
1044
defines += [ " V8_TARGET_ARCH_ARM64" ]
1045
1045
if (current_cpu == " arm64" ) {
1046
1046
# This will enable PAC+BTI in code generation and static code.
1047
- if (v8_control_flow_integrity ) {
1048
- # TODO(v8:10026): Enable this in src/build.
1047
+ if (v8_control_flow_integrity &&
1048
+ ( ! build_with_chromium || arm_control_flow_integrity == " standard " )) {
1049
1049
cflags += [ " -mbranch-protection=standard" ]
1050
1050
asmflags = [ " -mmark-bti-property" ]
1051
1051
} else if (build_with_chromium && arm_control_flow_integrity == " pac" ) {
@@ -1179,6 +1179,9 @@ config("toolchain") {
1179
1179
1180
1180
# FIXME: Temporarily use MIPS macro for the building.
1181
1181
defines += [ " CAN_USE_FPU_INSTRUCTIONS" ]
1182
+ if (target_is_simulator ) {
1183
+ defines += [ " CAN_USE_RVV_INSTRUCTIONS" ]
1184
+ }
1182
1185
}
1183
1186
1184
1187
if (v8_current_cpu == " x86" ) {
@@ -2778,6 +2781,7 @@ v8_header_set("v8_internal_headers") {
2778
2781
" src/compiler/backend/spill-placer.h" ,
2779
2782
" src/compiler/backend/unwinding-info-writer.h" ,
2780
2783
" src/compiler/basic-block-instrumentor.h" ,
2784
+ " src/compiler/branch-condition-duplicator.h" ,
2781
2785
" src/compiler/branch-elimination.h" ,
2782
2786
" src/compiler/bytecode-analysis.h" ,
2783
2787
" src/compiler/bytecode-graph-builder.h" ,
@@ -2963,7 +2967,6 @@ v8_header_set("v8_internal_headers") {
2963
2967
" src/heap/allocation-result.h" ,
2964
2968
" src/heap/allocation-stats.h" ,
2965
2969
" src/heap/array-buffer-sweeper.h" ,
2966
- " src/heap/barrier.h" ,
2967
2970
" src/heap/base-space.h" ,
2968
2971
" src/heap/basic-memory-chunk.h" ,
2969
2972
" src/heap/code-object-registry.h" ,
@@ -2978,6 +2981,7 @@ v8_header_set("v8_internal_headers") {
2978
2981
" src/heap/cppgc-js/cpp-marking-state-inl.h" ,
2979
2982
" src/heap/cppgc-js/cpp-marking-state.h" ,
2980
2983
" src/heap/cppgc-js/cpp-snapshot.h" ,
2984
+ " src/heap/cppgc-js/unified-heap-marking-state-inl.h" ,
2981
2985
" src/heap/cppgc-js/unified-heap-marking-state.h" ,
2982
2986
" src/heap/cppgc-js/unified-heap-marking-verifier.h" ,
2983
2987
" src/heap/cppgc-js/unified-heap-marking-visitor.h" ,
@@ -2993,6 +2997,7 @@ v8_header_set("v8_internal_headers") {
2993
2997
" src/heap/free-list-inl.h" ,
2994
2998
" src/heap/free-list.h" ,
2995
2999
" src/heap/gc-idle-time-handler.h" ,
3000
+ " src/heap/gc-tracer-inl.h" ,
2996
3001
" src/heap/gc-tracer.h" ,
2997
3002
" src/heap/heap-allocator-inl.h" ,
2998
3003
" src/heap/heap-allocator.h" ,
@@ -3390,6 +3395,7 @@ v8_header_set("v8_internal_headers") {
3390
3395
" src/snapshot/context-deserializer.h" ,
3391
3396
" src/snapshot/context-serializer.h" ,
3392
3397
" src/snapshot/deserializer.h" ,
3398
+ " src/snapshot/embedded/embedded-data-inl.h" ,
3393
3399
" src/snapshot/embedded/embedded-data.h" ,
3394
3400
" src/snapshot/embedded/embedded-file-writer-interface.h" ,
3395
3401
" src/snapshot/object-deserializer.h" ,
@@ -3479,6 +3485,7 @@ v8_header_set("v8_internal_headers") {
3479
3485
" src/maglev/maglev-graph-labeller.h" ,
3480
3486
" src/maglev/maglev-graph-printer.h" ,
3481
3487
" src/maglev/maglev-graph-processor.h" ,
3488
+ " src/maglev/maglev-graph-verifier.h" ,
3482
3489
" src/maglev/maglev-graph.h" ,
3483
3490
" src/maglev/maglev-interpreter-frame-state.h" ,
3484
3491
" src/maglev/maglev-ir.h" ,
@@ -3510,6 +3517,7 @@ v8_header_set("v8_internal_headers") {
3510
3517
" src/wasm/baseline/liftoff-assembler.h" ,
3511
3518
" src/wasm/baseline/liftoff-compiler.h" ,
3512
3519
" src/wasm/baseline/liftoff-register.h" ,
3520
+ " src/wasm/canonical-types.h" ,
3513
3521
" src/wasm/code-space-access.h" ,
3514
3522
" src/wasm/compilation-environment.h" ,
3515
3523
" src/wasm/decoder.h" ,
@@ -3890,6 +3898,7 @@ v8_compiler_sources = [
3890
3898
" src/compiler/backend/register-allocator.cc" ,
3891
3899
" src/compiler/backend/spill-placer.cc" ,
3892
3900
" src/compiler/basic-block-instrumentor.cc" ,
3901
+ " src/compiler/branch-condition-duplicator.cc" ,
3893
3902
" src/compiler/branch-elimination.cc" ,
3894
3903
" src/compiler/bytecode-analysis.cc" ,
3895
3904
" src/compiler/bytecode-graph-builder.cc" ,
@@ -4227,6 +4236,7 @@ v8_source_set("v8_base_without_compiler") {
4227
4236
" src/heap/concurrent-marking.cc" ,
4228
4237
" src/heap/cppgc-js/cpp-heap.cc" ,
4229
4238
" src/heap/cppgc-js/cpp-snapshot.cc" ,
4239
+ " src/heap/cppgc-js/unified-heap-marking-state.cc" ,
4230
4240
" src/heap/cppgc-js/unified-heap-marking-verifier.cc" ,
4231
4241
" src/heap/cppgc-js/unified-heap-marking-visitor.cc" ,
4232
4242
" src/heap/embedder-tracing.cc" ,
@@ -4445,6 +4455,7 @@ v8_source_set("v8_base_without_compiler") {
4445
4455
" src/runtime/runtime-proxy.cc" ,
4446
4456
" src/runtime/runtime-regexp.cc" ,
4447
4457
" src/runtime/runtime-scopes.cc" ,
4458
+ " src/runtime/runtime-shadow-realm.cc" ,
4448
4459
" src/runtime/runtime-strings.cc" ,
4449
4460
" src/runtime/runtime-symbol.cc" ,
4450
4461
" src/runtime/runtime-test.cc" ,
@@ -4535,6 +4546,7 @@ v8_source_set("v8_base_without_compiler") {
4535
4546
" src/trap-handler/handler-shared.cc" ,
4536
4547
" src/wasm/baseline/liftoff-assembler.cc" ,
4537
4548
" src/wasm/baseline/liftoff-compiler.cc" ,
4549
+ " src/wasm/canonical-types.cc" ,
4538
4550
" src/wasm/code-space-access.cc" ,
4539
4551
" src/wasm/function-body-decoder.cc" ,
4540
4552
" src/wasm/function-compiler.cc" ,
@@ -5185,7 +5197,6 @@ v8_component("v8_libbase") {
5185
5197
" src/base/template-utils.h" ,
5186
5198
" src/base/threaded-list.h" ,
5187
5199
" src/base/timezone-cache.h" ,
5188
- " src/base/type-traits.h" ,
5189
5200
" src/base/utils/random-number-generator.cc" ,
5190
5201
" src/base/utils/random-number-generator.h" ,
5191
5202
" src/base/v8-fallthrough.h" ,
@@ -5603,7 +5614,6 @@ v8_source_set("cppgc_base") {
5603
5614
" src/heap/cppgc/compactor.h" ,
5604
5615
" src/heap/cppgc/concurrent-marker.cc" ,
5605
5616
" src/heap/cppgc/concurrent-marker.h" ,
5606
- " src/heap/cppgc/default-platform.cc" ,
5607
5617
" src/heap/cppgc/explicit-management.cc" ,
5608
5618
" src/heap/cppgc/free-list.cc" ,
5609
5619
" src/heap/cppgc/free-list.h" ,
0 commit comments