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 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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( | 667 escape_reducer.SetExistsVirtualAllocate( |
668 escape_analysis.ExistsVirtualAllocate()); | 668 escape_analysis.ExistsVirtualAllocate()); |
669 AddReducer(data, &graph_reducer, &escape_reducer); | 669 AddReducer(data, &graph_reducer, &escape_reducer); |
670 graph_reducer.ReduceGraph(); | 670 graph_reducer.ReduceGraph(); |
| 671 escape_reducer.VerifyReplacement(); |
671 } | 672 } |
672 }; | 673 }; |
673 | 674 |
674 | 675 |
675 struct SimplifiedLoweringPhase { | 676 struct SimplifiedLoweringPhase { |
676 static const char* phase_name() { return "simplified lowering"; } | 677 static const char* phase_name() { return "simplified lowering"; } |
677 | 678 |
678 void Run(PipelineData* data, Zone* temp_zone) { | 679 void Run(PipelineData* data, Zone* temp_zone) { |
679 SimplifiedLowering lowering(data->jsgraph(), temp_zone, | 680 SimplifiedLowering lowering(data->jsgraph(), temp_zone, |
680 data->source_positions()); | 681 data->source_positions()); |
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1472 tcf << AsC1VRegisterAllocationData("CodeGen", | 1473 tcf << AsC1VRegisterAllocationData("CodeGen", |
1473 data->register_allocation_data()); | 1474 data->register_allocation_data()); |
1474 } | 1475 } |
1475 | 1476 |
1476 data->DeleteRegisterAllocationZone(); | 1477 data->DeleteRegisterAllocationZone(); |
1477 } | 1478 } |
1478 | 1479 |
1479 } // namespace compiler | 1480 } // namespace compiler |
1480 } // namespace internal | 1481 } // namespace internal |
1481 } // namespace v8 | 1482 } // namespace v8 |
OLD | NEW |