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/compiler.h" | 10 #include "src/compiler.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 private: | 59 private: |
60 CompilationInfo* info_; | 60 CompilationInfo* info_; |
61 PipelineData* data_; | 61 PipelineData* data_; |
62 | 62 |
63 // Helpers for executing pipeline phases. | 63 // Helpers for executing pipeline phases. |
64 template <typename Phase> | 64 template <typename Phase> |
65 void Run(); | 65 void Run(); |
66 template <typename Phase, typename Arg0> | 66 template <typename Phase, typename Arg0> |
67 void Run(Arg0 arg_0); | 67 void Run(Arg0 arg_0); |
| 68 template <typename Phase, typename Arg0, typename Arg1> |
| 69 void Run(Arg0 arg_0, Arg1 arg_1); |
68 | 70 |
69 CompilationInfo* info() const { return info_; } | 71 CompilationInfo* info() const { return info_; } |
70 Isolate* isolate() { return info_->isolate(); } | 72 Isolate* isolate() { return info_->isolate(); } |
71 | 73 |
72 void BeginPhaseKind(const char* phase_kind); | 74 void BeginPhaseKind(const char* phase_kind); |
73 void RunPrintAndVerify(const char* phase, bool untyped = false); | 75 void RunPrintAndVerify(const char* phase, bool untyped = false); |
74 Handle<Code> ScheduleAndGenerateCode(CallDescriptor* call_descriptor); | 76 Handle<Code> ScheduleAndGenerateCode(CallDescriptor* call_descriptor); |
75 void AllocateRegisters(const RegisterConfiguration* config, | 77 void AllocateRegisters(const RegisterConfiguration* config, |
76 CallDescriptor* descriptor, bool run_verifier); | 78 CallDescriptor* descriptor, bool run_verifier); |
77 }; | 79 }; |
78 | 80 |
79 } // namespace compiler | 81 } // namespace compiler |
80 } // namespace internal | 82 } // namespace internal |
81 } // namespace v8 | 83 } // namespace v8 |
82 | 84 |
83 #endif // V8_COMPILER_PIPELINE_H_ | 85 #endif // V8_COMPILER_PIPELINE_H_ |
OLD | NEW |