| 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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 MoveOptimizer move_optimizer(temp_zone, data->sequence()); | 739 MoveOptimizer move_optimizer(temp_zone, data->sequence()); |
| 740 move_optimizer.Run(); | 740 move_optimizer.Run(); |
| 741 } | 741 } |
| 742 }; | 742 }; |
| 743 | 743 |
| 744 | 744 |
| 745 struct JumpThreadingPhase { | 745 struct JumpThreadingPhase { |
| 746 static const char* phase_name() { return "jump threading"; } | 746 static const char* phase_name() { return "jump threading"; } |
| 747 | 747 |
| 748 void Run(PipelineData* data, Zone* temp_zone) { | 748 void Run(PipelineData* data, Zone* temp_zone) { |
| 749 ZoneVector<BasicBlock::RpoNumber> result(temp_zone); | 749 ZoneVector<RpoNumber> result(temp_zone); |
| 750 if (JumpThreading::ComputeForwarding(temp_zone, result, data->sequence())) { | 750 if (JumpThreading::ComputeForwarding(temp_zone, result, data->sequence())) { |
| 751 JumpThreading::ApplyForwarding(result, data->sequence()); | 751 JumpThreading::ApplyForwarding(result, data->sequence()); |
| 752 } | 752 } |
| 753 } | 753 } |
| 754 }; | 754 }; |
| 755 | 755 |
| 756 | 756 |
| 757 struct GenerateCodePhase { | 757 struct GenerateCodePhase { |
| 758 static const char* phase_name() { return "generate code"; } | 758 static const char* phase_name() { return "generate code"; } |
| 759 | 759 |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1197 | 1197 |
| 1198 if (FLAG_trace_turbo && !data->MayHaveUnverifiableGraph()) { | 1198 if (FLAG_trace_turbo && !data->MayHaveUnverifiableGraph()) { |
| 1199 TurboCfgFile tcf(data->isolate()); | 1199 TurboCfgFile tcf(data->isolate()); |
| 1200 tcf << AsC1VAllocator("CodeGen", data->register_allocator()); | 1200 tcf << AsC1VAllocator("CodeGen", data->register_allocator()); |
| 1201 } | 1201 } |
| 1202 } | 1202 } |
| 1203 | 1203 |
| 1204 } // namespace compiler | 1204 } // namespace compiler |
| 1205 } // namespace internal | 1205 } // namespace internal |
| 1206 } // namespace v8 | 1206 } // namespace v8 |
| OLD | NEW |