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

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

Issue 562203004: Avoid usage of temporary MachineOperatorBuilder. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
« no previous file with comments | « src/compiler/machine-operator-reducer.cc ('k') | src/compiler/representation-change.h » ('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 "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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 VerifyAndPrintGraph(&graph, "Lowered simplified"); 252 VerifyAndPrintGraph(&graph, "Lowered simplified");
253 } 253 }
254 { 254 {
255 // Lower changes that have been inserted before. 255 // Lower changes that have been inserted before.
256 PhaseStats lowering_stats(info(), PhaseStats::OPTIMIZATION, 256 PhaseStats lowering_stats(info(), PhaseStats::OPTIMIZATION,
257 "change lowering"); 257 "change lowering");
258 SourcePositionTable::Scope pos(&source_positions, 258 SourcePositionTable::Scope pos(&source_positions,
259 SourcePosition::Unknown()); 259 SourcePosition::Unknown());
260 Linkage linkage(info()); 260 Linkage linkage(info());
261 ValueNumberingReducer vn_reducer(zone()); 261 ValueNumberingReducer vn_reducer(zone());
262 SimplifiedOperatorReducer simple_reducer(&jsgraph, &machine); 262 SimplifiedOperatorReducer simple_reducer(&jsgraph);
263 ChangeLowering lowering(&jsgraph, &linkage, &machine); 263 ChangeLowering lowering(&jsgraph, &linkage);
264 MachineOperatorReducer mach_reducer(&jsgraph); 264 MachineOperatorReducer mach_reducer(&jsgraph);
265 GraphReducer graph_reducer(&graph); 265 GraphReducer graph_reducer(&graph);
266 // TODO(titzer): Figure out if we should run all reducers at once here. 266 // TODO(titzer): Figure out if we should run all reducers at once here.
267 graph_reducer.AddReducer(&vn_reducer); 267 graph_reducer.AddReducer(&vn_reducer);
268 graph_reducer.AddReducer(&simple_reducer); 268 graph_reducer.AddReducer(&simple_reducer);
269 graph_reducer.AddReducer(&lowering); 269 graph_reducer.AddReducer(&lowering);
270 graph_reducer.AddReducer(&mach_reducer); 270 graph_reducer.AddReducer(&mach_reducer);
271 graph_reducer.ReduceGraph(); 271 graph_reducer.ReduceGraph();
272 272
273 VerifyAndPrintGraph(&graph, "Lowered changes"); 273 VerifyAndPrintGraph(&graph, "Lowered changes");
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 } 401 }
402 402
403 403
404 void Pipeline::TearDown() { 404 void Pipeline::TearDown() {
405 InstructionOperand::TearDownCaches(); 405 InstructionOperand::TearDownCaches();
406 } 406 }
407 407
408 } // namespace compiler 408 } // namespace compiler
409 } // namespace internal 409 } // namespace internal
410 } // namespace v8 410 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator-reducer.cc ('k') | src/compiler/representation-change.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698