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

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

Issue 565893002: Cleanup and simplify TurboFan generic lowering. (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
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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 } 275 }
276 276
277 Handle<Code> code = Handle<Code>::null(); 277 Handle<Code> code = Handle<Code>::null();
278 if (SupportedTarget()) { 278 if (SupportedTarget()) {
279 { 279 {
280 // Lower any remaining generic JSOperators. 280 // Lower any remaining generic JSOperators.
281 PhaseStats lowering_stats(info(), PhaseStats::CREATE_GRAPH, 281 PhaseStats lowering_stats(info(), PhaseStats::CREATE_GRAPH,
282 "generic lowering"); 282 "generic lowering");
283 SourcePositionTable::Scope pos(&source_positions, 283 SourcePositionTable::Scope pos(&source_positions,
284 SourcePosition::Unknown()); 284 SourcePosition::Unknown());
285 JSGenericLowering lowering(info(), &jsgraph, &machine); 285 JSGenericLowering lowering(info(), &jsgraph);
286 GraphReducer graph_reducer(&graph); 286 GraphReducer graph_reducer(&graph);
287 graph_reducer.AddReducer(&lowering); 287 graph_reducer.AddReducer(&lowering);
288 graph_reducer.ReduceGraph(); 288 graph_reducer.ReduceGraph();
289 289
290 VerifyAndPrintGraph(&graph, "Lowered generic"); 290 VerifyAndPrintGraph(&graph, "Lowered generic");
291 } 291 }
292 292
293 { 293 {
294 // Compute a schedule. 294 // Compute a schedule.
295 Schedule* schedule = ComputeSchedule(&graph); 295 Schedule* schedule = ComputeSchedule(&graph);
(...skipping 105 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
« src/compiler/js-generic-lowering.h ('K') | « src/compiler/js-generic-lowering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698