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 |
14 namespace compiler { | 17 namespace compiler { |
15 | 18 |
16 class CallDescriptor; | 19 class CallDescriptor; |
17 class Graph; | 20 class Graph; |
18 class InstructionSequence; | 21 class InstructionSequence; |
19 class Linkage; | 22 class Linkage; |
20 class PipelineData; | 23 class PipelineData; |
21 class RegisterConfiguration; | |
22 class Schedule; | 24 class Schedule; |
23 | 25 |
24 class Pipeline { | 26 class Pipeline { |
25 public: | 27 public: |
26 explicit Pipeline(CompilationInfo* info) : info_(info) {} | 28 explicit Pipeline(CompilationInfo* info) : info_(info) {} |
27 | 29 |
28 // Run the entire pipeline and generate a handle to a code object. | 30 // Run the entire pipeline and generate a handle to a code object. |
29 Handle<Code> GenerateCode(); | 31 Handle<Code> GenerateCode(); |
30 | 32 |
31 // Run the pipeline on an interpreter bytecode handler machine graph and | 33 // Run the pipeline on an interpreter bytecode handler machine graph and |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 Handle<Code> ScheduleAndGenerateCode(CallDescriptor* call_descriptor); | 72 Handle<Code> ScheduleAndGenerateCode(CallDescriptor* call_descriptor); |
71 void AllocateRegisters(const RegisterConfiguration* config, | 73 void AllocateRegisters(const RegisterConfiguration* config, |
72 CallDescriptor* descriptor, bool run_verifier); | 74 CallDescriptor* descriptor, bool run_verifier); |
73 }; | 75 }; |
74 | 76 |
75 } // namespace compiler | 77 } // namespace compiler |
76 } // namespace internal | 78 } // namespace internal |
77 } // namespace v8 | 79 } // namespace v8 |
78 | 80 |
79 #endif // V8_COMPILER_PIPELINE_H_ | 81 #endif // V8_COMPILER_PIPELINE_H_ |
OLD | NEW |