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

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

Issue 2703563002: [ESNext] Implement DynamicImportCall (Closed)
Patch Set: rebase Created 3 years, 8 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.h ('k') | src/ast/ast-numbering.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-expression-rewriter.h" 5 #include "src/ast/ast-expression-rewriter.h"
6 #include "src/ast/ast.h" 6 #include "src/ast/ast.h"
7 #include "src/objects-inl.h" 7 #include "src/objects-inl.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 369
370 370
371 void AstExpressionRewriter::VisitEmptyParentheses(EmptyParentheses* node) { 371 void AstExpressionRewriter::VisitEmptyParentheses(EmptyParentheses* node) {
372 NOTHING(); 372 NOTHING();
373 } 373 }
374 374
375 void AstExpressionRewriter::VisitGetIterator(GetIterator* node) { 375 void AstExpressionRewriter::VisitGetIterator(GetIterator* node) {
376 AST_REWRITE_PROPERTY(Expression, node, iterable); 376 AST_REWRITE_PROPERTY(Expression, node, iterable);
377 } 377 }
378 378
379 void AstExpressionRewriter::VisitImportCallExpression(
380 ImportCallExpression* node) {
381 REWRITE_THIS(node);
382 AST_REWRITE_PROPERTY(Expression, node, argument);
383 }
384
379 void AstExpressionRewriter::VisitDoExpression(DoExpression* node) { 385 void AstExpressionRewriter::VisitDoExpression(DoExpression* node) {
380 REWRITE_THIS(node); 386 REWRITE_THIS(node);
381 AST_REWRITE_PROPERTY(Block, node, block); 387 AST_REWRITE_PROPERTY(Block, node, block);
382 AST_REWRITE_PROPERTY(VariableProxy, node, result); 388 AST_REWRITE_PROPERTY(VariableProxy, node, result);
383 } 389 }
384 390
385 391
386 void AstExpressionRewriter::VisitRewritableExpression( 392 void AstExpressionRewriter::VisitRewritableExpression(
387 RewritableExpression* node) { 393 RewritableExpression* node) {
388 REWRITE_THIS(node); 394 REWRITE_THIS(node);
389 AST_REWRITE(Expression, node->expression(), node->Rewrite(replacement)); 395 AST_REWRITE(Expression, node->expression(), node->Rewrite(replacement));
390 } 396 }
391 397
392 398
393 } // namespace internal 399 } // namespace internal
394 } // namespace v8 400 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast.h ('k') | src/ast/ast-numbering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698