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/objects.h" | 10 #include "src/objects.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 // Run the graph creation and initial optimization passes. | 83 // Run the graph creation and initial optimization passes. |
84 bool CreateGraph(); | 84 bool CreateGraph(); |
85 | 85 |
86 // Run the concurrent optimization passes. | 86 // Run the concurrent optimization passes. |
87 bool OptimizeGraph(Linkage* linkage); | 87 bool OptimizeGraph(Linkage* linkage); |
88 | 88 |
89 // Perform the actual code generation and return handle to a code object. | 89 // Perform the actual code generation and return handle to a code object. |
90 Handle<Code> GenerateCode(Linkage* linkage); | 90 Handle<Code> GenerateCode(Linkage* linkage); |
91 | 91 |
92 // Run the entire pipeline and generate a handle to a code object. | |
93 Handle<Code> GenerateCode(); | |
94 | |
95 void BeginPhaseKind(const char* phase_kind); | |
96 void EndPhaseKind(); | |
97 bool ScheduleAndSelectInstructions(Linkage* linkage); | 92 bool ScheduleAndSelectInstructions(Linkage* linkage); |
98 void RunPrintAndVerify(const char* phase, bool untyped = false); | 93 void RunPrintAndVerify(const char* phase, bool untyped = false); |
99 Handle<Code> ScheduleAndGenerateCode(CallDescriptor* call_descriptor); | 94 Handle<Code> ScheduleAndGenerateCode(CallDescriptor* call_descriptor); |
100 void AllocateRegisters(const RegisterConfiguration* config, | 95 void AllocateRegisters(const RegisterConfiguration* config, |
101 CallDescriptor* descriptor, bool run_verifier); | 96 CallDescriptor* descriptor, bool run_verifier); |
102 | 97 |
103 CompilationInfo* info() const; | 98 CompilationInfo* info() const; |
104 Isolate* isolate() const; | 99 Isolate* isolate() const; |
105 | 100 |
106 PipelineData* const data_; | 101 PipelineData* const data_; |
107 | 102 |
108 DISALLOW_COPY_AND_ASSIGN(Pipeline); | 103 DISALLOW_COPY_AND_ASSIGN(Pipeline); |
109 }; | 104 }; |
110 | 105 |
111 } // namespace compiler | 106 } // namespace compiler |
112 } // namespace internal | 107 } // namespace internal |
113 } // namespace v8 | 108 } // namespace v8 |
114 | 109 |
115 #endif // V8_COMPILER_PIPELINE_H_ | 110 #endif // V8_COMPILER_PIPELINE_H_ |
OLD | NEW |