Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: src/ast.h

Issue 675493002: Move AST node counting to post-pass (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix nits Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/ast.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698