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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 AddReducer(data, &graph_reducer, &machine_reducer); | 630 AddReducer(data, &graph_reducer, &machine_reducer); |
631 AddReducer(data, &graph_reducer, &common_reducer); | 631 AddReducer(data, &graph_reducer, &common_reducer); |
632 graph_reducer.ReduceGraph(); | 632 graph_reducer.ReduceGraph(); |
633 } | 633 } |
634 }; | 634 }; |
635 | 635 |
636 | 636 |
637 struct EarlyControlReductionPhase { | 637 struct EarlyControlReductionPhase { |
638 static const char* phase_name() { return "early control reduction"; } | 638 static const char* phase_name() { return "early control reduction"; } |
639 void Run(PipelineData* data, Zone* temp_zone) { | 639 void Run(PipelineData* data, Zone* temp_zone) { |
640 ControlReducer::ReduceGraph(temp_zone, data->jsgraph(), 1); | 640 ControlReducer::ReduceGraph(temp_zone, data->jsgraph(), 0); |
641 } | 641 } |
642 }; | 642 }; |
643 | 643 |
644 | 644 |
645 struct LateControlReductionPhase { | 645 struct LateControlReductionPhase { |
646 static const char* phase_name() { return "late control reduction"; } | 646 static const char* phase_name() { return "late control reduction"; } |
647 void Run(PipelineData* data, Zone* temp_zone) { | 647 void Run(PipelineData* data, Zone* temp_zone) { |
648 ControlReducer::ReduceGraph(temp_zone, data->jsgraph(), 0); | 648 ControlReducer::ReduceGraph(temp_zone, data->jsgraph(), 0); |
649 } | 649 } |
650 }; | 650 }; |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1361 tcf << AsC1VRegisterAllocationData("CodeGen", | 1361 tcf << AsC1VRegisterAllocationData("CodeGen", |
1362 data->register_allocation_data()); | 1362 data->register_allocation_data()); |
1363 } | 1363 } |
1364 | 1364 |
1365 data->DeleteRegisterAllocationZone(); | 1365 data->DeleteRegisterAllocationZone(); |
1366 } | 1366 } |
1367 | 1367 |
1368 } // namespace compiler | 1368 } // namespace compiler |
1369 } // namespace internal | 1369 } // namespace internal |
1370 } // namespace v8 | 1370 } // namespace v8 |
OLD | NEW |