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/platform/elapsed-timer.h" | 10 #include "src/base/platform/elapsed-timer.h" |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 graph_reducer.ReduceGraph(); | 591 graph_reducer.ReduceGraph(); |
592 } | 592 } |
593 }; | 593 }; |
594 | 594 |
595 | 595 |
596 struct EarlyControlReductionPhase { | 596 struct EarlyControlReductionPhase { |
597 static const char* phase_name() { return "early control reduction"; } | 597 static const char* phase_name() { return "early control reduction"; } |
598 void Run(PipelineData* data, Zone* temp_zone) { | 598 void Run(PipelineData* data, Zone* temp_zone) { |
599 SourcePositionTable::Scope pos(data->source_positions(), | 599 SourcePositionTable::Scope pos(data->source_positions(), |
600 SourcePosition::Unknown()); | 600 SourcePosition::Unknown()); |
601 ControlReducer::ReduceGraph(temp_zone, data->jsgraph(), data->common(), 1); | 601 // TODO(turbofan): enable select matching in early control reduction. |
| 602 ControlReducer::ReduceGraph(temp_zone, data->jsgraph(), data->common(), 0); |
602 } | 603 } |
603 }; | 604 }; |
604 | 605 |
605 | 606 |
606 struct LateControlReductionPhase { | 607 struct LateControlReductionPhase { |
607 static const char* phase_name() { return "late control reduction"; } | 608 static const char* phase_name() { return "late control reduction"; } |
608 void Run(PipelineData* data, Zone* temp_zone) { | 609 void Run(PipelineData* data, Zone* temp_zone) { |
609 SourcePositionTable::Scope pos(data->source_positions(), | 610 SourcePositionTable::Scope pos(data->source_positions(), |
610 SourcePosition::Unknown()); | 611 SourcePosition::Unknown()); |
611 ControlReducer::ReduceGraph(temp_zone, data->jsgraph(), data->common(), 0); | 612 ControlReducer::ReduceGraph(temp_zone, data->jsgraph(), data->common(), 0); |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1237 | 1238 |
1238 if (FLAG_trace_turbo && !data->MayHaveUnverifiableGraph()) { | 1239 if (FLAG_trace_turbo && !data->MayHaveUnverifiableGraph()) { |
1239 TurboCfgFile tcf(data->isolate()); | 1240 TurboCfgFile tcf(data->isolate()); |
1240 tcf << AsC1VAllocator("CodeGen", data->register_allocator()); | 1241 tcf << AsC1VAllocator("CodeGen", data->register_allocator()); |
1241 } | 1242 } |
1242 } | 1243 } |
1243 | 1244 |
1244 } // namespace compiler | 1245 } // namespace compiler |
1245 } // namespace internal | 1246 } // namespace internal |
1246 } // namespace v8 | 1247 } // namespace v8 |
OLD | NEW |