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

Side by Side Diff: src/compiler.h

Issue 2662883003: Add a test for OptimizingCompileDispatcher::Flush's non-blocking behavior (Closed)
Patch Set: updates Created 3 years, 10 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/compilation-info.h ('k') | src/compiler-dispatcher/optimizing-compile-dispatcher.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_H_ 5 #ifndef V8_COMPILER_H_
6 #define V8_COMPILER_H_ 6 #define V8_COMPILER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 // A base class for compilation jobs intended to run concurrent to the main 148 // A base class for compilation jobs intended to run concurrent to the main
149 // thread. The job is split into three phases which are called in sequence on 149 // thread. The job is split into three phases which are called in sequence on
150 // different threads and with different limitations: 150 // different threads and with different limitations:
151 // 1) PrepareJob: Runs on main thread. No major limitations. 151 // 1) PrepareJob: Runs on main thread. No major limitations.
152 // 2) ExecuteJob: Runs concurrently. No heap allocation or handle derefs. 152 // 2) ExecuteJob: Runs concurrently. No heap allocation or handle derefs.
153 // 3) FinalizeJob: Runs on main thread. No dependency changes. 153 // 3) FinalizeJob: Runs on main thread. No dependency changes.
154 // 154 //
155 // Each of the three phases can either fail or succeed. The current state of 155 // Each of the three phases can either fail or succeed. The current state of
156 // the job can be checked using {state()}. 156 // the job can be checked using {state()}.
157 class CompilationJob { 157 class V8_EXPORT_PRIVATE CompilationJob {
158 public: 158 public:
159 enum Status { SUCCEEDED, FAILED }; 159 enum Status { SUCCEEDED, FAILED };
160 enum class State { 160 enum class State {
161 kReadyToPrepare, 161 kReadyToPrepare,
162 kReadyToExecute, 162 kReadyToExecute,
163 kReadyToFinalize, 163 kReadyToFinalize,
164 kSucceeded, 164 kSucceeded,
165 kFailed, 165 kFailed,
166 }; 166 };
167 167
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 state_ = State::kFailed; 233 state_ = State::kFailed;
234 } 234 }
235 return status; 235 return status;
236 } 236 }
237 }; 237 };
238 238
239 } // namespace internal 239 } // namespace internal
240 } // namespace v8 240 } // namespace v8
241 241
242 #endif // V8_COMPILER_H_ 242 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/compilation-info.h ('k') | src/compiler-dispatcher/optimizing-compile-dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698