| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 IsCodePreAgingActive() const { |
| 272 // TODO(bradnelson): Figure out why this breaks wasm. |
| 272 return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() && | 273 return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() && |
| 273 !is_debug(); | 274 !is_debug() && !FLAG_expose_wasm; |
| 274 } | 275 } |
| 275 | 276 |
| 276 void EnsureFeedbackVector(); | 277 void EnsureFeedbackVector(); |
| 277 Handle<TypeFeedbackVector> feedback_vector() const { | 278 Handle<TypeFeedbackVector> feedback_vector() const { |
| 278 return feedback_vector_; | 279 return feedback_vector_; |
| 279 } | 280 } |
| 280 void SetCode(Handle<Code> code) { code_ = code; } | 281 void SetCode(Handle<Code> code) { code_ = code; } |
| 281 | 282 |
| 282 void SetBytecodeArray(Handle<BytecodeArray> bytecode_array) { | 283 void SetBytecodeArray(Handle<BytecodeArray> bytecode_array) { |
| 283 bytecode_array_ = bytecode_array; | 284 bytecode_array_ = bytecode_array; |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 size_t info_zone_start_allocation_size_; | 717 size_t info_zone_start_allocation_size_; |
| 717 base::ElapsedTimer timer_; | 718 base::ElapsedTimer timer_; |
| 718 | 719 |
| 719 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 720 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 720 }; | 721 }; |
| 721 | 722 |
| 722 } // namespace internal | 723 } // namespace internal |
| 723 } // namespace v8 | 724 } // namespace v8 |
| 724 | 725 |
| 725 #endif // V8_COMPILER_H_ | 726 #endif // V8_COMPILER_H_ |
| OLD | NEW |