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

Side by Side Diff: src/ast/ast-expression-rewriter.cc

Issue 2081733004: Rip out most of our outdated modules implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 5 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/ast.cc ('k') | src/ast/ast-literal-reindexer.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 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/ast.h" 5 #include "src/ast/ast.h"
6 #include "src/ast/ast-expression-rewriter.h" 6 #include "src/ast/ast-expression-rewriter.h"
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 AST_REWRITE_PROPERTY(FunctionLiteral, node, fun); 63 AST_REWRITE_PROPERTY(FunctionLiteral, node, fun);
64 } 64 }
65 65
66 66
67 void AstExpressionRewriter::VisitImportDeclaration(ImportDeclaration* node) { 67 void AstExpressionRewriter::VisitImportDeclaration(ImportDeclaration* node) {
68 // Not visiting `proxy_`. 68 // Not visiting `proxy_`.
69 NOTHING(); 69 NOTHING();
70 } 70 }
71 71
72 72
73 void AstExpressionRewriter::VisitExportDeclaration(ExportDeclaration* node) {
74 // Not visiting `proxy_`.
75 NOTHING();
76 }
77
78
79 void AstExpressionRewriter::VisitBlock(Block* node) { 73 void AstExpressionRewriter::VisitBlock(Block* node) {
80 VisitStatements(node->statements()); 74 VisitStatements(node->statements());
81 } 75 }
82 76
83 77
84 void AstExpressionRewriter::VisitExpressionStatement( 78 void AstExpressionRewriter::VisitExpressionStatement(
85 ExpressionStatement* node) { 79 ExpressionStatement* node) {
86 AST_REWRITE_PROPERTY(Expression, node, expression); 80 AST_REWRITE_PROPERTY(Expression, node, expression);
87 } 81 }
88 82
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 392
399 void AstExpressionRewriter::VisitRewritableExpression( 393 void AstExpressionRewriter::VisitRewritableExpression(
400 RewritableExpression* node) { 394 RewritableExpression* node) {
401 REWRITE_THIS(node); 395 REWRITE_THIS(node);
402 AST_REWRITE(Expression, node->expression(), node->Rewrite(replacement)); 396 AST_REWRITE(Expression, node->expression(), node->Rewrite(replacement));
403 } 397 }
404 398
405 399
406 } // namespace internal 400 } // namespace internal
407 } // namespace v8 401 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast.cc ('k') | src/ast/ast-literal-reindexer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698