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

Side by Side Diff: src/ast-this-access-visitor.h

Issue 868883002: Remove the dependency of Zone on Isolate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compilation issues Created 5 years, 11 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-numbering.cc ('k') | src/ast-this-access-visitor.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_THIS_ACCESS_VISITOR_H_ 5 #ifndef V8_AST_THIS_ACCESS_VISITOR_H_
6 #define V8_AST_THIS_ACCESS_VISITOR_H_ 6 #define V8_AST_THIS_ACCESS_VISITOR_H_
7 #include "src/ast.h" 7 #include "src/ast.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
11 11
12 class AstThisAccessVisitor : public AstVisitor { 12 class AstThisAccessVisitor : public AstVisitor {
13 public: 13 public:
14 explicit AstThisAccessVisitor(Zone* zone); 14 AstThisAccessVisitor(Isolate* isolate, Zone* zone);
15 15
16 bool UsesThis() { return uses_this_; } 16 bool UsesThis() { return uses_this_; }
17 17
18 #define DECLARE_VISIT(type) void Visit##type(type* node) OVERRIDE; 18 #define DECLARE_VISIT(type) void Visit##type(type* node) OVERRIDE;
19 AST_NODE_LIST(DECLARE_VISIT) 19 AST_NODE_LIST(DECLARE_VISIT)
20 #undef DECLARE_VISIT 20 #undef DECLARE_VISIT
21 21
22 private: 22 private:
23 bool uses_this_; 23 bool uses_this_;
24 24
25 void VisitIfNotNull(AstNode* node) { 25 void VisitIfNotNull(AstNode* node) {
26 if (node != NULL) Visit(node); 26 if (node != NULL) Visit(node);
27 } 27 }
28 28
29 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); 29 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
30 DISALLOW_COPY_AND_ASSIGN(AstThisAccessVisitor); 30 DISALLOW_COPY_AND_ASSIGN(AstThisAccessVisitor);
31 }; 31 };
32 } 32 }
33 } // namespace v8::internal 33 } // namespace v8::internal
34 #endif // V8_AST_THIS_ACCESS_VISITOR_H_ 34 #endif // V8_AST_THIS_ACCESS_VISITOR_H_
OLDNEW
« no previous file with comments | « src/ast-numbering.cc ('k') | src/ast-this-access-visitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698