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

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

Issue 526083002: [turbofan] Fix MachineOperatorReducer to use JSGraph as well. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix Created 6 years, 3 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 | Annotate | Revision Log
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 "src/base/platform/elapsed-timer.h" 7 #include "src/base/platform/elapsed-timer.h"
8 #include "src/compiler/ast-graph-builder.h" 8 #include "src/compiler/ast-graph-builder.h"
9 #include "src/compiler/change-lowering.h" 9 #include "src/compiler/change-lowering.h"
10 #include "src/compiler/code-generator.h" 10 #include "src/compiler/code-generator.h"
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 { 250 {
251 // Lower changes that have been inserted before. 251 // Lower changes that have been inserted before.
252 PhaseStats lowering_stats(info(), PhaseStats::OPTIMIZATION, 252 PhaseStats lowering_stats(info(), PhaseStats::OPTIMIZATION,
253 "change lowering"); 253 "change lowering");
254 SourcePositionTable::Scope pos(&source_positions, 254 SourcePositionTable::Scope pos(&source_positions,
255 SourcePosition::Unknown()); 255 SourcePosition::Unknown());
256 Linkage linkage(info()); 256 Linkage linkage(info());
257 MachineOperatorBuilder machine(zone()); 257 MachineOperatorBuilder machine(zone());
258 SimplifiedOperatorReducer simple_reducer(&jsgraph, &machine); 258 SimplifiedOperatorReducer simple_reducer(&jsgraph, &machine);
259 ChangeLowering lowering(&jsgraph, &linkage, &machine); 259 ChangeLowering lowering(&jsgraph, &linkage, &machine);
260 MachineOperatorReducer mach_reducer(&graph); 260 MachineOperatorReducer mach_reducer(&jsgraph);
261 GraphReducer graph_reducer(&graph); 261 GraphReducer graph_reducer(&graph);
262 // TODO(titzer): Figure out if we should run all reducers at once here. 262 // TODO(titzer): Figure out if we should run all reducers at once here.
263 graph_reducer.AddReducer(&simple_reducer); 263 graph_reducer.AddReducer(&simple_reducer);
264 graph_reducer.AddReducer(&lowering); 264 graph_reducer.AddReducer(&lowering);
265 graph_reducer.AddReducer(&mach_reducer); 265 graph_reducer.AddReducer(&mach_reducer);
266 graph_reducer.ReduceGraph(); 266 graph_reducer.ReduceGraph();
267 267
268 VerifyAndPrintGraph(&graph, "Lowered changes"); 268 VerifyAndPrintGraph(&graph, "Lowered changes");
269 } 269 }
270 } 270 }
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 } 397 }
398 398
399 399
400 void Pipeline::TearDown() { 400 void Pipeline::TearDown() {
401 InstructionOperand::TearDownCaches(); 401 InstructionOperand::TearDownCaches();
402 } 402 }
403 403
404 } // namespace compiler 404 } // namespace compiler
405 } // namespace internal 405 } // namespace internal
406 } // namespace v8 406 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator-reducer-unittest.cc ('k') | test/cctest/compiler/test-machine-operator-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698