@@ -1460,6 +1460,10 @@ config("toolchain") {
1460
1460
" /wd4715" , # 'function' : not all control paths return a value'
1461
1461
# MSVC does not analyze switch (enum) for completeness.
1462
1462
]
1463
+
1464
+ # TODO(https://crbug.com/1377771): Keep MSVC on C++17 until source code is
1465
+ # made compatible with C++20.
1466
+ cflags_cc = [ " /std:c++17" ]
1463
1467
}
1464
1468
1465
1469
if (! is_clang && ! is_win ) {
@@ -1476,6 +1480,11 @@ config("toolchain") {
1476
1480
# Disable gcc warnings for using enum constant in boolean context.
1477
1481
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97266
1478
1482
" -Wno-int-in-bool-context" ,
1483
+
1484
+ # Disable gcc deprecation warnings, which are firing on implicit capture
1485
+ # of `this` in capture-by-value lambdas and preventing a build roll which
1486
+ # enables C++20 (see https://crbug.com/1374227).
1487
+ " -Wno-deprecated" ,
1479
1488
]
1480
1489
}
1481
1490
@@ -2268,6 +2277,8 @@ action("v8_dump_build_config") {
2268
2277
" v8_current_cpu=\" $v8_current_cpu \" " ,
2269
2278
" v8_enable_atomic_object_field_writes=" +
2270
2279
" $v8_enable_atomic_object_field_writes " ,
2280
+ " v8_enable_conservative_stack_scanning=" +
2281
+ " $v8_enable_conservative_stack_scanning " ,
2271
2282
" v8_enable_concurrent_marking=$v8_enable_concurrent_marking " ,
2272
2283
" v8_enable_single_generation=$v8_enable_single_generation " ,
2273
2284
" v8_enable_i18n_support=$v8_enable_i18n_support " ,
@@ -2803,6 +2814,7 @@ v8_header_set("v8_internal_headers") {
2803
2814
" src/compiler/all-nodes.h" ,
2804
2815
" src/compiler/allocation-builder-inl.h" ,
2805
2816
" src/compiler/allocation-builder.h" ,
2817
+ " src/compiler/backend/bitcast-elider.h" ,
2806
2818
" src/compiler/backend/code-generator-impl.h" ,
2807
2819
" src/compiler/backend/code-generator.h" ,
2808
2820
" src/compiler/backend/frame-elider.h" ,
@@ -2923,16 +2935,18 @@ v8_header_set("v8_internal_headers") {
2923
2935
" src/compiler/turboshaft/graph-builder.h" ,
2924
2936
" src/compiler/turboshaft/graph-visualizer.h" ,
2925
2937
" src/compiler/turboshaft/graph.h" ,
2926
- " src/compiler/turboshaft/machine-optimization-assembler .h" ,
2938
+ " src/compiler/turboshaft/machine-optimization-reducer .h" ,
2927
2939
" src/compiler/turboshaft/operation-matching.h" ,
2928
2940
" src/compiler/turboshaft/operations.h" ,
2929
2941
" src/compiler/turboshaft/optimization-phase.h" ,
2930
2942
" src/compiler/turboshaft/recreate-schedule.h" ,
2931
2943
" src/compiler/turboshaft/representations.h" ,
2944
+ " src/compiler/turboshaft/select-lowering-reducer.h" ,
2932
2945
" src/compiler/turboshaft/sidetable.h" ,
2933
2946
" src/compiler/turboshaft/simplify-tf-loops.h" ,
2947
+ " src/compiler/turboshaft/snapshot-table.h" ,
2934
2948
" src/compiler/turboshaft/utils.h" ,
2935
- " src/compiler/turboshaft/value-numbering-assembler .h" ,
2949
+ " src/compiler/turboshaft/value-numbering-reducer .h" ,
2936
2950
" src/compiler/type-cache.h" ,
2937
2951
" src/compiler/type-narrowing-reducer.h" ,
2938
2952
" src/compiler/typed-optimization.h" ,
@@ -3024,6 +3038,7 @@ v8_header_set("v8_internal_headers") {
3024
3038
" src/handles/maybe-handles.h" ,
3025
3039
" src/handles/persistent-handles.h" ,
3026
3040
" src/handles/shared-object-conveyor-handles.h" ,
3041
+ " src/handles/traced-handles.h" ,
3027
3042
" src/heap/allocation-observer.h" ,
3028
3043
" src/heap/allocation-result.h" ,
3029
3044
" src/heap/allocation-stats.h" ,
@@ -3422,6 +3437,7 @@ v8_header_set("v8_internal_headers") {
3422
3437
" src/profiler/heap-profiler.h" ,
3423
3438
" src/profiler/heap-snapshot-generator-inl.h" ,
3424
3439
" src/profiler/heap-snapshot-generator.h" ,
3440
+ " src/profiler/output-stream-writer.h" ,
3425
3441
" src/profiler/profile-generator-inl.h" ,
3426
3442
" src/profiler/profile-generator.h" ,
3427
3443
" src/profiler/profiler-listener.h" ,
@@ -4041,6 +4057,7 @@ v8_compiler_sources = [
4041
4057
" src/compiler/access-info.cc" ,
4042
4058
" src/compiler/add-type-assertions-reducer.cc" ,
4043
4059
" src/compiler/all-nodes.cc" ,
4060
+ " src/compiler/backend/bitcast-elider.cc" ,
4044
4061
" src/compiler/backend/code-generator.cc" ,
4045
4062
" src/compiler/backend/frame-elider.cc" ,
4046
4063
" src/compiler/backend/gap-resolver.cc" ,
@@ -4429,6 +4446,7 @@ v8_source_set("v8_base_without_compiler") {
4429
4446
" src/handles/local-handles.cc" ,
4430
4447
" src/handles/persistent-handles.cc" ,
4431
4448
" src/handles/shared-object-conveyor-handles.cc" ,
4449
+ " src/handles/traced-handles.cc" ,
4432
4450
" src/heap/allocation-observer.cc" ,
4433
4451
" src/heap/array-buffer-sweeper.cc" ,
4434
4452
" src/heap/base-space.cc" ,
@@ -4737,6 +4755,7 @@ v8_source_set("v8_base_without_compiler") {
4737
4755
4738
4756
if (v8_enable_maglev ) {
4739
4757
sources += [
4758
+ " src/maglev/maglev-assembler.cc" ,
4740
4759
" src/maglev/maglev-code-generator.cc" ,
4741
4760
" src/maglev/maglev-compilation-info.cc" ,
4742
4761
" src/maglev/maglev-compilation-unit.cc" ,
@@ -5745,31 +5764,31 @@ v8_source_set("v8_heap_base") {
5745
5764
5746
5765
if (is_clang || ! is_win ) {
5747
5766
if (current_cpu == " x64" ) {
5748
- sources += [ " src/heap/base/asm/x64/push_registers_asm .cc" ]
5767
+ sources += [ " src/heap/base/asm/x64/save_registers_asm .cc" ]
5749
5768
} else if (current_cpu == " x86" ) {
5750
- sources += [ " src/heap/base/asm/ia32/push_registers_asm .cc" ]
5769
+ sources += [ " src/heap/base/asm/ia32/save_registers_asm .cc" ]
5751
5770
} else if (current_cpu == " arm" ) {
5752
- sources += [ " src/heap/base/asm/arm/push_registers_asm .cc" ]
5771
+ sources += [ " src/heap/base/asm/arm/save_registers_asm .cc" ]
5753
5772
} else if (current_cpu == " arm64" ) {
5754
- sources += [ " src/heap/base/asm/arm64/push_registers_asm .cc" ]
5773
+ sources += [ " src/heap/base/asm/arm64/save_registers_asm .cc" ]
5755
5774
} else if (current_cpu == " ppc64" ) {
5756
- sources += [ " src/heap/base/asm/ppc/push_registers_asm .cc" ]
5775
+ sources += [ " src/heap/base/asm/ppc/save_registers_asm .cc" ]
5757
5776
} else if (current_cpu == " s390x" ) {
5758
- sources += [ " src/heap/base/asm/s390/push_registers_asm .cc" ]
5777
+ sources += [ " src/heap/base/asm/s390/save_registers_asm .cc" ]
5759
5778
} else if (current_cpu == " mips64el" ) {
5760
- sources += [ " src/heap/base/asm/mips64/push_registers_asm .cc" ]
5779
+ sources += [ " src/heap/base/asm/mips64/save_registers_asm .cc" ]
5761
5780
} else if (current_cpu == " loong64" ) {
5762
- sources += [ " src/heap/base/asm/loong64/push_registers_asm .cc" ]
5781
+ sources += [ " src/heap/base/asm/loong64/save_registers_asm .cc" ]
5763
5782
} else if (current_cpu == " riscv64" || current_cpu == " riscv32" ) {
5764
- sources += [ " src/heap/base/asm/riscv/push_registers_asm .cc" ]
5783
+ sources += [ " src/heap/base/asm/riscv/save_registers_asm .cc" ]
5765
5784
}
5766
5785
} else if (is_win ) {
5767
5786
if (current_cpu == " x64" ) {
5768
- sources += [ " src/heap/base/asm/x64/push_registers_masm .asm" ]
5787
+ sources += [ " src/heap/base/asm/x64/save_registers_masm .asm" ]
5769
5788
} else if (current_cpu == " x86" ) {
5770
- sources += [ " src/heap/base/asm/ia32/push_registers_masm .asm" ]
5789
+ sources += [ " src/heap/base/asm/ia32/save_registers_masm .asm" ]
5771
5790
} else if (current_cpu == " arm64" ) {
5772
- sources += [ " src/heap/base/asm/arm64/push_registers_masm .S" ]
5791
+ sources += [ " src/heap/base/asm/arm64/save_registers_masm .S" ]
5773
5792
}
5774
5793
}
5775
5794
0 commit comments