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 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 data->set_compilation_failed(); | 1042 data->set_compilation_failed(); |
1043 return; | 1043 return; |
1044 } | 1044 } |
1045 if (FLAG_turbo_reuse_spill_slots) { | 1045 if (FLAG_turbo_reuse_spill_slots) { |
1046 Run<ReuseSpillSlotsPhase>(); | 1046 Run<ReuseSpillSlotsPhase>(); |
1047 } | 1047 } |
1048 Run<CommitAssignmentPhase>(); | 1048 Run<CommitAssignmentPhase>(); |
1049 Run<PopulatePointerMapsPhase>(); | 1049 Run<PopulatePointerMapsPhase>(); |
1050 Run<ConnectRangesPhase>(); | 1050 Run<ConnectRangesPhase>(); |
1051 Run<ResolveControlFlowPhase>(); | 1051 Run<ResolveControlFlowPhase>(); |
1052 Run<OptimizeMovesPhase>(); | 1052 if (FLAG_turbo_move_optimization) { |
| 1053 Run<OptimizeMovesPhase>(); |
| 1054 } |
1053 | 1055 |
1054 if (FLAG_trace_turbo_graph) { | 1056 if (FLAG_trace_turbo_graph) { |
1055 OFStream os(stdout); | 1057 OFStream os(stdout); |
1056 PrintableInstructionSequence printable = {config, data->sequence()}; | 1058 PrintableInstructionSequence printable = {config, data->sequence()}; |
1057 os << "----- Instruction sequence after register allocation -----\n" | 1059 os << "----- Instruction sequence after register allocation -----\n" |
1058 << printable; | 1060 << printable; |
1059 } | 1061 } |
1060 | 1062 |
1061 if (verifier != nullptr) { | 1063 if (verifier != nullptr) { |
1062 verifier->VerifyAssignment(); | 1064 verifier->VerifyAssignment(); |
(...skipping 12 matching lines...) Expand all Loading... |
1075 } | 1077 } |
1076 | 1078 |
1077 | 1079 |
1078 void Pipeline::TearDown() { | 1080 void Pipeline::TearDown() { |
1079 InstructionOperand::TearDownCaches(); | 1081 InstructionOperand::TearDownCaches(); |
1080 } | 1082 } |
1081 | 1083 |
1082 } // namespace compiler | 1084 } // namespace compiler |
1083 } // namespace internal | 1085 } // namespace internal |
1084 } // namespace v8 | 1086 } // namespace v8 |
OLD | NEW |