OLD | NEW |
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 #include "src/ast-this-access-visitor.h" | 5 #include "src/ast-this-access-visitor.h" |
6 #include "src/parser.h" | 6 #include "src/parser.h" |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
11 typedef class AstThisAccessVisitor ATAV; // for code shortitude. | 11 typedef class AstThisAccessVisitor ATAV; // for code shortitude. |
12 | 12 |
13 ATAV::AstThisAccessVisitor(Zone* zone) : uses_this_(false) { | 13 ATAV::AstThisAccessVisitor(Isolate* isolate, Zone* zone) : uses_this_(false) { |
14 InitializeAstVisitor(zone); | 14 InitializeAstVisitor(isolate, zone); |
15 } | 15 } |
16 | 16 |
17 | 17 |
18 void ATAV::VisitVariableProxy(VariableProxy* proxy) { | 18 void ATAV::VisitVariableProxy(VariableProxy* proxy) { |
19 if (proxy->is_this()) { | 19 if (proxy->is_this()) { |
20 uses_this_ = true; | 20 uses_this_ = true; |
21 } | 21 } |
22 } | 22 } |
23 | 23 |
24 | 24 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 Visit(stmt->value()); | 230 Visit(stmt->value()); |
231 } | 231 } |
232 | 232 |
233 | 233 |
234 void ATAV::VisitCountOperation(CountOperation* e) { | 234 void ATAV::VisitCountOperation(CountOperation* e) { |
235 Expression* l = e->expression(); | 235 Expression* l = e->expression(); |
236 Visit(l); | 236 Visit(l); |
237 } | 237 } |
238 } | 238 } |
239 } // namespace v8::internal | 239 } // namespace v8::internal |
OLD | NEW |