| 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/code-generator.h" | 9 #include "src/compiler/code-generator.h" |
| 10 #include "src/compiler/graph-replay.h" | 10 #include "src/compiler/graph-replay.h" |
| 11 #include "src/compiler/graph-visualizer.h" | 11 #include "src/compiler/graph-visualizer.h" |
| 12 #include "src/compiler/instruction.h" |
| 12 #include "src/compiler/instruction-selector.h" | 13 #include "src/compiler/instruction-selector.h" |
| 13 #include "src/compiler/js-context-specialization.h" | 14 #include "src/compiler/js-context-specialization.h" |
| 14 #include "src/compiler/js-generic-lowering.h" | 15 #include "src/compiler/js-generic-lowering.h" |
| 15 #include "src/compiler/js-typed-lowering.h" | 16 #include "src/compiler/js-typed-lowering.h" |
| 16 #include "src/compiler/register-allocator.h" | 17 #include "src/compiler/register-allocator.h" |
| 17 #include "src/compiler/schedule.h" | 18 #include "src/compiler/schedule.h" |
| 18 #include "src/compiler/scheduler.h" | 19 #include "src/compiler/scheduler.h" |
| 19 #include "src/compiler/simplified-lowering.h" | 20 #include "src/compiler/simplified-lowering.h" |
| 20 #include "src/compiler/typer.h" | 21 #include "src/compiler/typer.h" |
| 21 #include "src/compiler/verifier.h" | 22 #include "src/compiler/verifier.h" |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 OFStream os(stdout); | 282 OFStream os(stdout); |
| 282 os << "----- Instruction sequence after register allocation -----\n" | 283 os << "----- Instruction sequence after register allocation -----\n" |
| 283 << sequence; | 284 << sequence; |
| 284 } | 285 } |
| 285 | 286 |
| 286 // Generate native sequence. | 287 // Generate native sequence. |
| 287 CodeGenerator generator(&sequence); | 288 CodeGenerator generator(&sequence); |
| 288 return generator.GenerateCode(); | 289 return generator.GenerateCode(); |
| 289 } | 290 } |
| 290 | 291 |
| 292 |
| 293 void Pipeline::SetUp() { |
| 294 InstructionOperand::SetUpCaches(); |
| 295 } |
| 296 |
| 297 |
| 298 void Pipeline::TearDown() { |
| 299 InstructionOperand::TearDownCaches(); |
| 300 } |
| 301 |
| 291 } // namespace compiler | 302 } // namespace compiler |
| 292 } // namespace internal | 303 } // namespace internal |
| 293 } // namespace v8 | 304 } // namespace v8 |
| OLD | NEW |