| 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 "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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |