| 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.h" | 9 #include "src/ast.h" |
| 10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 void MarkAsTypingEnabled() { SetFlag(kTypingEnabled); } | 242 void MarkAsTypingEnabled() { SetFlag(kTypingEnabled); } |
| 243 | 243 |
| 244 bool is_typing_enabled() const { return GetFlag(kTypingEnabled); } | 244 bool is_typing_enabled() const { return GetFlag(kTypingEnabled); } |
| 245 | 245 |
| 246 void MarkAsSplittingEnabled() { SetFlag(kSplittingEnabled); } | 246 void MarkAsSplittingEnabled() { SetFlag(kSplittingEnabled); } |
| 247 | 247 |
| 248 bool is_splitting_enabled() const { return GetFlag(kSplittingEnabled); } | 248 bool is_splitting_enabled() const { return GetFlag(kSplittingEnabled); } |
| 249 | 249 |
| 250 void MarkAsFirstCompile() { SetFlag(kFirstCompile); } | 250 void MarkAsFirstCompile() { SetFlag(kFirstCompile); } |
| 251 | 251 |
| 252 void MarkAsCompiled() { SetFlag(kFirstCompile, false); } |
| 253 |
| 252 bool is_first_compile() const { return GetFlag(kFirstCompile); } | 254 bool is_first_compile() const { return GetFlag(kFirstCompile); } |
| 253 | 255 |
| 254 bool IsCodePreAgingActive() const { | 256 bool IsCodePreAgingActive() const { |
| 255 return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() && | 257 return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() && |
| 256 !is_debug(); | 258 !is_debug(); |
| 257 } | 259 } |
| 258 | 260 |
| 259 void EnsureFeedbackVector(); | 261 void EnsureFeedbackVector(); |
| 260 Handle<TypeFeedbackVector> feedback_vector() const { | 262 Handle<TypeFeedbackVector> feedback_vector() const { |
| 261 return feedback_vector_; | 263 return feedback_vector_; |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 Zone zone_; | 696 Zone zone_; |
| 695 size_t info_zone_start_allocation_size_; | 697 size_t info_zone_start_allocation_size_; |
| 696 base::ElapsedTimer timer_; | 698 base::ElapsedTimer timer_; |
| 697 | 699 |
| 698 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 700 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 699 }; | 701 }; |
| 700 | 702 |
| 701 } } // namespace v8::internal | 703 } } // namespace v8::internal |
| 702 | 704 |
| 703 #endif // V8_COMPILER_H_ | 705 #endif // V8_COMPILER_H_ |
| OLD | NEW |