| 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 3118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3129 | 3129 |
| 3130 private: | 3130 private: |
| 3131 template<class> friend class AstNodeFactory; | 3131 template<class> friend class AstNodeFactory; |
| 3132 | 3132 |
| 3133 // Node visitors. | 3133 // Node visitors. |
| 3134 #define DEF_VISIT(type) \ | 3134 #define DEF_VISIT(type) \ |
| 3135 void Visit##type(type* node); | 3135 void Visit##type(type* node); |
| 3136 AST_NODE_LIST(DEF_VISIT) | 3136 AST_NODE_LIST(DEF_VISIT) |
| 3137 #undef DEF_VISIT | 3137 #undef DEF_VISIT |
| 3138 | 3138 |
| 3139 void increase_node_count() { properties_.add_node_count(1); } | |
| 3140 void add_flag(AstPropertiesFlag flag) { properties_.flags()->Add(flag); } | 3139 void add_flag(AstPropertiesFlag flag) { properties_.flags()->Add(flag); } |
| 3141 void set_dont_crankshaft_reason(BailoutReason reason) { | 3140 void set_dont_crankshaft_reason(BailoutReason reason) { |
| 3142 dont_crankshaft_reason_ = reason; | 3141 dont_crankshaft_reason_ = reason; |
| 3143 } | 3142 } |
| 3144 void set_dont_turbofan_reason(BailoutReason reason) { | 3143 void set_dont_turbofan_reason(BailoutReason reason) { |
| 3145 dont_turbofan_reason_ = reason; | 3144 dont_turbofan_reason_ = reason; |
| 3146 } | 3145 } |
| 3147 | 3146 |
| 3148 void add_slot_node(AstNode* slot_node) { | 3147 void add_slot_node(AstNode* slot_node) { |
| 3149 FeedbackVectorRequirements reqs = slot_node->ComputeFeedbackRequirements(); | 3148 FeedbackVectorRequirements reqs = slot_node->ComputeFeedbackRequirements(); |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3641 private: | 3640 private: |
| 3642 Zone* zone_; | 3641 Zone* zone_; |
| 3643 Visitor visitor_; | 3642 Visitor visitor_; |
| 3644 AstValueFactory* ast_value_factory_; | 3643 AstValueFactory* ast_value_factory_; |
| 3645 }; | 3644 }; |
| 3646 | 3645 |
| 3647 | 3646 |
| 3648 } } // namespace v8::internal | 3647 } } // namespace v8::internal |
| 3649 | 3648 |
| 3650 #endif // V8_AST_H_ | 3649 #endif // V8_AST_H_ |
| OLD | NEW |