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 16 matching lines...) Expand all Loading... |
27 class CallDescriptor; | 27 class CallDescriptor; |
28 class JSGraph; | 28 class JSGraph; |
29 class Graph; | 29 class Graph; |
30 class InstructionSequence; | 30 class InstructionSequence; |
31 class Schedule; | 31 class Schedule; |
32 class SourcePositionTable; | 32 class SourcePositionTable; |
33 | 33 |
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 bool has_script); |
38 | 39 |
39 // Returns a new compilation job for the WebAssembly compilation info. | 40 // Returns a new compilation job for the WebAssembly compilation info. |
40 static CompilationJob* NewWasmCompilationJob( | 41 static CompilationJob* NewWasmCompilationJob( |
41 CompilationInfo* info, JSGraph* jsgraph, CallDescriptor* descriptor, | 42 CompilationInfo* info, JSGraph* jsgraph, CallDescriptor* descriptor, |
42 SourcePositionTable* source_positions, | 43 SourcePositionTable* source_positions, |
43 ZoneVector<trap_handler::ProtectedInstructionData>* | 44 ZoneVector<trap_handler::ProtectedInstructionData>* |
44 protected_instructions, | 45 protected_instructions, |
45 bool wasm_origin); | 46 bool wasm_origin); |
46 | 47 |
47 // Run the pipeline on a machine graph and generate code. The {schedule} must | 48 // Run the pipeline on a machine graph and generate code. The {schedule} must |
(...skipping 28 matching lines...) Expand all Loading... |
76 | 77 |
77 private: | 78 private: |
78 DISALLOW_IMPLICIT_CONSTRUCTORS(Pipeline); | 79 DISALLOW_IMPLICIT_CONSTRUCTORS(Pipeline); |
79 }; | 80 }; |
80 | 81 |
81 } // namespace compiler | 82 } // namespace compiler |
82 } // namespace internal | 83 } // namespace internal |
83 } // namespace v8 | 84 } // namespace v8 |
84 | 85 |
85 #endif // V8_COMPILER_PIPELINE_H_ | 86 #endif // V8_COMPILER_PIPELINE_H_ |
OLD | NEW |