Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: src/compiler/pipeline.cc

Issue 951553005: [turbofan] remove dependence of InstructionBlock on BasicBlock (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/mips64/code-generator-mips64.cc ('k') | src/compiler/ppc/code-generator-ppc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/mips64/code-generator-mips64.cc ('k') | src/compiler/ppc/code-generator-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698