Chromium Code Reviews| 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 <fstream> // NOLINT(readability/streams) | 8 #include <fstream> // NOLINT(readability/streams) |
| 9 | 9 |
| 10 #include "src/v8.h" | 10 #include "src/v8.h" |
| 11 | 11 |
| 12 #include "src/compiler.h" | 12 #include "src/compiler.h" |
| 13 #include "src/compiler/verifier.h" | |
|
Michael Starzinger
2014/10/14 18:28:27
Nope! Please don't inlclude any other header in th
rossberg
2014/10/15 06:47:58
Sigh. Proliferation like this is just one ugly con
rossberg
2014/10/15 08:59:08
Done.
| |
| 13 | 14 |
| 14 // Note: TODO(turbofan) implies a performance improvement opportunity, | 15 // Note: TODO(turbofan) implies a performance improvement opportunity, |
| 15 // and TODO(name) implies an incomplete implementation | 16 // and TODO(name) implies an incomplete implementation |
| 16 | 17 |
| 17 namespace v8 { | 18 namespace v8 { |
| 18 namespace internal { | 19 namespace internal { |
| 19 namespace compiler { | 20 namespace compiler { |
| 20 | 21 |
| 21 // Clients of this interface shouldn't depend on lots of compiler internals. | 22 // Clients of this interface shouldn't depend on lots of compiler internals. |
| 22 class Graph; | 23 class Graph; |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 51 Isolate* isolate() { return info_->isolate(); } | 52 Isolate* isolate() { return info_->isolate(); } |
| 52 Zone* zone() { return info_->zone(); } | 53 Zone* zone() { return info_->zone(); } |
| 53 | 54 |
| 54 Schedule* ComputeSchedule(Graph* graph); | 55 Schedule* ComputeSchedule(Graph* graph); |
| 55 void OpenTurboCfgFile(std::ofstream* stream); | 56 void OpenTurboCfgFile(std::ofstream* stream); |
| 56 void PrintCompilationStart(); | 57 void PrintCompilationStart(); |
| 57 void PrintScheduleAndInstructions(const char* phase, const Schedule* schedule, | 58 void PrintScheduleAndInstructions(const char* phase, const Schedule* schedule, |
| 58 const SourcePositionTable* positions, | 59 const SourcePositionTable* positions, |
| 59 const InstructionSequence* instructions); | 60 const InstructionSequence* instructions); |
| 60 void PrintAllocator(const char* phase, const RegisterAllocator* allocator); | 61 void PrintAllocator(const char* phase, const RegisterAllocator* allocator); |
| 61 void VerifyAndPrintGraph(Graph* graph, const char* phase); | 62 void VerifyAndPrintGraph(Graph* graph, const char* phase, |
| 63 Verifier::Typing = Verifier::TYPED); | |
| 62 Handle<Code> GenerateCode(Linkage* linkage, Graph* graph, Schedule* schedule, | 64 Handle<Code> GenerateCode(Linkage* linkage, Graph* graph, Schedule* schedule, |
| 63 SourcePositionTable* source_positions); | 65 SourcePositionTable* source_positions); |
| 64 }; | 66 }; |
| 65 } | 67 } |
| 66 } | 68 } |
| 67 } // namespace v8::internal::compiler | 69 } // namespace v8::internal::compiler |
| 68 | 70 |
| 69 #endif // V8_COMPILER_PIPELINE_H_ | 71 #endif // V8_COMPILER_PIPELINE_H_ |
| OLD | NEW |