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/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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 | 370 |
371 | 371 |
372 void AstExpressionRewriter::VisitEmptyParentheses(EmptyParentheses* node) { | 372 void AstExpressionRewriter::VisitEmptyParentheses(EmptyParentheses* node) { |
373 NOTHING(); | 373 NOTHING(); |
374 } | 374 } |
375 | 375 |
376 void AstExpressionRewriter::VisitGetIterator(GetIterator* node) { | 376 void AstExpressionRewriter::VisitGetIterator(GetIterator* node) { |
377 AST_REWRITE_PROPERTY(Expression, node, iterable); | 377 AST_REWRITE_PROPERTY(Expression, node, iterable); |
378 } | 378 } |
379 | 379 |
| 380 void AstExpressionRewriter::VisitImportCallExpression( |
| 381 ImportCallExpression* node) { |
| 382 REWRITE_THIS(node); |
| 383 AST_REWRITE_PROPERTY(Expression, node, argument); |
| 384 } |
| 385 |
380 void AstExpressionRewriter::VisitDoExpression(DoExpression* node) { | 386 void AstExpressionRewriter::VisitDoExpression(DoExpression* node) { |
381 REWRITE_THIS(node); | 387 REWRITE_THIS(node); |
382 AST_REWRITE_PROPERTY(Block, node, block); | 388 AST_REWRITE_PROPERTY(Block, node, block); |
383 AST_REWRITE_PROPERTY(VariableProxy, node, result); | 389 AST_REWRITE_PROPERTY(VariableProxy, node, result); |
384 } | 390 } |
385 | 391 |
386 | 392 |
387 void AstExpressionRewriter::VisitRewritableExpression( | 393 void AstExpressionRewriter::VisitRewritableExpression( |
388 RewritableExpression* node) { | 394 RewritableExpression* node) { |
389 REWRITE_THIS(node); | 395 REWRITE_THIS(node); |
390 AST_REWRITE(Expression, node->expression(), node->Rewrite(replacement)); | 396 AST_REWRITE(Expression, node->expression(), node->Rewrite(replacement)); |
391 } | 397 } |
392 | 398 |
393 | 399 |
394 } // namespace internal | 400 } // namespace internal |
395 } // namespace v8 | 401 } // namespace v8 |
OLD | NEW |