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

Side by Side Diff: src/ast/ast-expression-rewriter.h

Issue 2302643002: Split the AST representation of class properties from object properties (Closed)
Patch Set: rebase Created 4 years, 3 months 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
« no previous file with comments | « src/ast/ast.cc ('k') | src/ast/ast-expression-rewriter.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_EXPRESSION_REWRITER_H_ 5 #ifndef V8_AST_AST_EXPRESSION_REWRITER_H_
6 #define V8_AST_AST_EXPRESSION_REWRITER_H_ 6 #define V8_AST_AST_EXPRESSION_REWRITER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 explicit AstExpressionRewriter(uintptr_t stack_limit) { 27 explicit AstExpressionRewriter(uintptr_t stack_limit) {
28 InitializeAstRewriter(stack_limit); 28 InitializeAstRewriter(stack_limit);
29 } 29 }
30 virtual ~AstExpressionRewriter() {} 30 virtual ~AstExpressionRewriter() {}
31 31
32 virtual void VisitDeclarations(ZoneList<Declaration*>* declarations); 32 virtual void VisitDeclarations(ZoneList<Declaration*>* declarations);
33 virtual void VisitStatements(ZoneList<Statement*>* statements); 33 virtual void VisitStatements(ZoneList<Statement*>* statements);
34 virtual void VisitExpressions(ZoneList<Expression*>* expressions); 34 virtual void VisitExpressions(ZoneList<Expression*>* expressions);
35 35
36 virtual void VisitObjectLiteralProperty(ObjectLiteralProperty* property); 36 virtual void VisitLiteralProperty(LiteralProperty* property);
37 37
38 protected: 38 protected:
39 virtual bool RewriteExpression(Expression* expr) = 0; 39 virtual bool RewriteExpression(Expression* expr) = 0;
40 40
41 private: 41 private:
42 DEFINE_AST_REWRITER_SUBCLASS_MEMBERS(); 42 DEFINE_AST_REWRITER_SUBCLASS_MEMBERS();
43 43
44 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); 44 #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
45 AST_NODE_LIST(DECLARE_VISIT) 45 AST_NODE_LIST(DECLARE_VISIT)
46 #undef DECLARE_VISIT 46 #undef DECLARE_VISIT
47 47
48 DISALLOW_COPY_AND_ASSIGN(AstExpressionRewriter); 48 DISALLOW_COPY_AND_ASSIGN(AstExpressionRewriter);
49 }; 49 };
50 50
51 } // namespace internal 51 } // namespace internal
52 } // namespace v8 52 } // namespace v8
53 53
54 #endif // V8_AST_AST_EXPRESSION_REWRITER_H_ 54 #endif // V8_AST_AST_EXPRESSION_REWRITER_H_
OLDNEW
« no previous file with comments | « src/ast/ast.cc ('k') | src/ast/ast-expression-rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698