| 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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 | 724 |
| 725 struct ChangeLoweringPhase { | 725 struct ChangeLoweringPhase { |
| 726 static const char* phase_name() { return "change lowering"; } | 726 static const char* phase_name() { return "change lowering"; } |
| 727 | 727 |
| 728 void Run(PipelineData* data, Zone* temp_zone) { | 728 void Run(PipelineData* data, Zone* temp_zone) { |
| 729 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); | 729 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); |
| 730 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), | 730 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), |
| 731 data->common()); | 731 data->common()); |
| 732 SimplifiedOperatorReducer simple_reducer(data->jsgraph()); | 732 SimplifiedOperatorReducer simple_reducer(data->jsgraph()); |
| 733 ValueNumberingReducer value_numbering(temp_zone); | 733 ValueNumberingReducer value_numbering(temp_zone); |
| 734 ChangeLowering lowering(&graph_reducer, data->jsgraph()); | 734 ChangeLowering lowering(data->jsgraph()); |
| 735 MachineOperatorReducer machine_reducer(data->jsgraph()); | 735 MachineOperatorReducer machine_reducer(data->jsgraph()); |
| 736 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), | 736 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), |
| 737 data->common(), data->machine()); | 737 data->common(), data->machine()); |
| 738 AddReducer(data, &graph_reducer, &dead_code_elimination); | 738 AddReducer(data, &graph_reducer, &dead_code_elimination); |
| 739 AddReducer(data, &graph_reducer, &simple_reducer); | 739 AddReducer(data, &graph_reducer, &simple_reducer); |
| 740 AddReducer(data, &graph_reducer, &value_numbering); | 740 AddReducer(data, &graph_reducer, &value_numbering); |
| 741 AddReducer(data, &graph_reducer, &lowering); | 741 AddReducer(data, &graph_reducer, &lowering); |
| 742 AddReducer(data, &graph_reducer, &machine_reducer); | 742 AddReducer(data, &graph_reducer, &machine_reducer); |
| 743 AddReducer(data, &graph_reducer, &common_reducer); | 743 AddReducer(data, &graph_reducer, &common_reducer); |
| 744 graph_reducer.ReduceGraph(); | 744 graph_reducer.ReduceGraph(); |
| (...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1500 } | 1500 } |
| 1501 | 1501 |
| 1502 data->DeleteRegisterAllocationZone(); | 1502 data->DeleteRegisterAllocationZone(); |
| 1503 } | 1503 } |
| 1504 | 1504 |
| 1505 Isolate* Pipeline::isolate() const { return info()->isolate(); } | 1505 Isolate* Pipeline::isolate() const { return info()->isolate(); } |
| 1506 | 1506 |
| 1507 } // namespace compiler | 1507 } // namespace compiler |
| 1508 } // namespace internal | 1508 } // namespace internal |
| 1509 } // namespace v8 | 1509 } // namespace v8 |
| OLD | NEW |