OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |