@@ -3496,9 +3496,7 @@ v8_header_set("v8_internal_headers") {
34963496 " src/compiler/graph-assembler.h" ,
34973497 " src/compiler/graph-reducer.h" ,
34983498 " src/compiler/graph-trimmer.h" ,
3499- " src/compiler/graph-visualizer.h" ,
35003499 " src/compiler/graph-zone-traits.h" ,
3501- " src/compiler/graph.h" ,
35023500 " src/compiler/heap-refs.h" ,
35033501 " src/compiler/js-call-reducer.h" ,
35043502 " src/compiler/js-context-specialization.h" ,
@@ -3563,6 +3561,10 @@ v8_header_set("v8_internal_headers") {
35633561 " src/compiler/simplified-operator.h" ,
35643562 " src/compiler/state-values-utils.h" ,
35653563 " src/compiler/string-builder-optimizer.h" ,
3564+ " src/compiler/turbofan-graph-visualizer.h" ,
3565+ " src/compiler/turbofan-graph.h" ,
3566+ " src/compiler/turbofan-typer.h" ,
3567+ " src/compiler/turbofan-types.h" ,
35663568 " src/compiler/turbofan.h" ,
35673569 " src/compiler/turboshaft/access-builder.h" ,
35683570 " src/compiler/turboshaft/analyzer-iterator.h" ,
@@ -3655,8 +3657,6 @@ v8_header_set("v8_internal_headers") {
36553657 " src/compiler/type-cache.h" ,
36563658 " src/compiler/type-narrowing-reducer.h" ,
36573659 " src/compiler/typed-optimization.h" ,
3658- " src/compiler/typer.h" ,
3659- " src/compiler/types.h" ,
36603660 " src/compiler/use-info.h" ,
36613661 " src/compiler/value-numbering-reducer.h" ,
36623662 " src/compiler/verifier.h" ,
@@ -5014,8 +5014,6 @@ v8_compiler_sources = [
50145014 " src/compiler/graph-assembler.cc" ,
50155015 " src/compiler/graph-reducer.cc" ,
50165016 " src/compiler/graph-trimmer.cc" ,
5017- " src/compiler/graph-visualizer.cc" ,
5018- " src/compiler/graph.cc" ,
50195017 " src/compiler/heap-refs.cc" ,
50205018 " src/compiler/js-call-reducer.cc" ,
50215019 " src/compiler/js-context-specialization.cc" ,
@@ -5073,16 +5071,73 @@ v8_compiler_sources = [
50735071 " src/compiler/state-values-utils.cc" ,
50745072 " src/compiler/string-builder-optimizer.cc" ,
50755073 " src/compiler/turbofan-enabled.cc" ,
5074+ " src/compiler/turbofan-graph-visualizer.cc" ,
5075+ " src/compiler/turbofan-graph.cc" ,
5076+ " src/compiler/turbofan-typer.cc" ,
5077+ " src/compiler/turbofan-types.cc" ,
5078+ " src/compiler/turboshaft/analyzer-iterator.cc" ,
5079+ " src/compiler/turboshaft/assembler.cc" ,
5080+ " src/compiler/turboshaft/block-instrumentation-phase.cc" ,
5081+ " src/compiler/turboshaft/block-instrumentation-reducer.cc" ,
5082+ " src/compiler/turboshaft/build-graph-phase.cc" ,
5083+ " src/compiler/turboshaft/code-elimination-and-simplification-phase.cc" ,
5084+ " src/compiler/turboshaft/copying-phase.cc" ,
5085+ " src/compiler/turboshaft/csa-optimize-phase.cc" ,
5086+ " src/compiler/turboshaft/debug-feature-lowering-phase.cc" ,
5087+ " src/compiler/turboshaft/decompression-optimization-phase.cc" ,
5088+ " src/compiler/turboshaft/decompression-optimization.cc" ,
5089+ " src/compiler/turboshaft/graph-builder.cc" ,
5090+ " src/compiler/turboshaft/graph-visualizer.cc" ,
5091+ " src/compiler/turboshaft/graph.cc" ,
5092+ " src/compiler/turboshaft/instruction-selection-phase.cc" ,
5093+ " src/compiler/turboshaft/late-escape-analysis-reducer.cc" ,
5094+ " src/compiler/turboshaft/late-load-elimination-reducer.cc" ,
5095+ " src/compiler/turboshaft/loop-finder.cc" ,
5096+ " src/compiler/turboshaft/loop-peeling-phase.cc" ,
5097+ " src/compiler/turboshaft/loop-unrolling-phase.cc" ,
5098+ " src/compiler/turboshaft/loop-unrolling-reducer.cc" ,
5099+ " src/compiler/turboshaft/machine-lowering-phase.cc" ,
5100+ " src/compiler/turboshaft/maglev-graph-building-phase.cc" ,
5101+ " src/compiler/turboshaft/memory-optimization-reducer.cc" ,
5102+ " src/compiler/turboshaft/operations.cc" ,
5103+ " src/compiler/turboshaft/optimize-phase.cc" ,
5104+ " src/compiler/turboshaft/phase.cc" ,
5105+ " src/compiler/turboshaft/pipelines.cc" ,
5106+ " src/compiler/turboshaft/pretenuring-propagation-reducer.cc" ,
5107+ " src/compiler/turboshaft/recreate-schedule-phase.cc" ,
5108+ " src/compiler/turboshaft/recreate-schedule.cc" ,
5109+ " src/compiler/turboshaft/representations.cc" ,
5110+ " src/compiler/turboshaft/sidetable.cc" ,
5111+ " src/compiler/turboshaft/simplify-tf-loops.cc" ,
5112+ " src/compiler/turboshaft/store-store-elimination-phase.cc" ,
5113+ " src/compiler/turboshaft/type-assertions-phase.cc" ,
5114+ " src/compiler/turboshaft/type-parser.cc" ,
5115+ " src/compiler/turboshaft/typed-optimizations-phase.cc" ,
5116+ " src/compiler/turboshaft/typer.cc" ,
5117+ " src/compiler/turboshaft/types.cc" ,
5118+ " src/compiler/turboshaft/use-map.cc" ,
5119+ " src/compiler/turboshaft/utils.cc" ,
50765120 " src/compiler/type-cache.cc" ,
50775121 " src/compiler/type-narrowing-reducer.cc" ,
50785122 " src/compiler/typed-optimization.cc" ,
5079- " src/compiler/typer.cc" ,
5080- " src/compiler/types.cc" ,
50815123 " src/compiler/value-numbering-reducer.cc" ,
50825124 " src/compiler/verifier.cc" ,
50835125 " src/compiler/zone-stats.cc" ,
50845126]
50855127
5128+ if (! v8_enable_maglev ) {
5129+ # When Maglev is not enabled, Turboshaft still needs Maglev's graph builder.
5130+ v8_compiler_sources += [
5131+ " src/maglev/maglev-compilation-info.cc" ,
5132+ " src/maglev/maglev-compilation-unit.cc" ,
5133+ " src/maglev/maglev-graph-builder.cc" ,
5134+ " src/maglev/maglev-graph-printer.cc" ,
5135+ " src/maglev/maglev-interpreter-frame-state.cc" ,
5136+ " src/maglev/maglev-ir.cc" ,
5137+ " src/maglev/maglev-phi-representation-selector.cc" ,
5138+ ]
5139+ }
5140+
50865141if (v8_current_cpu == " x86" ) {
50875142 v8_compiler_sources += [
50885143 # ## gcmole(ia32) ###
@@ -5262,85 +5317,6 @@ v8_source_set("v8_compiler") {
52625317 configs = [ " :internal_config" ]
52635318}
52645319
5265- # The src/compiler files with default optimization behavior.
5266- v8_source_set (" v8_turboshaft" ) {
5267- visibility = [ " :*" ] # Only targets in this file can depend on this.
5268-
5269- sources = [
5270- " src/compiler/turboshaft/analyzer-iterator.cc" ,
5271- " src/compiler/turboshaft/assembler.cc" ,
5272- " src/compiler/turboshaft/block-instrumentation-phase.cc" ,
5273- " src/compiler/turboshaft/block-instrumentation-reducer.cc" ,
5274- " src/compiler/turboshaft/build-graph-phase.cc" ,
5275- " src/compiler/turboshaft/code-elimination-and-simplification-phase.cc" ,
5276- " src/compiler/turboshaft/copying-phase.cc" ,
5277- " src/compiler/turboshaft/csa-optimize-phase.cc" ,
5278- " src/compiler/turboshaft/debug-feature-lowering-phase.cc" ,
5279- " src/compiler/turboshaft/decompression-optimization-phase.cc" ,
5280- " src/compiler/turboshaft/decompression-optimization.cc" ,
5281- " src/compiler/turboshaft/graph-builder.cc" ,
5282- " src/compiler/turboshaft/graph-visualizer.cc" ,
5283- " src/compiler/turboshaft/graph.cc" ,
5284- " src/compiler/turboshaft/instruction-selection-phase.cc" ,
5285- " src/compiler/turboshaft/late-escape-analysis-reducer.cc" ,
5286- " src/compiler/turboshaft/late-load-elimination-reducer.cc" ,
5287- " src/compiler/turboshaft/loop-finder.cc" ,
5288- " src/compiler/turboshaft/loop-peeling-phase.cc" ,
5289- " src/compiler/turboshaft/loop-unrolling-phase.cc" ,
5290- " src/compiler/turboshaft/loop-unrolling-reducer.cc" ,
5291- " src/compiler/turboshaft/machine-lowering-phase.cc" ,
5292- " src/compiler/turboshaft/maglev-graph-building-phase.cc" ,
5293- " src/compiler/turboshaft/memory-optimization-reducer.cc" ,
5294- " src/compiler/turboshaft/operations.cc" ,
5295- " src/compiler/turboshaft/optimize-phase.cc" ,
5296- " src/compiler/turboshaft/phase.cc" ,
5297- " src/compiler/turboshaft/pipelines.cc" ,
5298- " src/compiler/turboshaft/pretenuring-propagation-reducer.cc" ,
5299- " src/compiler/turboshaft/recreate-schedule-phase.cc" ,
5300- " src/compiler/turboshaft/recreate-schedule.cc" ,
5301- " src/compiler/turboshaft/representations.cc" ,
5302- " src/compiler/turboshaft/sidetable.cc" ,
5303- " src/compiler/turboshaft/simplify-tf-loops.cc" ,
5304- " src/compiler/turboshaft/store-store-elimination-phase.cc" ,
5305- " src/compiler/turboshaft/type-assertions-phase.cc" ,
5306- " src/compiler/turboshaft/type-parser.cc" ,
5307- " src/compiler/turboshaft/typed-optimizations-phase.cc" ,
5308- " src/compiler/turboshaft/typer.cc" ,
5309- " src/compiler/turboshaft/types.cc" ,
5310- " src/compiler/turboshaft/use-map.cc" ,
5311- " src/compiler/turboshaft/utils.cc" ,
5312- ]
5313-
5314- if (! v8_enable_maglev ) {
5315- # When Maglev is not enabled, Turboshaft still needs Maglev's graph builder.
5316- sources += [
5317- " src/maglev/maglev-compilation-info.cc" ,
5318- " src/maglev/maglev-compilation-unit.cc" ,
5319- " src/maglev/maglev-graph-builder.cc" ,
5320- " src/maglev/maglev-graph-printer.cc" ,
5321- " src/maglev/maglev-interpreter-frame-state.cc" ,
5322- " src/maglev/maglev-ir.cc" ,
5323- " src/maglev/maglev-phi-representation-selector.cc" ,
5324- ]
5325- }
5326-
5327- public_deps = [
5328- " :generate_bytecode_builtins_list" ,
5329- " :run_torque" ,
5330- " :v8_internal_headers" ,
5331- " :v8_maybe_icu" ,
5332- " :v8_tracing" ,
5333- ]
5334-
5335- deps = [
5336- " :v8_base_without_compiler" ,
5337- " :v8_libbase" ,
5338- " :v8_shared_internal_headers" ,
5339- ]
5340-
5341- configs = [ " :internal_config" ]
5342- }
5343-
53445320group (" v8_compiler_for_mksnapshot" ) {
53455321 if ((is_debug && ! v8_optimized_debug && v8_enable_fast_mksnapshot ) ||
53465322 ! v8_enable_turbofan ) {
@@ -6374,10 +6350,6 @@ group("v8_base") {
63746350 " :v8_base_without_compiler" ,
63756351 " :v8_compiler" ,
63766352 ]
6377-
6378- if (v8_enable_turbofan ) {
6379- public_deps += [ " :v8_turboshaft" ]
6380- }
63816353}
63826354
63836355v8_source_set (" torque_base" ) {
@@ -7364,7 +7336,6 @@ if (current_toolchain == v8_snapshot_toolchain) {
73647336 " :v8_maybe_icu" ,
73657337 " :v8_shared_internal_headers" ,
73667338 " :v8_tracing" ,
7367- " :v8_turboshaft" ,
73687339 " //build/win:default_exe_manifest" ,
73697340 ]
73707341 }
0 commit comments