| 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 #ifndef V8_COMPILER_PIPELINE_H_ | 5 #ifndef V8_COMPILER_PIPELINE_H_ |
| 6 #define V8_COMPILER_PIPELINE_H_ | 6 #define V8_COMPILER_PIPELINE_H_ |
| 7 | 7 |
| 8 // Clients of this interface shouldn't depend on lots of compiler internals. | 8 // Clients of this interface shouldn't depend on lots of compiler internals. |
| 9 // Do not include anything from src/compiler here! | 9 // Do not include anything from src/compiler here! |
| 10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace internal { |
| 14 | |
| 15 class RegisterConfiguration; | |
| 16 | |
| 17 namespace compiler { | 14 namespace compiler { |
| 18 | 15 |
| 19 class CallDescriptor; | 16 class CallDescriptor; |
| 20 class Graph; | 17 class Graph; |
| 21 class InstructionSequence; | 18 class InstructionSequence; |
| 22 class Linkage; | 19 class Linkage; |
| 23 class PipelineData; | 20 class PipelineData; |
| 21 class RegisterConfiguration; |
| 24 class Schedule; | 22 class Schedule; |
| 25 | 23 |
| 26 class Pipeline { | 24 class Pipeline { |
| 27 public: | 25 public: |
| 28 explicit Pipeline(CompilationInfo* info) : info_(info) {} | 26 explicit Pipeline(CompilationInfo* info) : info_(info) {} |
| 29 | 27 |
| 30 // Run the entire pipeline and generate a handle to a code object. | 28 // Run the entire pipeline and generate a handle to a code object. |
| 31 Handle<Code> GenerateCode(); | 29 Handle<Code> GenerateCode(); |
| 32 | 30 |
| 33 // Run the pipeline on an interpreter bytecode handler machine graph and | 31 // Run the pipeline on an interpreter bytecode handler machine graph and |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 Handle<Code> ScheduleAndGenerateCode(CallDescriptor* call_descriptor); | 70 Handle<Code> ScheduleAndGenerateCode(CallDescriptor* call_descriptor); |
| 73 void AllocateRegisters(const RegisterConfiguration* config, | 71 void AllocateRegisters(const RegisterConfiguration* config, |
| 74 CallDescriptor* descriptor, bool run_verifier); | 72 CallDescriptor* descriptor, bool run_verifier); |
| 75 }; | 73 }; |
| 76 | 74 |
| 77 } // namespace compiler | 75 } // namespace compiler |
| 78 } // namespace internal | 76 } // namespace internal |
| 79 } // namespace v8 | 77 } // namespace v8 |
| 80 | 78 |
| 81 #endif // V8_COMPILER_PIPELINE_H_ | 79 #endif // V8_COMPILER_PIPELINE_H_ |
| OLD | NEW |