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

Unified Diff: src/ast-expression-visitor.cc

Issue 1314843002: Visit additional AST nodes as expressions in AstExpressionVisitor . (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: revised Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/cctest/test-ast-expression-visitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast-expression-visitor.cc
diff --git a/src/ast-expression-visitor.cc b/src/ast-expression-visitor.cc
index aa37f263450ccb06e076178c2fa3f2b42e4e3a06..a643b83d46bb455ec29074385400488ed9396c17 100644
--- a/src/ast-expression-visitor.cc
+++ b/src/ast-expression-visitor.cc
@@ -241,19 +241,22 @@ void AstExpressionVisitor::VisitAssignment(Assignment* expr) {
void AstExpressionVisitor::VisitYield(Yield* expr) {
- RECURSE(Visit(expr->generator_object()));
- RECURSE(Visit(expr->expression()));
+ VisitExpression(expr);
+ RECURSE_EXPRESSION(Visit(expr->generator_object()));
+ RECURSE_EXPRESSION(Visit(expr->expression()));
}
void AstExpressionVisitor::VisitThrow(Throw* expr) {
- RECURSE(Visit(expr->exception()));
+ VisitExpression(expr);
+ RECURSE_EXPRESSION(Visit(expr->exception()));
}
void AstExpressionVisitor::VisitProperty(Property* expr) {
- RECURSE(Visit(expr->obj()));
- RECURSE(Visit(expr->key()));
+ VisitExpression(expr);
+ RECURSE_EXPRESSION(Visit(expr->obj()));
+ RECURSE_EXPRESSION(Visit(expr->key()));
}
« no previous file with comments | « no previous file | test/cctest/test-ast-expression-visitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698