| 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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 graph_reducer.ReduceGraph(); | 562 graph_reducer.ReduceGraph(); |
| 563 } | 563 } |
| 564 }; | 564 }; |
| 565 | 565 |
| 566 | 566 |
| 567 struct TypedLoweringPhase { | 567 struct TypedLoweringPhase { |
| 568 static const char* phase_name() { return "typed lowering"; } | 568 static const char* phase_name() { return "typed lowering"; } |
| 569 | 569 |
| 570 void Run(PipelineData* data, Zone* temp_zone) { | 570 void Run(PipelineData* data, Zone* temp_zone) { |
| 571 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); | 571 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); |
| 572 LoadElimination load_elimination; | 572 LoadElimination load_elimination(&graph_reducer); |
| 573 JSBuiltinReducer builtin_reducer(&graph_reducer, data->jsgraph()); | 573 JSBuiltinReducer builtin_reducer(&graph_reducer, data->jsgraph()); |
| 574 JSTypedLowering typed_lowering(&graph_reducer, data->jsgraph(), temp_zone); | 574 JSTypedLowering typed_lowering(&graph_reducer, data->jsgraph(), temp_zone); |
| 575 JSIntrinsicLowering intrinsic_lowering( | 575 JSIntrinsicLowering intrinsic_lowering( |
| 576 &graph_reducer, data->jsgraph(), | 576 &graph_reducer, data->jsgraph(), |
| 577 data->info()->is_deoptimization_enabled() | 577 data->info()->is_deoptimization_enabled() |
| 578 ? JSIntrinsicLowering::kDeoptimizationEnabled | 578 ? JSIntrinsicLowering::kDeoptimizationEnabled |
| 579 : JSIntrinsicLowering::kDeoptimizationDisabled); | 579 : JSIntrinsicLowering::kDeoptimizationDisabled); |
| 580 CommonOperatorReducer common_reducer(data->jsgraph()); | 580 CommonOperatorReducer common_reducer(data->jsgraph()); |
| 581 AddReducer(data, &graph_reducer, &builtin_reducer); | 581 AddReducer(data, &graph_reducer, &builtin_reducer); |
| 582 AddReducer(data, &graph_reducer, &typed_lowering); | 582 AddReducer(data, &graph_reducer, &typed_lowering); |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1329 tcf << AsC1VRegisterAllocationData("CodeGen", | 1329 tcf << AsC1VRegisterAllocationData("CodeGen", |
| 1330 data->register_allocation_data()); | 1330 data->register_allocation_data()); |
| 1331 } | 1331 } |
| 1332 | 1332 |
| 1333 data->DeleteRegisterAllocationZone(); | 1333 data->DeleteRegisterAllocationZone(); |
| 1334 } | 1334 } |
| 1335 | 1335 |
| 1336 } // namespace compiler | 1336 } // namespace compiler |
| 1337 } // namespace internal | 1337 } // namespace internal |
| 1338 } // namespace v8 | 1338 } // namespace v8 |
| OLD | NEW |