@@ -1149,6 +1149,9 @@ config("features") {
11491149 if (v8_fuzzilli ) {
11501150 defines += [ " V8_FUZZILLI" ]
11511151 }
1152+ if (v8_enable_fuzztest ) {
1153+ defines += [ " V8_ENABLE_FUZZTEST" ]
1154+ }
11521155 if (v8_enable_short_builtin_calls ) {
11531156 defines += [ " V8_SHORT_BUILTIN_CALLS" ]
11541157 }
@@ -1482,7 +1485,6 @@ config("toolchain") {
14821485
14831486 if (is_clang ) {
14841487 cflags += [
1485- " -Wmissing-field-initializers" ,
14861488 " -Wunreachable-code" ,
14871489
14881490 # TODO(v8:12245): Fix shadowing instances and remove.
@@ -1496,11 +1498,6 @@ config("toolchain") {
14961498 # warning.
14971499 cflags += [ " -Wctad-maybe-unsupported" ]
14981500 }
1499-
1500- if (v8_current_cpu == " x64" || v8_current_cpu == " arm64" ||
1501- v8_current_cpu == " mips64el" || v8_current_cpu == " riscv64" ) {
1502- cflags += [ " -Wshorten-64-to-32" ]
1503- }
15041501 }
15051502
15061503 if (is_clang || ! is_win ) {
@@ -1700,20 +1697,6 @@ config("toolchain") {
17001697 # Fix build with older versions of GCC
17011698 # Ported from v8 bazel: https://crrev.com/c/3368869
17021699 " -Wno-stringop-overflow" ,
1703-
1704- # Fix a number of bogus errors with gcc12
1705- # TODO(miladfarca ): re-evaluate for future gcc upgrades
1706- # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111499
1707- " -Wno-stringop-overread" ,
1708-
1709- # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104336
1710- " -Wno-restrict" ,
1711-
1712- # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
1713- " -Wno-array-bounds" ,
1714-
1715- # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108517
1716- " -Wno-nonnull" ,
17171700 ]
17181701 }
17191702
@@ -1723,6 +1706,17 @@ config("toolchain") {
17231706 }
17241707}
17251708
1709+ config (" strict_warnings" ) {
1710+ cflags = []
1711+ if (is_clang ) {
1712+ if (v8_current_cpu == " x64" || v8_current_cpu == " arm64" ||
1713+ v8_current_cpu == " mips64el" || v8_current_cpu == " riscv64" ) {
1714+ cflags += [ " -Wshorten-64-to-32" ]
1715+ }
1716+ cflags += [ " -Wmissing-field-initializers" ]
1717+ }
1718+ }
1719+
17261720# For code that is hot during mksnapshot. In fast-mksnapshot builds, we
17271721# optimize some files even in debug builds to speed up mksnapshot times.
17281722config (" always_turbofanimize" ) {
@@ -3304,6 +3298,7 @@ v8_header_set("v8_internal_headers") {
33043298 " src/compiler/common-operator.h" ,
33053299 " src/compiler/compilation-dependencies.h" ,
33063300 " src/compiler/compiler-source-position-table.h" ,
3301+ " src/compiler/const-tracking-let-helpers.h" ,
33073302 " src/compiler/constant-folding-reducer.h" ,
33083303 " src/compiler/control-equivalence.h" ,
33093304 " src/compiler/control-flow-optimizer.h" ,
@@ -3401,7 +3396,7 @@ v8_header_set("v8_internal_headers") {
34013396 " src/compiler/turboshaft/code-elimination-and-simplification-phase.h" ,
34023397 " src/compiler/turboshaft/copying-phase.h" ,
34033398 " src/compiler/turboshaft/csa-optimize-phase.h" ,
3404- " src/compiler/turboshaft/dataview-reducer.h" ,
3399+ " src/compiler/turboshaft/dataview-lowering- reducer.h" ,
34053400 " src/compiler/turboshaft/dead-code-elimination-reducer.h" ,
34063401 " src/compiler/turboshaft/debug-feature-lowering-phase.h" ,
34073402 " src/compiler/turboshaft/debug-feature-lowering-reducer.h" ,
@@ -3411,7 +3406,7 @@ v8_header_set("v8_internal_headers") {
34113406 " src/compiler/turboshaft/deopt-data.h" ,
34123407 " src/compiler/turboshaft/duplication-optimization-reducer.h" ,
34133408 " src/compiler/turboshaft/explicit-truncation-reducer.h" ,
3414- " src/compiler/turboshaft/fast-api-call-reducer.h" ,
3409+ " src/compiler/turboshaft/fast-api-call-lowering- reducer.h" ,
34153410 " src/compiler/turboshaft/fast-hash.h" ,
34163411 " src/compiler/turboshaft/graph-builder.h" ,
34173412 " src/compiler/turboshaft/graph-visualizer.h" ,
@@ -3440,7 +3435,6 @@ v8_header_set("v8_internal_headers") {
34403435 " src/compiler/turboshaft/pretenuring-propagation-reducer.h" ,
34413436 " src/compiler/turboshaft/recreate-schedule-phase.h" ,
34423437 " src/compiler/turboshaft/recreate-schedule.h" ,
3443- " src/compiler/turboshaft/reduce-args-helper.h" ,
34443438 " src/compiler/turboshaft/reducer-traits.h" ,
34453439 " src/compiler/turboshaft/representations.h" ,
34463440 " src/compiler/turboshaft/required-optimization-reducer.h" ,
@@ -3452,7 +3446,7 @@ v8_header_set("v8_internal_headers") {
34523446 " src/compiler/turboshaft/simplify-tf-loops.h" ,
34533447 " src/compiler/turboshaft/snapshot-table-opindex.h" ,
34543448 " src/compiler/turboshaft/snapshot-table.h" ,
3455- " src/compiler/turboshaft/stack-check-reducer.h" ,
3449+ " src/compiler/turboshaft/stack-check-lowering- reducer.h" ,
34563450 " src/compiler/turboshaft/store-store-elimination-phase.h" ,
34573451 " src/compiler/turboshaft/store-store-elimination-reducer.h" ,
34583452 " src/compiler/turboshaft/structural-optimization-reducer.h" ,
@@ -3640,6 +3634,7 @@ v8_header_set("v8_internal_headers") {
36403634 " src/heap/marking.h" ,
36413635 " src/heap/memory-allocator.h" ,
36423636 " src/heap/memory-balancer.h" ,
3637+ " src/heap/memory-chunk-header.h" ,
36433638 " src/heap/memory-chunk-inl.h" ,
36443639 " src/heap/memory-chunk-layout.h" ,
36453640 " src/heap/memory-chunk.h" ,
@@ -4136,6 +4131,12 @@ v8_header_set("v8_internal_headers") {
41364131
41374132 if (v8_use_perfetto ) {
41384133 sources -= [ " //base/trace_event/common/trace_event_common.h" ]
4134+ sources += [
4135+ " src/tracing/code-data-source.h" ,
4136+ " src/tracing/code-trace-context.h" ,
4137+ " src/tracing/perfetto-logger.h" ,
4138+ " src/tracing/perfetto-utils.h" ,
4139+ ]
41394140 }
41404141
41414142 if (v8_enable_sparkplug ) {
@@ -4195,7 +4196,7 @@ v8_header_set("v8_internal_headers") {
41954196 " src/compiler/turboshaft/int64-lowering-reducer.h" ,
41964197 " src/compiler/turboshaft/wasm-assembler-helpers.h" ,
41974198 " src/compiler/turboshaft/wasm-gc-optimize-phase.h" ,
4198- " src/compiler/turboshaft/wasm-gc-type -reducer.h" ,
4199+ " src/compiler/turboshaft/wasm-gc-typed-optimization -reducer.h" ,
41994200 " src/compiler/turboshaft/wasm-js-lowering-reducer.h" ,
42004201 " src/compiler/turboshaft/wasm-load-elimination-reducer.h" ,
42014202 " src/compiler/turboshaft/wasm-lowering-phase.h" ,
@@ -4230,6 +4231,7 @@ v8_header_set("v8_internal_headers") {
42304231 " src/wasm/baseline/parallel-move.h" ,
42314232 " src/wasm/canonical-types.h" ,
42324233 " src/wasm/code-space-access.h" ,
4234+ " src/wasm/compilation-environment-inl.h" ,
42334235 " src/wasm/compilation-environment.h" ,
42344236 " src/wasm/constant-expression-interface.h" ,
42354237 " src/wasm/constant-expression.h" ,
@@ -4759,6 +4761,7 @@ v8_compiler_sources = [
47594761 " src/compiler/common-operator.cc" ,
47604762 " src/compiler/compilation-dependencies.cc" ,
47614763 " src/compiler/compiler-source-position-table.cc" ,
4764+ " src/compiler/const-tracking-let-helpers.cc" ,
47624765 " src/compiler/constant-folding-reducer.cc" ,
47634766 " src/compiler/control-equivalence.cc" ,
47644767 " src/compiler/control-flow-optimizer.cc" ,
@@ -4935,7 +4938,7 @@ if (v8_enable_webassembly) {
49354938 " src/compiler/int64-lowering.cc" ,
49364939 " src/compiler/turboshaft/int64-lowering-phase.cc" ,
49374940 " src/compiler/turboshaft/wasm-gc-optimize-phase.cc" ,
4938- " src/compiler/turboshaft/wasm-gc-type -reducer.cc" ,
4941+ " src/compiler/turboshaft/wasm-gc-typed-optimization -reducer.cc" ,
49394942 " src/compiler/turboshaft/wasm-lowering-phase.cc" ,
49404943 " src/compiler/turboshaft/wasm-optimize-phase.cc" ,
49414944 " src/compiler/turboshaft/wasm-turboshaft-compiler.cc" ,
@@ -5330,6 +5333,7 @@ v8_source_set("v8_base_without_compiler") {
53305333 " src/heap/marking.cc" ,
53315334 " src/heap/memory-allocator.cc" ,
53325335 " src/heap/memory-balancer.cc" ,
5336+ " src/heap/memory-chunk-header.cc" ,
53335337 " src/heap/memory-chunk-layout.cc" ,
53345338 " src/heap/memory-chunk.cc" ,
53355339 " src/heap/memory-measurement.cc" ,
@@ -5651,6 +5655,14 @@ v8_source_set("v8_base_without_compiler") {
56515655 }
56525656 }
56535657
5658+ if (v8_use_perfetto ) {
5659+ sources += [
5660+ " src/tracing/code-data-source.cc" ,
5661+ " src/tracing/perfetto-logger.cc" ,
5662+ " src/tracing/perfetto-utils.cc" ,
5663+ ]
5664+ }
5665+
56545666 if (v8_enable_webassembly ) {
56555667 sources += [
56565668 # ## gcmole(all) ###
@@ -5706,6 +5718,7 @@ v8_source_set("v8_base_without_compiler") {
57065718 " src/wasm/wasm-serialization.cc" ,
57075719 " src/wasm/wasm-subtyping.cc" ,
57085720 " src/wasm/well-known-imports.cc" ,
5721+ " src/wasm/wrappers.cc" ,
57095722 ]
57105723 }
57115724
@@ -8131,14 +8144,15 @@ if (!build_with_chromium && v8_use_perfetto) {
81318144 " //third_party/perfetto/src/tracing/core" ,
81328145
81338146 # TODO(skyostil ): Support non-POSIX platforms.
8134- " //third_party/perfetto/protos/perfetto/config:cpp" ,
81358147 " //third_party/perfetto/protos/perfetto/trace/track_event:zero" ,
81368148 " //third_party/perfetto/src/tracing:in_process_backend" ,
81378149 " //third_party/perfetto/src/tracing:platform_impl" ,
81388150 ]
81398151
81408152 public_deps = [
81418153 " //third_party/perfetto/include/perfetto/trace_processor" ,
8154+ " //third_party/perfetto/protos/perfetto/config:cpp" ,
8155+ " //third_party/perfetto/protos/perfetto/trace/chrome:zero" ,
81428156 " //third_party/perfetto/src/trace_processor:export_json" ,
81438157 " //third_party/perfetto/src/tracing:client_api" ,
81448158 ]
0 commit comments