| 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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 | 554 |
| 555 | 555 |
| 556 struct TypedLoweringPhase { | 556 struct TypedLoweringPhase { |
| 557 static const char* phase_name() { return "typed lowering"; } | 557 static const char* phase_name() { return "typed lowering"; } |
| 558 | 558 |
| 559 void Run(PipelineData* data, Zone* temp_zone) { | 559 void Run(PipelineData* data, Zone* temp_zone) { |
| 560 GraphReducer graph_reducer(data->graph(), temp_zone); | 560 GraphReducer graph_reducer(data->graph(), temp_zone); |
| 561 LoadElimination load_elimination; | 561 LoadElimination load_elimination; |
| 562 JSBuiltinReducer builtin_reducer(data->jsgraph()); | 562 JSBuiltinReducer builtin_reducer(data->jsgraph()); |
| 563 JSTypedLowering typed_lowering(&graph_reducer, data->jsgraph(), temp_zone); | 563 JSTypedLowering typed_lowering(&graph_reducer, data->jsgraph(), temp_zone); |
| 564 JSIntrinsicLowering intrinsic_lowering(data->jsgraph()); | 564 JSIntrinsicLowering intrinsic_lowering(&graph_reducer, data->jsgraph()); |
| 565 SimplifiedOperatorReducer simple_reducer(data->jsgraph()); | 565 SimplifiedOperatorReducer simple_reducer(data->jsgraph()); |
| 566 CommonOperatorReducer common_reducer(data->jsgraph()); | 566 CommonOperatorReducer common_reducer(data->jsgraph()); |
| 567 AddReducer(data, &graph_reducer, &builtin_reducer); | 567 AddReducer(data, &graph_reducer, &builtin_reducer); |
| 568 AddReducer(data, &graph_reducer, &typed_lowering); | 568 AddReducer(data, &graph_reducer, &typed_lowering); |
| 569 AddReducer(data, &graph_reducer, &intrinsic_lowering); | 569 AddReducer(data, &graph_reducer, &intrinsic_lowering); |
| 570 AddReducer(data, &graph_reducer, &load_elimination); | 570 AddReducer(data, &graph_reducer, &load_elimination); |
| 571 AddReducer(data, &graph_reducer, &simple_reducer); | 571 AddReducer(data, &graph_reducer, &simple_reducer); |
| 572 AddReducer(data, &graph_reducer, &common_reducer); | 572 AddReducer(data, &graph_reducer, &common_reducer); |
| 573 graph_reducer.ReduceGraph(); | 573 graph_reducer.ReduceGraph(); |
| 574 } | 574 } |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1323 tcf << AsC1VRegisterAllocationData("CodeGen", | 1323 tcf << AsC1VRegisterAllocationData("CodeGen", |
| 1324 data->register_allocation_data()); | 1324 data->register_allocation_data()); |
| 1325 } | 1325 } |
| 1326 | 1326 |
| 1327 data->DeleteRegisterAllocationZone(); | 1327 data->DeleteRegisterAllocationZone(); |
| 1328 } | 1328 } |
| 1329 | 1329 |
| 1330 } // namespace compiler | 1330 } // namespace compiler |
| 1331 } // namespace internal | 1331 } // namespace internal |
| 1332 } // namespace v8 | 1332 } // namespace v8 |
| OLD | NEW |