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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 static inline bool SupportedTarget() { return V8_TURBOFAN_TARGET != 0; } | 43 static inline bool SupportedTarget() { return V8_TURBOFAN_TARGET != 0; } |
44 | 44 |
45 static inline bool VerifyGraphs() { | 45 static inline bool VerifyGraphs() { |
46 #ifdef DEBUG | 46 #ifdef DEBUG |
47 return true; | 47 return true; |
48 #else | 48 #else |
49 return FLAG_turbo_verify; | 49 return FLAG_turbo_verify; |
50 #endif | 50 #endif |
51 } | 51 } |
52 | 52 |
| 53 static void SetUp(); |
| 54 static void TearDown(); |
| 55 |
53 private: | 56 private: |
54 CompilationInfo* info_; | 57 CompilationInfo* info_; |
55 | 58 |
56 Schedule* ComputeSchedule(Graph* graph); | 59 Schedule* ComputeSchedule(Graph* graph); |
57 void VerifyAndPrintGraph(Graph* graph, const char* phase); | 60 void VerifyAndPrintGraph(Graph* graph, const char* phase); |
58 Handle<Code> GenerateCode(Linkage* linkage, Graph* graph, Schedule* schedule, | 61 Handle<Code> GenerateCode(Linkage* linkage, Graph* graph, Schedule* schedule, |
59 SourcePositionTable* source_positions); | 62 SourcePositionTable* source_positions); |
60 }; | 63 }; |
61 } | 64 } |
62 } | 65 } |
63 } // namespace v8::internal::compiler | 66 } // namespace v8::internal::compiler |
64 | 67 |
65 #endif // V8_COMPILER_PIPELINE_H_ | 68 #endif // V8_COMPILER_PIPELINE_H_ |
OLD | NEW |