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

Side by Side Diff: src/compiler.h

Issue 2957693002: Merged changes to avoid OOM for large wasm modules. (Closed)
Patch Set: Created 3 years, 5 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 | « no previous file | 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 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 uintptr_t stack_limit() const { return stack_limit_; } 196 uintptr_t stack_limit() const { return stack_limit_; }
197 197
198 bool executed_on_background_thread() const { 198 bool executed_on_background_thread() const {
199 DCHECK_IMPLIES(!can_execute_on_background_thread(), 199 DCHECK_IMPLIES(!can_execute_on_background_thread(),
200 !executed_on_background_thread_); 200 !executed_on_background_thread_);
201 return executed_on_background_thread_; 201 return executed_on_background_thread_;
202 } 202 }
203 State state() const { return state_; } 203 State state() const { return state_; }
204 CompilationInfo* info() const { return info_; } 204 CompilationInfo* info() const { return info_; }
205 Isolate* isolate() const; 205 Isolate* isolate() const;
206 virtual size_t AllocatedMemory() const { return 0; }
206 207
207 protected: 208 protected:
208 // Overridden by the actual implementation. 209 // Overridden by the actual implementation.
209 virtual Status PrepareJobImpl() = 0; 210 virtual Status PrepareJobImpl() = 0;
210 virtual Status ExecuteJobImpl() = 0; 211 virtual Status ExecuteJobImpl() = 0;
211 virtual Status FinalizeJobImpl() = 0; 212 virtual Status FinalizeJobImpl() = 0;
212 213
213 // Registers weak object to optimized code dependencies. 214 // Registers weak object to optimized code dependencies.
214 // TODO(turbofan): Move this to pipeline.cc once Crankshaft dies. 215 // TODO(turbofan): Move this to pipeline.cc once Crankshaft dies.
215 void RegisterWeakObjectsInOptimizedCode(Handle<Code> code); 216 void RegisterWeakObjectsInOptimizedCode(Handle<Code> code);
(...skipping 16 matching lines...) Expand all
232 state_ = State::kFailed; 233 state_ = State::kFailed;
233 } 234 }
234 return status; 235 return status;
235 } 236 }
236 }; 237 };
237 238
238 } // namespace internal 239 } // namespace internal
239 } // namespace v8 240 } // namespace v8
240 241
241 #endif // V8_COMPILER_H_ 242 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698