OLD | NEW |
---|---|
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 <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/base/platform/elapsed-timer.h" | 9 #include "src/base/platform/elapsed-timer.h" |
10 #include "src/compiler/ast-graph-builder.h" | 10 #include "src/compiler/ast-graph-builder.h" |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
283 | 283 |
284 VerifyAndPrintGraph(&graph, "Lowered simplified"); | 284 VerifyAndPrintGraph(&graph, "Lowered simplified"); |
285 } | 285 } |
286 { | 286 { |
287 // Lower changes that have been inserted before. | 287 // Lower changes that have been inserted before. |
288 PhaseStats lowering_stats(info(), PhaseStats::OPTIMIZATION, | 288 PhaseStats lowering_stats(info(), PhaseStats::OPTIMIZATION, |
289 "change lowering"); | 289 "change lowering"); |
290 SourcePositionTable::Scope pos(&source_positions, | 290 SourcePositionTable::Scope pos(&source_positions, |
291 SourcePosition::Unknown()); | 291 SourcePosition::Unknown()); |
292 Linkage linkage(info()); | 292 Linkage linkage(info()); |
293 // TODO(turbofan): Value numbering disabled for now. | 293 // TODO(turbofan): Value numbering disabled for now. |
Michael Starzinger
2014/10/08 07:53:02
The TODO can be dropped.
Benedikt Meurer
2014/10/08 08:05:28
Done.
| |
294 // ValueNumberingReducer vn_reducer(zone()); | 294 ValueNumberingReducer vn_reducer(zone()); |
295 SimplifiedOperatorReducer simple_reducer(&jsgraph); | 295 SimplifiedOperatorReducer simple_reducer(&jsgraph); |
296 ChangeLowering lowering(&jsgraph, &linkage); | 296 ChangeLowering lowering(&jsgraph, &linkage); |
297 MachineOperatorReducer mach_reducer(&jsgraph); | 297 MachineOperatorReducer mach_reducer(&jsgraph); |
298 GraphReducer graph_reducer(&graph); | 298 GraphReducer graph_reducer(&graph); |
299 // TODO(titzer): Figure out if we should run all reducers at once here. | 299 // TODO(titzer): Figure out if we should run all reducers at once here. |
300 // graph_reducer.AddReducer(&vn_reducer); | 300 graph_reducer.AddReducer(&vn_reducer); |
301 graph_reducer.AddReducer(&simple_reducer); | 301 graph_reducer.AddReducer(&simple_reducer); |
302 graph_reducer.AddReducer(&lowering); | 302 graph_reducer.AddReducer(&lowering); |
303 graph_reducer.AddReducer(&mach_reducer); | 303 graph_reducer.AddReducer(&mach_reducer); |
304 graph_reducer.ReduceGraph(); | 304 graph_reducer.ReduceGraph(); |
305 | 305 |
306 VerifyAndPrintGraph(&graph, "Lowered changes"); | 306 VerifyAndPrintGraph(&graph, "Lowered changes"); |
307 } | 307 } |
308 } | 308 } |
309 | 309 |
310 { | 310 { |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
447 } | 447 } |
448 | 448 |
449 | 449 |
450 void Pipeline::TearDown() { | 450 void Pipeline::TearDown() { |
451 InstructionOperand::TearDownCaches(); | 451 InstructionOperand::TearDownCaches(); |
452 } | 452 } |
453 | 453 |
454 } // namespace compiler | 454 } // namespace compiler |
455 } // namespace internal | 455 } // namespace internal |
456 } // namespace v8 | 456 } // namespace v8 |
OLD | NEW |