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

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

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-this-access-visitor.h ('k') | src/codegen.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 #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
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
OLDNEW
« no previous file with comments | « src/ast-this-access-visitor.h ('k') | src/codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698