| 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/adapters.h" | 10 #include "src/base/adapters.h" |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 AddReducer(data, &graph_reducer, &common_reducer); | 600 AddReducer(data, &graph_reducer, &common_reducer); |
| 601 graph_reducer.ReduceGraph(); | 601 graph_reducer.ReduceGraph(); |
| 602 } | 602 } |
| 603 }; | 603 }; |
| 604 | 604 |
| 605 | 605 |
| 606 struct ControlFlowOptimizationPhase { | 606 struct ControlFlowOptimizationPhase { |
| 607 static const char* phase_name() { return "control flow optimization"; } | 607 static const char* phase_name() { return "control flow optimization"; } |
| 608 | 608 |
| 609 void Run(PipelineData* data, Zone* temp_zone) { | 609 void Run(PipelineData* data, Zone* temp_zone) { |
| 610 ControlFlowOptimizer optimizer(data->jsgraph(), temp_zone); | 610 ControlFlowOptimizer optimizer(data->graph(), data->common(), |
| 611 data->machine(), temp_zone); |
| 611 optimizer.Optimize(); | 612 optimizer.Optimize(); |
| 612 } | 613 } |
| 613 }; | 614 }; |
| 614 | 615 |
| 615 | 616 |
| 616 struct ChangeLoweringPhase { | 617 struct ChangeLoweringPhase { |
| 617 static const char* phase_name() { return "change lowering"; } | 618 static const char* phase_name() { return "change lowering"; } |
| 618 | 619 |
| 619 void Run(PipelineData* data, Zone* temp_zone) { | 620 void Run(PipelineData* data, Zone* temp_zone) { |
| 620 ValueNumberingReducer vn_reducer(temp_zone); | 621 ValueNumberingReducer vn_reducer(temp_zone); |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1326 tcf << AsC1VRegisterAllocationData("CodeGen", | 1327 tcf << AsC1VRegisterAllocationData("CodeGen", |
| 1327 data->register_allocation_data()); | 1328 data->register_allocation_data()); |
| 1328 } | 1329 } |
| 1329 | 1330 |
| 1330 data->DeleteRegisterAllocationZone(); | 1331 data->DeleteRegisterAllocationZone(); |
| 1331 } | 1332 } |
| 1332 | 1333 |
| 1333 } // namespace compiler | 1334 } // namespace compiler |
| 1334 } // namespace internal | 1335 } // namespace internal |
| 1335 } // namespace v8 | 1336 } // namespace v8 |
| OLD | NEW |