| 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) | |
| 9 | |
| 10 #include "src/v8.h" | 8 #include "src/v8.h" |
| 11 | 9 |
| 12 #include "src/compiler.h" | 10 #include "src/compiler.h" |
| 13 | 11 |
| 14 // Note: TODO(turbofan) implies a performance improvement opportunity, | 12 // Note: TODO(turbofan) implies a performance improvement opportunity, |
| 15 // and TODO(name) implies an incomplete implementation | 13 // and TODO(name) implies an incomplete implementation |
| 16 | 14 |
| 17 namespace v8 { | 15 namespace v8 { |
| 18 namespace internal { | 16 namespace internal { |
| 19 namespace compiler { | 17 namespace compiler { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 47 static void TearDown(); | 45 static void TearDown(); |
| 48 | 46 |
| 49 private: | 47 private: |
| 50 CompilationInfo* info_; | 48 CompilationInfo* info_; |
| 51 | 49 |
| 52 CompilationInfo* info() const { return info_; } | 50 CompilationInfo* info() const { return info_; } |
| 53 Isolate* isolate() { return info_->isolate(); } | 51 Isolate* isolate() { return info_->isolate(); } |
| 54 Zone* zone() { return info_->zone(); } | 52 Zone* zone() { return info_->zone(); } |
| 55 | 53 |
| 56 Schedule* ComputeSchedule(ZonePool* zone_pool, Graph* graph); | 54 Schedule* ComputeSchedule(ZonePool* zone_pool, Graph* graph); |
| 57 void OpenTurboCfgFile(std::ofstream* stream); | |
| 58 void PrintCompilationStart(); | |
| 59 void PrintScheduleAndInstructions(const char* phase, const Schedule* schedule, | |
| 60 const SourcePositionTable* positions, | |
| 61 const InstructionSequence* instructions); | |
| 62 void PrintAllocator(const char* phase, const RegisterAllocator* allocator); | |
| 63 void VerifyAndPrintGraph(Graph* graph, const char* phase, | 55 void VerifyAndPrintGraph(Graph* graph, const char* phase, |
| 64 bool untyped = false); | 56 bool untyped = false); |
| 65 Handle<Code> GenerateCode(PipelineStatistics* pipeline_statistics, | 57 Handle<Code> GenerateCode(PipelineStatistics* pipeline_statistics, |
| 66 ZonePool* zone_pool, Linkage* linkage, Graph* graph, | 58 ZonePool* zone_pool, Linkage* linkage, Graph* graph, |
| 67 Schedule* schedule, | 59 Schedule* schedule, |
| 68 SourcePositionTable* source_positions); | 60 SourcePositionTable* source_positions); |
| 69 }; | 61 }; |
| 70 } | 62 } |
| 71 } | 63 } |
| 72 } // namespace v8::internal::compiler | 64 } // namespace v8::internal::compiler |
| 73 | 65 |
| 74 #endif // V8_COMPILER_PIPELINE_H_ | 66 #endif // V8_COMPILER_PIPELINE_H_ |
| OLD | NEW |