| 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/zone.h" | 10 #include "src/zone.h" |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 void MarkAsDebug() { | 178 void MarkAsDebug() { |
| 179 flags_ |= IsDebug::encode(true); | 179 flags_ |= IsDebug::encode(true); |
| 180 } | 180 } |
| 181 | 181 |
| 182 bool is_debug() const { | 182 bool is_debug() const { |
| 183 return IsDebug::decode(flags_); | 183 return IsDebug::decode(flags_); |
| 184 } | 184 } |
| 185 | 185 |
| 186 void PrepareForSerializing() { | 186 void PrepareForSerializing() { |
| 187 ASSERT(!is_lazy()); | |
| 188 flags_ |= PrepareForSerializing::encode(true); | 187 flags_ |= PrepareForSerializing::encode(true); |
| 189 } | 188 } |
| 190 | 189 |
| 191 bool will_serialize() const { return PrepareForSerializing::decode(flags_); } | 190 bool will_serialize() const { return PrepareForSerializing::decode(flags_); } |
| 192 | 191 |
| 193 bool IsCodePreAgingActive() const { | 192 bool IsCodePreAgingActive() const { |
| 194 return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() && | 193 return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() && |
| 195 !is_debug(); | 194 !is_debug(); |
| 196 } | 195 } |
| 197 | 196 |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 Zone zone_; | 736 Zone zone_; |
| 738 unsigned info_zone_start_allocation_size_; | 737 unsigned info_zone_start_allocation_size_; |
| 739 base::ElapsedTimer timer_; | 738 base::ElapsedTimer timer_; |
| 740 | 739 |
| 741 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 740 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 742 }; | 741 }; |
| 743 | 742 |
| 744 } } // namespace v8::internal | 743 } } // namespace v8::internal |
| 745 | 744 |
| 746 #endif // V8_COMPILER_H_ | 745 #endif // V8_COMPILER_H_ |
| OLD | NEW |