| 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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 | 583 |
| 584 struct TypedLoweringPhase { | 584 struct TypedLoweringPhase { |
| 585 static const char* phase_name() { return "typed lowering"; } | 585 static const char* phase_name() { return "typed lowering"; } |
| 586 | 586 |
| 587 void Run(PipelineData* data, Zone* temp_zone) { | 587 void Run(PipelineData* data, Zone* temp_zone) { |
| 588 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); | 588 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); |
| 589 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), | 589 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), |
| 590 data->common()); | 590 data->common()); |
| 591 LoadElimination load_elimination(&graph_reducer); | 591 LoadElimination load_elimination(&graph_reducer); |
| 592 JSBuiltinReducer builtin_reducer(&graph_reducer, data->jsgraph()); | 592 JSBuiltinReducer builtin_reducer(&graph_reducer, data->jsgraph()); |
| 593 JSTypedLowering typed_lowering(&graph_reducer, data->jsgraph(), temp_zone); | 593 JSTypedLowering typed_lowering(&graph_reducer, data->info()->dependencies(), |
| 594 data->info()->is_deoptimization_enabled() |
| 595 ? JSTypedLowering::kDeoptimizationEnabled |
| 596 : JSTypedLowering::kNoFlags, |
| 597 data->jsgraph(), temp_zone); |
| 594 JSIntrinsicLowering intrinsic_lowering( | 598 JSIntrinsicLowering intrinsic_lowering( |
| 595 &graph_reducer, data->jsgraph(), | 599 &graph_reducer, data->jsgraph(), |
| 596 data->info()->is_deoptimization_enabled() | 600 data->info()->is_deoptimization_enabled() |
| 597 ? JSIntrinsicLowering::kDeoptimizationEnabled | 601 ? JSIntrinsicLowering::kDeoptimizationEnabled |
| 598 : JSIntrinsicLowering::kDeoptimizationDisabled); | 602 : JSIntrinsicLowering::kDeoptimizationDisabled); |
| 599 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), | 603 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), |
| 600 data->common(), data->machine()); | 604 data->common(), data->machine()); |
| 601 AddReducer(data, &graph_reducer, &dead_code_elimination); | 605 AddReducer(data, &graph_reducer, &dead_code_elimination); |
| 602 AddReducer(data, &graph_reducer, &builtin_reducer); | 606 AddReducer(data, &graph_reducer, &builtin_reducer); |
| 603 AddReducer(data, &graph_reducer, &typed_lowering); | 607 AddReducer(data, &graph_reducer, &typed_lowering); |
| (...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1430 tcf << AsC1VRegisterAllocationData("CodeGen", | 1434 tcf << AsC1VRegisterAllocationData("CodeGen", |
| 1431 data->register_allocation_data()); | 1435 data->register_allocation_data()); |
| 1432 } | 1436 } |
| 1433 | 1437 |
| 1434 data->DeleteRegisterAllocationZone(); | 1438 data->DeleteRegisterAllocationZone(); |
| 1435 } | 1439 } |
| 1436 | 1440 |
| 1437 } // namespace compiler | 1441 } // namespace compiler |
| 1438 } // namespace internal | 1442 } // namespace internal |
| 1439 } // namespace v8 | 1443 } // namespace v8 |
| OLD | NEW |