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_AST_AST_H_ | 5 #ifndef V8_AST_AST_H_ |
6 #define V8_AST_AST_H_ | 6 #define V8_AST_AST_H_ |
7 | 7 |
8 #include "src/ast/ast-types.h" | 8 #include "src/ast/ast-types.h" |
9 #include "src/ast/ast-value-factory.h" | 9 #include "src/ast/ast-value-factory.h" |
10 #include "src/ast/modules.h" | 10 #include "src/ast/modules.h" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 Zone* zone_; | 147 Zone* zone_; |
148 ZoneHashMap hash_map_; | 148 ZoneHashMap hash_map_; |
149 }; | 149 }; |
150 | 150 |
151 | 151 |
152 class AstProperties final BASE_EMBEDDED { | 152 class AstProperties final BASE_EMBEDDED { |
153 public: | 153 public: |
154 enum Flag { | 154 enum Flag { |
155 kNoFlags = 0, | 155 kNoFlags = 0, |
156 kDontSelfOptimize = 1 << 0, | 156 kDontSelfOptimize = 1 << 0, |
157 kDontCrankshaft = 1 << 1 | 157 kMustUseIgnitionTurbo = 1 << 1 |
158 }; | 158 }; |
159 | 159 |
160 typedef base::Flags<Flag> Flags; | 160 typedef base::Flags<Flag> Flags; |
161 | 161 |
162 explicit AstProperties(Zone* zone) : node_count_(0), spec_(zone) {} | 162 explicit AstProperties(Zone* zone) : node_count_(0), spec_(zone) {} |
163 | 163 |
164 Flags& flags() { return flags_; } | 164 Flags& flags() { return flags_; } |
165 Flags flags() const { return flags_; } | 165 Flags flags() const { return flags_; } |
166 int node_count() { return node_count_; } | 166 int node_count() { return node_count_; } |
167 void add_node_count(int count) { node_count_ += count; } | 167 void add_node_count(int count) { node_count_ += count; } |
(...skipping 3435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3603 : NULL; \ | 3603 : NULL; \ |
3604 } | 3604 } |
3605 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) | 3605 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) |
3606 #undef DECLARE_NODE_FUNCTIONS | 3606 #undef DECLARE_NODE_FUNCTIONS |
3607 | 3607 |
3608 | 3608 |
3609 } // namespace internal | 3609 } // namespace internal |
3610 } // namespace v8 | 3610 } // namespace v8 |
3611 | 3611 |
3612 #endif // V8_AST_AST_H_ | 3612 #endif // V8_AST_AST_H_ |
OLD | NEW |