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

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

Issue 1399893002: [es7] implement |do| expressions proposal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Disable CrankShaft Created 5 years, 2 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 25 matching lines...) Expand all
36 void AstLiteralReindexer::VisitBreakStatement(BreakStatement* node) {} 36 void AstLiteralReindexer::VisitBreakStatement(BreakStatement* node) {}
37 37
38 38
39 void AstLiteralReindexer::VisitDebuggerStatement(DebuggerStatement* node) {} 39 void AstLiteralReindexer::VisitDebuggerStatement(DebuggerStatement* node) {}
40 40
41 41
42 void AstLiteralReindexer::VisitNativeFunctionLiteral( 42 void AstLiteralReindexer::VisitNativeFunctionLiteral(
43 NativeFunctionLiteral* node) {} 43 NativeFunctionLiteral* node) {}
44 44
45 45
46 void AstLiteralReindexer::VisitDoExpression(DoExpression* node) {
47 // TODO(caitp): literals in do expressions need re-indexing too.
48 }
49
50
46 void AstLiteralReindexer::VisitLiteral(Literal* node) {} 51 void AstLiteralReindexer::VisitLiteral(Literal* node) {}
47 52
48 53
49 void AstLiteralReindexer::VisitRegExpLiteral(RegExpLiteral* node) { 54 void AstLiteralReindexer::VisitRegExpLiteral(RegExpLiteral* node) {
50 UpdateIndex(node); 55 UpdateIndex(node);
51 } 56 }
52 57
53 58
54 void AstLiteralReindexer::VisitVariableProxy(VariableProxy* node) {} 59 void AstLiteralReindexer::VisitVariableProxy(VariableProxy* node) {}
55 60
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 void AstLiteralReindexer::VisitFunctionLiteral(FunctionLiteral* node) { 316 void AstLiteralReindexer::VisitFunctionLiteral(FunctionLiteral* node) {
312 // We don't recurse into the declarations or body of the function literal: 317 // We don't recurse into the declarations or body of the function literal:
313 } 318 }
314 319
315 320
316 void AstLiteralReindexer::Reindex(Expression* pattern) { 321 void AstLiteralReindexer::Reindex(Expression* pattern) {
317 pattern->Accept(this); 322 pattern->Accept(this);
318 } 323 }
319 } // namespace internal 324 } // namespace internal
320 } // namespace v8 325 } // namespace v8
OLDNEW
« src/ast.h ('K') | « src/ast-expression-visitor.cc ('k') | src/ast-numbering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698