| 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 23 matching lines...) Expand all Loading... |
| 34 class Pipeline : public AllStatic { | 34 class Pipeline : public AllStatic { |
| 35 public: | 35 public: |
| 36 // Returns a new compilation job for the given function. | 36 // Returns a new compilation job for the given function. |
| 37 static CompilationJob* NewCompilationJob(Handle<JSFunction> function); | 37 static CompilationJob* NewCompilationJob(Handle<JSFunction> function); |
| 38 | 38 |
| 39 // Returns a new compilation job for the WebAssembly compilation info. | 39 // Returns a new compilation job for the WebAssembly compilation info. |
| 40 static CompilationJob* NewWasmCompilationJob( | 40 static CompilationJob* NewWasmCompilationJob( |
| 41 CompilationInfo* info, JSGraph* jsgraph, CallDescriptor* descriptor, | 41 CompilationInfo* info, JSGraph* jsgraph, CallDescriptor* descriptor, |
| 42 SourcePositionTable* source_positions, | 42 SourcePositionTable* source_positions, |
| 43 ZoneVector<trap_handler::ProtectedInstructionData>* | 43 ZoneVector<trap_handler::ProtectedInstructionData>* |
| 44 protected_instructions); | 44 protected_instructions, |
| 45 bool wasm_origin); |
| 45 | 46 |
| 46 // Run the pipeline on a machine graph and generate code. The {schedule} must | 47 // Run the pipeline on a machine graph and generate code. The {schedule} must |
| 47 // be valid, hence the given {graph} does not need to be schedulable. | 48 // be valid, hence the given {graph} does not need to be schedulable. |
| 48 static Handle<Code> GenerateCodeForCodeStub(Isolate* isolate, | 49 static Handle<Code> GenerateCodeForCodeStub(Isolate* isolate, |
| 49 CallDescriptor* call_descriptor, | 50 CallDescriptor* call_descriptor, |
| 50 Graph* graph, Schedule* schedule, | 51 Graph* graph, Schedule* schedule, |
| 51 Code::Flags flags, | 52 Code::Flags flags, |
| 52 const char* debug_name); | 53 const char* debug_name); |
| 53 | 54 |
| 54 // Run the entire pipeline and generate a handle to a code object suitable for | 55 // Run the entire pipeline and generate a handle to a code object suitable for |
| (...skipping 20 matching lines...) Expand all Loading... |
| 75 | 76 |
| 76 private: | 77 private: |
| 77 DISALLOW_IMPLICIT_CONSTRUCTORS(Pipeline); | 78 DISALLOW_IMPLICIT_CONSTRUCTORS(Pipeline); |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 } // namespace compiler | 81 } // namespace compiler |
| 81 } // namespace internal | 82 } // namespace internal |
| 82 } // namespace v8 | 83 } // namespace v8 |
| 83 | 84 |
| 84 #endif // V8_COMPILER_PIPELINE_H_ | 85 #endif // V8_COMPILER_PIPELINE_H_ |
| OLD | NEW |