| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/compiler/pipeline.h" | 5 #include "src/compiler/pipeline.h" |
| 6 | 6 |
| 7 #include <fstream> // NOLINT(readability/streams) | 7 #include <fstream> // NOLINT(readability/streams) |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "src/base/platform/elapsed-timer.h" | 10 #include "src/base/platform/elapsed-timer.h" |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 void Run(PipelineData* data, Zone* temp_zone) { | 512 void Run(PipelineData* data, Zone* temp_zone) { |
| 513 SourcePositionTable::Scope pos(data->source_positions(), | 513 SourcePositionTable::Scope pos(data->source_positions(), |
| 514 SourcePosition::Unknown()); | 514 SourcePosition::Unknown()); |
| 515 Linkage linkage(data->graph_zone(), data->info()); | 515 Linkage linkage(data->graph_zone(), data->info()); |
| 516 ValueNumberingReducer vn_reducer(temp_zone); | 516 ValueNumberingReducer vn_reducer(temp_zone); |
| 517 SimplifiedOperatorReducer simple_reducer(data->jsgraph()); | 517 SimplifiedOperatorReducer simple_reducer(data->jsgraph()); |
| 518 ChangeLowering lowering(data->jsgraph(), &linkage); | 518 ChangeLowering lowering(data->jsgraph(), &linkage); |
| 519 MachineOperatorReducer machine_reducer(data->jsgraph()); | 519 MachineOperatorReducer machine_reducer(data->jsgraph()); |
| 520 CommonOperatorReducer common_reducer; | 520 CommonOperatorReducer common_reducer; |
| 521 GraphReducer graph_reducer(data->graph(), temp_zone); | 521 GraphReducer graph_reducer(data->graph(), temp_zone); |
| 522 graph_reducer.AddReducer(&vn_reducer); | 522 AddReducer(data, &graph_reducer, &vn_reducer); |
| 523 AddReducer(data, &graph_reducer, &simple_reducer); | 523 AddReducer(data, &graph_reducer, &simple_reducer); |
| 524 AddReducer(data, &graph_reducer, &lowering); | 524 AddReducer(data, &graph_reducer, &lowering); |
| 525 AddReducer(data, &graph_reducer, &machine_reducer); | 525 AddReducer(data, &graph_reducer, &machine_reducer); |
| 526 AddReducer(data, &graph_reducer, &common_reducer); | 526 AddReducer(data, &graph_reducer, &common_reducer); |
| 527 graph_reducer.ReduceGraph(); | 527 graph_reducer.ReduceGraph(); |
| 528 } | 528 } |
| 529 }; | 529 }; |
| 530 | 530 |
| 531 | 531 |
| 532 struct ControlReductionPhase { | 532 struct ControlReductionPhase { |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1176 | 1176 |
| 1177 if (FLAG_trace_turbo && !data->MayHaveUnverifiableGraph()) { | 1177 if (FLAG_trace_turbo && !data->MayHaveUnverifiableGraph()) { |
| 1178 TurboCfgFile tcf(data->isolate()); | 1178 TurboCfgFile tcf(data->isolate()); |
| 1179 tcf << AsC1VAllocator("CodeGen", data->register_allocator()); | 1179 tcf << AsC1VAllocator("CodeGen", data->register_allocator()); |
| 1180 } | 1180 } |
| 1181 } | 1181 } |
| 1182 | 1182 |
| 1183 } // namespace compiler | 1183 } // namespace compiler |
| 1184 } // namespace internal | 1184 } // namespace internal |
| 1185 } // namespace v8 | 1185 } // namespace v8 |
| OLD | NEW |