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 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 Handle<Code> GenerateCode(); | 30 Handle<Code> GenerateCode(); |
31 | 31 |
32 // Run the pipeline on a machine graph and generate code. If {schedule} is | 32 // Run the pipeline on a machine graph and generate code. If {schedule} is |
33 // {nullptr}, then compute a new schedule for code generation. | 33 // {nullptr}, then compute a new schedule for code generation. |
34 static Handle<Code> GenerateCodeForTesting(CompilationInfo* info, | 34 static Handle<Code> GenerateCodeForTesting(CompilationInfo* info, |
35 Graph* graph, | 35 Graph* graph, |
36 Schedule* schedule = nullptr); | 36 Schedule* schedule = nullptr); |
37 | 37 |
38 // Run the pipeline on a machine graph and generate code. If {schedule} is | 38 // Run the pipeline on a machine graph and generate code. If {schedule} is |
39 // {nullptr}, then compute a new schedule for code generation. | 39 // {nullptr}, then compute a new schedule for code generation. |
40 static Handle<Code> GenerateCodeForTesting(CallDescriptor* call_descriptor, | 40 static Handle<Code> GenerateCodeForTesting(Isolate* isolate, |
| 41 CallDescriptor* call_descriptor, |
41 Graph* graph, | 42 Graph* graph, |
42 Schedule* schedule = nullptr); | 43 Schedule* schedule = nullptr); |
43 | 44 |
44 // Run just the register allocator phases. | 45 // Run just the register allocator phases. |
45 static bool AllocateRegistersForTesting(const RegisterConfiguration* config, | 46 static bool AllocateRegistersForTesting(const RegisterConfiguration* config, |
46 InstructionSequence* sequence, | 47 InstructionSequence* sequence, |
47 bool run_verifier); | 48 bool run_verifier); |
48 | 49 |
49 static inline bool SupportedBackend() { return V8_TURBOFAN_BACKEND != 0; } | 50 static inline bool SupportedBackend() { return V8_TURBOFAN_BACKEND != 0; } |
50 static inline bool SupportedTarget() { return V8_TURBOFAN_TARGET != 0; } | 51 static inline bool SupportedTarget() { return V8_TURBOFAN_TARGET != 0; } |
(...skipping 23 matching lines...) Expand all Loading... |
74 void GenerateCode(Linkage* linkage); | 75 void GenerateCode(Linkage* linkage); |
75 void AllocateRegisters(const RegisterConfiguration* config, | 76 void AllocateRegisters(const RegisterConfiguration* config, |
76 bool run_verifier); | 77 bool run_verifier); |
77 }; | 78 }; |
78 | 79 |
79 } // namespace compiler | 80 } // namespace compiler |
80 } // namespace internal | 81 } // namespace internal |
81 } // namespace v8 | 82 } // namespace v8 |
82 | 83 |
83 #endif // V8_COMPILER_PIPELINE_H_ | 84 #endif // V8_COMPILER_PIPELINE_H_ |
OLD | NEW |