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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 struct EscapeAnalysisPhase { | 657 struct EscapeAnalysisPhase { |
658 static const char* phase_name() { return "escape analysis"; } | 658 static const char* phase_name() { return "escape analysis"; } |
659 | 659 |
660 void Run(PipelineData* data, Zone* temp_zone) { | 660 void Run(PipelineData* data, Zone* temp_zone) { |
661 EscapeAnalysis escape_analysis(data->graph(), data->jsgraph()->common(), | 661 EscapeAnalysis escape_analysis(data->graph(), data->jsgraph()->common(), |
662 temp_zone); | 662 temp_zone); |
663 escape_analysis.Run(); | 663 escape_analysis.Run(); |
664 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); | 664 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); |
665 EscapeAnalysisReducer escape_reducer(&graph_reducer, data->jsgraph(), | 665 EscapeAnalysisReducer escape_reducer(&graph_reducer, data->jsgraph(), |
666 &escape_analysis, temp_zone); | 666 &escape_analysis, temp_zone); |
| 667 escape_reducer.SetExistsVirtualAllocate( |
| 668 escape_analysis.ExistsVirtualAllocate()); |
667 AddReducer(data, &graph_reducer, &escape_reducer); | 669 AddReducer(data, &graph_reducer, &escape_reducer); |
668 graph_reducer.ReduceGraph(); | 670 graph_reducer.ReduceGraph(); |
669 } | 671 } |
670 }; | 672 }; |
671 | 673 |
672 | 674 |
673 struct SimplifiedLoweringPhase { | 675 struct SimplifiedLoweringPhase { |
674 static const char* phase_name() { return "simplified lowering"; } | 676 static const char* phase_name() { return "simplified lowering"; } |
675 | 677 |
676 void Run(PipelineData* data, Zone* temp_zone) { | 678 void Run(PipelineData* data, Zone* temp_zone) { |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1478 tcf << AsC1VRegisterAllocationData("CodeGen", | 1480 tcf << AsC1VRegisterAllocationData("CodeGen", |
1479 data->register_allocation_data()); | 1481 data->register_allocation_data()); |
1480 } | 1482 } |
1481 | 1483 |
1482 data->DeleteRegisterAllocationZone(); | 1484 data->DeleteRegisterAllocationZone(); |
1483 } | 1485 } |
1484 | 1486 |
1485 } // namespace compiler | 1487 } // namespace compiler |
1486 } // namespace internal | 1488 } // namespace internal |
1487 } // namespace v8 | 1489 } // namespace v8 |
OLD | NEW |