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

Side by Side Diff: src/ast/ast-traversal-visitor.h

Issue 2654423004: [async-functions] support await expressions in finally statements (Closed)
Patch Set: I'd like to build with -Wunused-variables locally, but how!? Created 3 years, 10 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-numbering.cc ('k') | src/ast/prettyprinter.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #ifndef V8_AST_AST_TRAVERSAL_VISITOR_H_ 5 #ifndef V8_AST_AST_TRAVERSAL_VISITOR_H_
6 #define V8_AST_AST_TRAVERSAL_VISITOR_H_ 6 #define V8_AST_AST_TRAVERSAL_VISITOR_H_
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 10
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 template <class Subclass> 352 template <class Subclass>
353 void AstTraversalVisitor<Subclass>::VisitAssignment(Assignment* expr) { 353 void AstTraversalVisitor<Subclass>::VisitAssignment(Assignment* expr) {
354 PROCESS_EXPRESSION(expr); 354 PROCESS_EXPRESSION(expr);
355 RECURSE_EXPRESSION(Visit(expr->target())); 355 RECURSE_EXPRESSION(Visit(expr->target()));
356 RECURSE_EXPRESSION(Visit(expr->value())); 356 RECURSE_EXPRESSION(Visit(expr->value()));
357 } 357 }
358 358
359 template <class Subclass> 359 template <class Subclass>
360 void AstTraversalVisitor<Subclass>::VisitYield(Yield* expr) { 360 void AstTraversalVisitor<Subclass>::VisitYield(Yield* expr) {
361 PROCESS_EXPRESSION(expr); 361 PROCESS_EXPRESSION(expr);
362 RECURSE_EXPRESSION(Visit(expr->generator_object()));
363 RECURSE_EXPRESSION(Visit(expr->expression())); 362 RECURSE_EXPRESSION(Visit(expr->expression()));
364 } 363 }
365 364
366 template <class Subclass> 365 template <class Subclass>
367 void AstTraversalVisitor<Subclass>::VisitThrow(Throw* expr) { 366 void AstTraversalVisitor<Subclass>::VisitThrow(Throw* expr) {
368 PROCESS_EXPRESSION(expr); 367 PROCESS_EXPRESSION(expr);
369 RECURSE_EXPRESSION(Visit(expr->exception())); 368 RECURSE_EXPRESSION(Visit(expr->exception()));
370 } 369 }
371 370
372 template <class Subclass> 371 template <class Subclass>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 PROCESS_EXPRESSION(expr); 469 PROCESS_EXPRESSION(expr);
471 } 470 }
472 471
473 template <class Subclass> 472 template <class Subclass>
474 void AstTraversalVisitor<Subclass>::VisitGetIterator(GetIterator* expr) { 473 void AstTraversalVisitor<Subclass>::VisitGetIterator(GetIterator* expr) {
475 PROCESS_EXPRESSION(expr); 474 PROCESS_EXPRESSION(expr);
476 RECURSE_EXPRESSION(Visit(expr->iterable())); 475 RECURSE_EXPRESSION(Visit(expr->iterable()));
477 } 476 }
478 477
479 template <class Subclass> 478 template <class Subclass>
479 void AstTraversalVisitor<Subclass>::VisitInternalVariable(
480 InternalVariable* expr) {
481 PROCESS_EXPRESSION(expr);
482 }
483
484 template <class Subclass>
480 void AstTraversalVisitor<Subclass>::VisitSuperPropertyReference( 485 void AstTraversalVisitor<Subclass>::VisitSuperPropertyReference(
481 SuperPropertyReference* expr) { 486 SuperPropertyReference* expr) {
482 PROCESS_EXPRESSION(expr); 487 PROCESS_EXPRESSION(expr);
483 RECURSE_EXPRESSION(VisitVariableProxy(expr->this_var())); 488 RECURSE_EXPRESSION(VisitVariableProxy(expr->this_var()));
484 RECURSE_EXPRESSION(Visit(expr->home_object())); 489 RECURSE_EXPRESSION(Visit(expr->home_object()));
485 } 490 }
486 491
487 template <class Subclass> 492 template <class Subclass>
488 void AstTraversalVisitor<Subclass>::VisitSuperCallReference( 493 void AstTraversalVisitor<Subclass>::VisitSuperCallReference(
489 SuperCallReference* expr) { 494 SuperCallReference* expr) {
(...skipping 12 matching lines...) Expand all
502 507
503 #undef PROCESS_NODE 508 #undef PROCESS_NODE
504 #undef PROCESS_EXPRESSION 509 #undef PROCESS_EXPRESSION
505 #undef RECURSE_EXPRESSION 510 #undef RECURSE_EXPRESSION
506 #undef RECURSE 511 #undef RECURSE
507 512
508 } // namespace internal 513 } // namespace internal
509 } // namespace v8 514 } // namespace v8
510 515
511 #endif // V8_AST_AST_TRAVERSAL_VISITOR_H_ 516 #endif // V8_AST_AST_TRAVERSAL_VISITOR_H_
OLDNEW
« no previous file with comments | « src/ast/ast-numbering.cc ('k') | src/ast/prettyprinter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698