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

Side by Side Diff: src/ast-literal-reindexer.cc

Issue 1272673003: [es6] Re-implement rest parameters via desugaring. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase + fix brokenness Created 5 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
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 #include "src/ast-literal-reindexer.h" 5 #include "src/ast-literal-reindexer.h"
6 6
7 #include "src/ast.h" 7 #include "src/ast.h"
8 #include "src/scopes.h" 8 #include "src/scopes.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 30 matching lines...) Expand all
41 41
42 42
43 void AstLiteralReindexer::VisitRegExpLiteral(RegExpLiteral* node) { 43 void AstLiteralReindexer::VisitRegExpLiteral(RegExpLiteral* node) {
44 UpdateIndex(node); 44 UpdateIndex(node);
45 } 45 }
46 46
47 47
48 void AstLiteralReindexer::VisitVariableProxy(VariableProxy* node) {} 48 void AstLiteralReindexer::VisitVariableProxy(VariableProxy* node) {}
49 49
50 50
51 void AstLiteralReindexer::VisitRestParameter(RestParameter* node) {
52 UpdateIndex(node);
53 }
54
55
51 void AstLiteralReindexer::VisitThisFunction(ThisFunction* node) {} 56 void AstLiteralReindexer::VisitThisFunction(ThisFunction* node) {}
52 57
53 58
54 void AstLiteralReindexer::VisitSuperPropertyReference( 59 void AstLiteralReindexer::VisitSuperPropertyReference(
55 SuperPropertyReference* node) { 60 SuperPropertyReference* node) {
56 Visit(node->this_var()); 61 Visit(node->this_var());
57 Visit(node->home_object()); 62 Visit(node->home_object());
58 } 63 }
59 64
60 65
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 void AstLiteralReindexer::VisitFunctionLiteral(FunctionLiteral* node) { 310 void AstLiteralReindexer::VisitFunctionLiteral(FunctionLiteral* node) {
306 // We don't recurse into the declarations or body of the function literal: 311 // We don't recurse into the declarations or body of the function literal:
307 } 312 }
308 313
309 314
310 void AstLiteralReindexer::Reindex(Expression* pattern) { 315 void AstLiteralReindexer::Reindex(Expression* pattern) {
311 pattern->Accept(this); 316 pattern->Accept(this);
312 } 317 }
313 } 318 }
314 } // namespace v8::internal 319 } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698