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_H_ | 5 #ifndef V8_AST_H_ |
6 #define V8_AST_H_ | 6 #define V8_AST_H_ |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/assembler.h" | 10 #include "src/assembler.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 #define DECLARE_NODE_TYPE(type) \ | 143 #define DECLARE_NODE_TYPE(type) \ |
144 virtual void Accept(AstVisitor* v) V8_OVERRIDE; \ | 144 virtual void Accept(AstVisitor* v) V8_OVERRIDE; \ |
145 virtual AstNode::NodeType node_type() const V8_FINAL V8_OVERRIDE { \ | 145 virtual AstNode::NodeType node_type() const V8_FINAL V8_OVERRIDE { \ |
146 return AstNode::k##type; \ | 146 return AstNode::k##type; \ |
147 } \ | 147 } \ |
148 template<class> friend class AstNodeFactory; | 148 template<class> friend class AstNodeFactory; |
149 | 149 |
150 | 150 |
151 enum AstPropertiesFlag { | 151 enum AstPropertiesFlag { |
152 kDontInline, | |
153 kDontSelfOptimize, | 152 kDontSelfOptimize, |
154 kDontSoftInline, | 153 kDontSoftInline, |
155 kDontCache | 154 kDontCache |
156 }; | 155 }; |
157 | 156 |
158 | 157 |
159 class AstProperties V8_FINAL BASE_EMBEDDED { | 158 class AstProperties V8_FINAL BASE_EMBEDDED { |
160 public: | 159 public: |
161 class Flags : public EnumSet<AstPropertiesFlag, int> {}; | 160 class Flags : public EnumSet<AstPropertiesFlag, int> {}; |
162 | 161 |
(...skipping 3261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3424 private: | 3423 private: |
3425 Zone* zone_; | 3424 Zone* zone_; |
3426 Visitor visitor_; | 3425 Visitor visitor_; |
3427 AstValueFactory* ast_value_factory_; | 3426 AstValueFactory* ast_value_factory_; |
3428 }; | 3427 }; |
3429 | 3428 |
3430 | 3429 |
3431 } } // namespace v8::internal | 3430 } } // namespace v8::internal |
3432 | 3431 |
3433 #endif // V8_AST_H_ | 3432 #endif // V8_AST_H_ |
OLD | NEW |