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

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

Issue 1925743002: [compiler] Rename OptimizingCompileJob to CompilationJob. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-compiler-simplify-29
Patch Set: Fix tests as well. Created 4 years, 7 months 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.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/objects.h" 10 #include "src/objects.h"
11 11
12 namespace v8 { 12 namespace v8 {
13 namespace internal { 13 namespace internal {
14 14
15 class CompilationInfo; 15 class CompilationInfo;
16 class OptimizedCompileJob; 16 class CompilationJob;
17 class RegisterConfiguration; 17 class RegisterConfiguration;
18 18
19 namespace compiler { 19 namespace compiler {
20 20
21 class CallDescriptor; 21 class CallDescriptor;
22 class Graph; 22 class Graph;
23 class InstructionSequence; 23 class InstructionSequence;
24 class Linkage; 24 class Linkage;
25 class PipelineData; 25 class PipelineData;
26 class Schedule; 26 class Schedule;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 bool run_verifier); 66 bool run_verifier);
67 67
68 // Run the pipeline on a machine graph and generate code. If {schedule} is 68 // Run the pipeline on a machine graph and generate code. If {schedule} is
69 // {nullptr}, then compute a new schedule for code generation. 69 // {nullptr}, then compute a new schedule for code generation.
70 static Handle<Code> GenerateCodeForTesting(CompilationInfo* info, 70 static Handle<Code> GenerateCodeForTesting(CompilationInfo* info,
71 CallDescriptor* call_descriptor, 71 CallDescriptor* call_descriptor,
72 Graph* graph, 72 Graph* graph,
73 Schedule* schedule = nullptr); 73 Schedule* schedule = nullptr);
74 74
75 // Returns a new compilation job for the given compilation info. 75 // Returns a new compilation job for the given compilation info.
76 static OptimizedCompileJob* NewCompilationJob(CompilationInfo* info); 76 static CompilationJob* NewCompilationJob(CompilationInfo* info);
77 77
78 // Returns a new compilation job for the WebAssembly compilation info. 78 // Returns a new compilation job for the WebAssembly compilation info.
79 static OptimizedCompileJob* NewWasmCompilationJob( 79 static CompilationJob* NewWasmCompilationJob(
80 CompilationInfo* info, Graph* graph, CallDescriptor* descriptor, 80 CompilationInfo* info, Graph* graph, CallDescriptor* descriptor,
81 SourcePositionTable* source_positions); 81 SourcePositionTable* source_positions);
82 82
83 // TODO(mstarzinger, bmeurer): This shouldn't be public! 83 // TODO(mstarzinger, bmeurer): This shouldn't be public!
84 bool ScheduleAndSelectInstructions(Linkage* linkage); 84 bool ScheduleAndSelectInstructions(Linkage* linkage);
85 85
86 private: 86 private:
87 // Helpers for executing pipeline phases. 87 // Helpers for executing pipeline phases.
88 template <typename Phase> 88 template <typename Phase>
89 void Run(); 89 void Run();
(...skipping 15 matching lines...) Expand all
105 PipelineData* const data_; 105 PipelineData* const data_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(Pipeline); 107 DISALLOW_COPY_AND_ASSIGN(Pipeline);
108 }; 108 };
109 109
110 } // namespace compiler 110 } // namespace compiler
111 } // namespace internal 111 } // namespace internal
112 } // namespace v8 112 } // namespace v8
113 113
114 #endif // V8_COMPILER_PIPELINE_H_ 114 #endif // V8_COMPILER_PIPELINE_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698