| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 void PrepareForSerializing() { SetFlag(kSerializing); } | 197 void PrepareForSerializing() { SetFlag(kSerializing); } |
| 198 | 198 |
| 199 bool will_serialize() const { return GetFlag(kSerializing); } | 199 bool will_serialize() const { return GetFlag(kSerializing); } |
| 200 | 200 |
| 201 void MarkAsContextSpecializing() { SetFlag(kContextSpecializing); } | 201 void MarkAsContextSpecializing() { SetFlag(kContextSpecializing); } |
| 202 | 202 |
| 203 bool is_context_specializing() const { return GetFlag(kContextSpecializing); } | 203 bool is_context_specializing() const { return GetFlag(kContextSpecializing); } |
| 204 | 204 |
| 205 void MarkAsInliningEnabled() { SetFlag(kInliningEnabled); } | 205 void MarkAsInliningEnabled() { SetFlag(kInliningEnabled); } |
| 206 | 206 |
| 207 void MarkAsInliningDisabled() { SetFlag(kInliningEnabled, false); } | |
| 208 | |
| 209 bool is_inlining_enabled() const { return GetFlag(kInliningEnabled); } | 207 bool is_inlining_enabled() const { return GetFlag(kInliningEnabled); } |
| 210 | 208 |
| 211 void MarkAsTypingEnabled() { SetFlag(kTypingEnabled); } | 209 void MarkAsTypingEnabled() { SetFlag(kTypingEnabled); } |
| 212 | 210 |
| 213 bool is_typing_enabled() const { return GetFlag(kTypingEnabled); } | 211 bool is_typing_enabled() const { return GetFlag(kTypingEnabled); } |
| 214 | 212 |
| 215 void MarkAsToplevel() { SetFlag(kToplevel); } | 213 void MarkAsToplevel() { SetFlag(kToplevel); } |
| 216 | 214 |
| 217 bool is_toplevel() const { return GetFlag(kToplevel); } | 215 bool is_toplevel() const { return GetFlag(kToplevel); } |
| 218 | 216 |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 Zone zone_; | 750 Zone zone_; |
| 753 unsigned info_zone_start_allocation_size_; | 751 unsigned info_zone_start_allocation_size_; |
| 754 base::ElapsedTimer timer_; | 752 base::ElapsedTimer timer_; |
| 755 | 753 |
| 756 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 754 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 757 }; | 755 }; |
| 758 | 756 |
| 759 } } // namespace v8::internal | 757 } } // namespace v8::internal |
| 760 | 758 |
| 761 #endif // V8_COMPILER_H_ | 759 #endif // V8_COMPILER_H_ |
| OLD | NEW |