| 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 926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 Run<AllocateGeneralRegistersPhase>(); | 937 Run<AllocateGeneralRegistersPhase>(); |
| 938 if (!data->register_allocator()->AllocationOk()) { | 938 if (!data->register_allocator()->AllocationOk()) { |
| 939 data->set_compilation_failed(); | 939 data->set_compilation_failed(); |
| 940 return; | 940 return; |
| 941 } | 941 } |
| 942 Run<AllocateDoubleRegistersPhase>(); | 942 Run<AllocateDoubleRegistersPhase>(); |
| 943 if (!data->register_allocator()->AllocationOk()) { | 943 if (!data->register_allocator()->AllocationOk()) { |
| 944 data->set_compilation_failed(); | 944 data->set_compilation_failed(); |
| 945 return; | 945 return; |
| 946 } | 946 } |
| 947 Run<ReuseSpillSlotsPhase>(); | 947 if (FLAG_turbo_reuse_spill_slots) { |
| 948 Run<ReuseSpillSlotsPhase>(); |
| 949 } |
| 948 Run<PopulatePointerMapsPhase>(); | 950 Run<PopulatePointerMapsPhase>(); |
| 949 Run<ConnectRangesPhase>(); | 951 Run<ConnectRangesPhase>(); |
| 950 Run<ResolveControlFlowPhase>(); | 952 Run<ResolveControlFlowPhase>(); |
| 951 | 953 |
| 952 if (FLAG_trace_turbo) { | 954 if (FLAG_trace_turbo) { |
| 953 OFStream os(stdout); | 955 OFStream os(stdout); |
| 954 PrintableInstructionSequence printable = {config, data->sequence()}; | 956 PrintableInstructionSequence printable = {config, data->sequence()}; |
| 955 os << "----- Instruction sequence after register allocation -----\n" | 957 os << "----- Instruction sequence after register allocation -----\n" |
| 956 << printable; | 958 << printable; |
| 957 } | 959 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 973 } | 975 } |
| 974 | 976 |
| 975 | 977 |
| 976 void Pipeline::TearDown() { | 978 void Pipeline::TearDown() { |
| 977 InstructionOperand::TearDownCaches(); | 979 InstructionOperand::TearDownCaches(); |
| 978 } | 980 } |
| 979 | 981 |
| 980 } // namespace compiler | 982 } // namespace compiler |
| 981 } // namespace internal | 983 } // namespace internal |
| 982 } // namespace v8 | 984 } // namespace v8 |
| OLD | NEW |