Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: src/compiler/pipeline.h

Issue 2528033002: [wasm] Add a flag --wasm-opt to test optimizations in the WASM pipeline. (Closed)
Patch Set: [wasm] Add a flag --wasm-opt to test optimizations in the WASM pipeline. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/machine-operator-reducer.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "src/objects.h" 11 #include "src/objects.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 15
16 class CompilationInfo; 16 class CompilationInfo;
17 class CompilationJob; 17 class CompilationJob;
18 class RegisterConfiguration; 18 class RegisterConfiguration;
19 19
20 namespace compiler { 20 namespace compiler {
21 21
22 class CallDescriptor; 22 class CallDescriptor;
23 class JSGraph;
23 class Graph; 24 class Graph;
24 class InstructionSequence; 25 class InstructionSequence;
25 class Schedule; 26 class Schedule;
26 class SourcePositionTable; 27 class SourcePositionTable;
27 28
28 class Pipeline : public AllStatic { 29 class Pipeline : public AllStatic {
29 public: 30 public:
30 // Returns a new compilation job for the given function. 31 // Returns a new compilation job for the given function.
31 static CompilationJob* NewCompilationJob(Handle<JSFunction> function); 32 static CompilationJob* NewCompilationJob(Handle<JSFunction> function);
32 33
33 // Returns a new compilation job for the WebAssembly compilation info. 34 // Returns a new compilation job for the WebAssembly compilation info.
34 static CompilationJob* NewWasmCompilationJob( 35 static CompilationJob* NewWasmCompilationJob(
35 CompilationInfo* info, Graph* graph, CallDescriptor* descriptor, 36 CompilationInfo* info, JSGraph* jsgraph, CallDescriptor* descriptor,
36 SourcePositionTable* source_positions); 37 SourcePositionTable* source_positions);
37 38
38 // Run the pipeline on a machine graph and generate code. The {schedule} must 39 // Run the pipeline on a machine graph and generate code. The {schedule} must
39 // be valid, hence the given {graph} does not need to be schedulable. 40 // be valid, hence the given {graph} does not need to be schedulable.
40 static Handle<Code> GenerateCodeForCodeStub(Isolate* isolate, 41 static Handle<Code> GenerateCodeForCodeStub(Isolate* isolate,
41 CallDescriptor* call_descriptor, 42 CallDescriptor* call_descriptor,
42 Graph* graph, Schedule* schedule, 43 Graph* graph, Schedule* schedule,
43 Code::Flags flags, 44 Code::Flags flags,
44 const char* debug_name); 45 const char* debug_name);
45 46
(...skipping 21 matching lines...) Expand all
67 68
68 private: 69 private:
69 DISALLOW_IMPLICIT_CONSTRUCTORS(Pipeline); 70 DISALLOW_IMPLICIT_CONSTRUCTORS(Pipeline);
70 }; 71 };
71 72
72 } // namespace compiler 73 } // namespace compiler
73 } // namespace internal 74 } // namespace internal
74 } // namespace v8 75 } // namespace v8
75 76
76 #endif // V8_COMPILER_PIPELINE_H_ 77 #endif // V8_COMPILER_PIPELINE_H_
OLDNEW
« no previous file with comments | « src/compiler/machine-operator-reducer.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698