| 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/globals.h" | 10 #include "src/globals.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 Graph* graph, | 61 Graph* graph, |
| 62 Schedule* schedule = nullptr); | 62 Schedule* schedule = nullptr); |
| 63 | 63 |
| 64 // Run just the register allocator phases. | 64 // Run just the register allocator phases. |
| 65 V8_EXPORT_PRIVATE static bool AllocateRegistersForTesting( | 65 V8_EXPORT_PRIVATE static bool AllocateRegistersForTesting( |
| 66 const RegisterConfiguration* config, InstructionSequence* sequence, | 66 const RegisterConfiguration* config, InstructionSequence* sequence, |
| 67 bool run_verifier); | 67 bool run_verifier); |
| 68 | 68 |
| 69 // Run the pipeline on a machine graph and generate code. If {schedule} is | 69 // Run the pipeline on a machine graph and generate code. If {schedule} is |
| 70 // {nullptr}, then compute a new schedule for code generation. | 70 // {nullptr}, then compute a new schedule for code generation. |
| 71 static Handle<Code> GenerateCodeForTesting(CompilationInfo* info, | 71 static Handle<Code> GenerateCodeForTesting( |
| 72 CallDescriptor* call_descriptor, | 72 CompilationInfo* info, CallDescriptor* call_descriptor, Graph* graph, |
| 73 Graph* graph, | 73 Schedule* schedule = nullptr, |
| 74 Schedule* schedule = nullptr); | 74 SourcePositionTable* source_positions = nullptr); |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 DISALLOW_IMPLICIT_CONSTRUCTORS(Pipeline); | 77 DISALLOW_IMPLICIT_CONSTRUCTORS(Pipeline); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace compiler | 80 } // namespace compiler |
| 81 } // namespace internal | 81 } // namespace internal |
| 82 } // namespace v8 | 82 } // namespace v8 |
| 83 | 83 |
| 84 #endif // V8_COMPILER_PIPELINE_H_ | 84 #endif // V8_COMPILER_PIPELINE_H_ |
| OLD | NEW |