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

Side by Side Diff: src/ast-numbering.cc

Issue 1153053005: Cleanup ast numbering for super.prop in arrows (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove a commented out loc that was left over Created 5 years, 6 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 | « no previous file | src/compiler/ast-graph-builder.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/ast.h" 7 #include "src/ast.h"
8 #include "src/ast-numbering.h" 8 #include "src/ast-numbering.h"
9 #include "src/scopes.h" 9 #include "src/scopes.h"
10 10
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 void AstNumberingVisitor::VisitThisFunction(ThisFunction* node) { 165 void AstNumberingVisitor::VisitThisFunction(ThisFunction* node) {
166 IncrementNodeCount(); 166 IncrementNodeCount();
167 node->set_base_id(ReserveIdRange(ThisFunction::num_ids())); 167 node->set_base_id(ReserveIdRange(ThisFunction::num_ids()));
168 } 168 }
169 169
170 170
171 void AstNumberingVisitor::VisitSuperReference(SuperReference* node) { 171 void AstNumberingVisitor::VisitSuperReference(SuperReference* node) {
172 IncrementNodeCount(); 172 IncrementNodeCount();
173 DisableOptimization(kSuperReference); 173 DisableOptimization(kSuperReference);
174 ReserveFeedbackSlots(node);
175 node->set_base_id(ReserveIdRange(SuperReference::num_ids())); 174 node->set_base_id(ReserveIdRange(SuperReference::num_ids()));
176 Visit(node->this_var()); 175 Visit(node->this_var());
177 Visit(node->home_object_var()); 176 Visit(node->home_object_var());
178 } 177 }
179 178
180 179
181 void AstNumberingVisitor::VisitImportDeclaration(ImportDeclaration* node) { 180 void AstNumberingVisitor::VisitImportDeclaration(ImportDeclaration* node) {
182 IncrementNodeCount(); 181 IncrementNodeCount();
183 DisableOptimization(kImportDeclaration); 182 DisableOptimization(kImportDeclaration);
184 VisitVariableProxy(node->proxy()); 183 VisitVariableProxy(node->proxy());
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 } 541 }
543 542
544 543
545 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone, 544 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone,
546 FunctionLiteral* function) { 545 FunctionLiteral* function) {
547 AstNumberingVisitor visitor(isolate, zone); 546 AstNumberingVisitor visitor(isolate, zone);
548 return visitor.Renumber(function); 547 return visitor.Renumber(function);
549 } 548 }
550 } 549 }
551 } // namespace v8::internal 550 } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698