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

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

Issue 1160863003: [turbofan] Remove the JSGraph dependency from the ControlFlowOptimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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
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/adapters.h" 10 #include "src/base/adapters.h"
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 AddReducer(data, &graph_reducer, &common_reducer); 600 AddReducer(data, &graph_reducer, &common_reducer);
601 graph_reducer.ReduceGraph(); 601 graph_reducer.ReduceGraph();
602 } 602 }
603 }; 603 };
604 604
605 605
606 struct ControlFlowOptimizationPhase { 606 struct ControlFlowOptimizationPhase {
607 static const char* phase_name() { return "control flow optimization"; } 607 static const char* phase_name() { return "control flow optimization"; }
608 608
609 void Run(PipelineData* data, Zone* temp_zone) { 609 void Run(PipelineData* data, Zone* temp_zone) {
610 ControlFlowOptimizer optimizer(data->jsgraph(), temp_zone); 610 ControlFlowOptimizer optimizer(data->graph(), data->common(),
611 data->machine(), temp_zone);
611 optimizer.Optimize(); 612 optimizer.Optimize();
612 } 613 }
613 }; 614 };
614 615
615 616
616 struct ChangeLoweringPhase { 617 struct ChangeLoweringPhase {
617 static const char* phase_name() { return "change lowering"; } 618 static const char* phase_name() { return "change lowering"; }
618 619
619 void Run(PipelineData* data, Zone* temp_zone) { 620 void Run(PipelineData* data, Zone* temp_zone) {
620 ValueNumberingReducer vn_reducer(temp_zone); 621 ValueNumberingReducer vn_reducer(temp_zone);
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 tcf << AsC1VRegisterAllocationData("CodeGen", 1327 tcf << AsC1VRegisterAllocationData("CodeGen",
1327 data->register_allocation_data()); 1328 data->register_allocation_data());
1328 } 1329 }
1329 1330
1330 data->DeleteRegisterAllocationZone(); 1331 data->DeleteRegisterAllocationZone();
1331 } 1332 }
1332 1333
1333 } // namespace compiler 1334 } // namespace compiler
1334 } // namespace internal 1335 } // namespace internal
1335 } // namespace v8 1336 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/control-flow-optimizer.cc ('k') | test/unittests/compiler/control-flow-optimizer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698