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/objects.h" | 10 #include "src/objects.h" |
(...skipping 17 matching lines...) Expand all Loading... | |
28 | 28 |
29 class Pipeline { | 29 class Pipeline { |
30 public: | 30 public: |
31 explicit Pipeline(CompilationInfo* info) : info_(info), data_(nullptr) {} | 31 explicit Pipeline(CompilationInfo* info) : info_(info), data_(nullptr) {} |
32 | 32 |
33 // Run the entire pipeline and generate a handle to a code object. | 33 // Run the entire pipeline and generate a handle to a code object. |
34 Handle<Code> GenerateCode(); | 34 Handle<Code> GenerateCode(); |
35 | 35 |
36 // Run the pipeline on a machine graph, compute a new schedule and generate | 36 // Run the pipeline on a machine graph, compute a new schedule and generate |
37 // code. | 37 // code. |
38 static Handle<Code> GenerateWASMCode(CompilationInfo* info, | 38 static Handle<Code> GenerateWASMCode( |
39 CallDescriptor* call_descriptor, | 39 CompilationInfo* info, CallDescriptor* call_descriptor, Graph* graph, |
40 Graph* graph, | 40 SourcePositionTable* source_positions, |
41 SourcePositionTable* source_positions); | 41 Handle<Object> wasm_obj = Handle<Object>(), uint32_t func_index = 0); |
titzer
2016/04/22 13:21:07
Let's not have defaults for these last parameters.
Clemens Hammacher
2016/04/22 14:38:40
OK. They were only used from the tests anyway.
| |
42 | 42 |
43 // Run the pipeline on a machine graph and generate code. The {schedule} must | 43 // Run the pipeline on a machine graph and generate code. The {schedule} must |
44 // be valid, hence the given {graph} does not need to be schedulable. | 44 // be valid, hence the given {graph} does not need to be schedulable. |
45 static Handle<Code> GenerateCodeForCodeStub(Isolate* isolate, | 45 static Handle<Code> GenerateCodeForCodeStub(Isolate* isolate, |
46 CallDescriptor* call_descriptor, | 46 CallDescriptor* call_descriptor, |
47 Graph* graph, Schedule* schedule, | 47 Graph* graph, Schedule* schedule, |
48 Code::Flags flags, | 48 Code::Flags flags, |
49 const char* debug_name); | 49 const char* debug_name); |
50 | 50 |
51 // Run the pipeline on a machine graph and generate code. If {schedule} is | 51 // Run the pipeline on a machine graph and generate code. If {schedule} is |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 PipelineData* data_; | 91 PipelineData* data_; |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(Pipeline); | 93 DISALLOW_COPY_AND_ASSIGN(Pipeline); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace compiler | 96 } // namespace compiler |
97 } // namespace internal | 97 } // namespace internal |
98 } // namespace v8 | 98 } // namespace v8 |
99 | 99 |
100 #endif // V8_COMPILER_PIPELINE_H_ | 100 #endif // V8_COMPILER_PIPELINE_H_ |
OLD | NEW |