OLD | NEW |
---|---|
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 "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
261 void MarkAsSplittingEnabled() { SetFlag(kSplittingEnabled); } | 261 void MarkAsSplittingEnabled() { SetFlag(kSplittingEnabled); } |
262 | 262 |
263 bool is_splitting_enabled() const { return GetFlag(kSplittingEnabled); } | 263 bool is_splitting_enabled() const { return GetFlag(kSplittingEnabled); } |
264 | 264 |
265 void MarkAsFirstCompile() { SetFlag(kFirstCompile); } | 265 void MarkAsFirstCompile() { SetFlag(kFirstCompile); } |
266 | 266 |
267 void MarkAsCompiled() { SetFlag(kFirstCompile, false); } | 267 void MarkAsCompiled() { SetFlag(kFirstCompile, false); } |
268 | 268 |
269 bool is_first_compile() const { return GetFlag(kFirstCompile); } | 269 bool is_first_compile() const { return GetFlag(kFirstCompile); } |
270 | 270 |
271 bool IsCodePreAgingActive() const { | 271 bool GeneratePreagedPrologue() const { |
272 // TODO(bradnelson): Figure out why this breaks wasm. | 272 // WASM functions cannot be aged, since they have no corresponding |
Michael Starzinger
2016/01/12 09:43:34
As discussed offline: Can we slightly rephrase the
| |
273 // unoptimized code. | |
273 return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() && | 274 return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() && |
274 !is_debug() && !FLAG_expose_wasm; | 275 !is_debug() && output_code_kind_ != Code::WASM_FUNCTION; |
275 } | 276 } |
276 | 277 |
277 void EnsureFeedbackVector(); | 278 void EnsureFeedbackVector(); |
278 Handle<TypeFeedbackVector> feedback_vector() const { | 279 Handle<TypeFeedbackVector> feedback_vector() const { |
279 return feedback_vector_; | 280 return feedback_vector_; |
280 } | 281 } |
281 void SetCode(Handle<Code> code) { code_ = code; } | 282 void SetCode(Handle<Code> code) { code_ = code; } |
282 | 283 |
283 void SetBytecodeArray(Handle<BytecodeArray> bytecode_array) { | 284 void SetBytecodeArray(Handle<BytecodeArray> bytecode_array) { |
284 bytecode_array_ = bytecode_array; | 285 bytecode_array_ = bytecode_array; |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
717 size_t info_zone_start_allocation_size_; | 718 size_t info_zone_start_allocation_size_; |
718 base::ElapsedTimer timer_; | 719 base::ElapsedTimer timer_; |
719 | 720 |
720 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 721 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
721 }; | 722 }; |
722 | 723 |
723 } // namespace internal | 724 } // namespace internal |
724 } // namespace v8 | 725 } // namespace v8 |
725 | 726 |
726 #endif // V8_COMPILER_H_ | 727 #endif // V8_COMPILER_H_ |
OLD | NEW |