Index: src/compiler/pipeline.h |
diff --git a/src/compiler/pipeline.h b/src/compiler/pipeline.h |
index 66eb33734b75e69e4ea60fe4a7c898393a19c04b..64befbfe064ceb078a376b59f3af7b8b7bc6a027 100644 |
--- a/src/compiler/pipeline.h |
+++ b/src/compiler/pipeline.h |
@@ -21,12 +21,10 @@ namespace compiler { |
class CallDescriptor; |
class Graph; |
class InstructionSequence; |
-class Linkage; |
-class PipelineData; |
class Schedule; |
class SourcePositionTable; |
-class Pipeline { |
+class Pipeline : public AllStatic { |
public: |
// Returns a new compilation job for the given function. |
static CompilationJob* NewCompilationJob(Handle<JSFunction> function); |
@@ -67,40 +65,7 @@ class Pipeline { |
Schedule* schedule = nullptr); |
private: |
- friend class PipelineCompilationJob; |
- friend class PipelineWasmCompilationJob; |
- |
- explicit Pipeline(PipelineData* data) : data_(data) {} |
- |
- // Helpers for executing pipeline phases. |
- template <typename Phase> |
- void Run(); |
- template <typename Phase, typename Arg0> |
- void Run(Arg0 arg_0); |
- template <typename Phase, typename Arg0, typename Arg1> |
- void Run(Arg0 arg_0, Arg1 arg_1); |
- |
- // Run the graph creation and initial optimization passes. |
- bool CreateGraph(); |
- |
- // Run the concurrent optimization passes. |
- bool OptimizeGraph(Linkage* linkage); |
- |
- // Perform the actual code generation and return handle to a code object. |
- Handle<Code> GenerateCode(Linkage* linkage); |
- |
- bool ScheduleAndSelectInstructions(Linkage* linkage); |
- void RunPrintAndVerify(const char* phase, bool untyped = false); |
- Handle<Code> ScheduleAndGenerateCode(CallDescriptor* call_descriptor); |
- void AllocateRegisters(const RegisterConfiguration* config, |
- CallDescriptor* descriptor, bool run_verifier); |
- |
- CompilationInfo* info() const; |
- Isolate* isolate() const; |
- |
- PipelineData* const data_; |
- |
- DISALLOW_COPY_AND_ASSIGN(Pipeline); |
+ DISALLOW_IMPLICIT_CONSTRUCTORS(Pipeline); |
}; |
} // namespace compiler |