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

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

Issue 1414733005: [es6] Handle super properly when rewriting arrow parameter initializers (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 5 years, 2 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 | « no previous file | test/mjsunit/harmony/regress/regress-4395.js » ('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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/ast-expression-visitor.h" 7 #include "src/ast-expression-visitor.h"
8 8
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 void AstExpressionVisitor::VisitSpread(Spread* expr) { 371 void AstExpressionVisitor::VisitSpread(Spread* expr) {
372 VisitExpression(expr); 372 VisitExpression(expr);
373 RECURSE_EXPRESSION(Visit(expr->expression())); 373 RECURSE_EXPRESSION(Visit(expr->expression()));
374 } 374 }
375 375
376 376
377 void AstExpressionVisitor::VisitEmptyParentheses(EmptyParentheses* expr) {} 377 void AstExpressionVisitor::VisitEmptyParentheses(EmptyParentheses* expr) {}
378 378
379 379
380 void AstExpressionVisitor::VisitSuperPropertyReference( 380 void AstExpressionVisitor::VisitSuperPropertyReference(
381 SuperPropertyReference* expr) {} 381 SuperPropertyReference* expr) {
382 VisitExpression(expr);
383 RECURSE_EXPRESSION(VisitVariableProxy(expr->this_var()));
384 RECURSE_EXPRESSION(Visit(expr->home_object()));
385 }
382 386
383 387
384 void AstExpressionVisitor::VisitSuperCallReference(SuperCallReference* expr) {} 388 void AstExpressionVisitor::VisitSuperCallReference(SuperCallReference* expr) {
389 VisitExpression(expr);
390 RECURSE_EXPRESSION(VisitVariableProxy(expr->this_var()));
391 RECURSE_EXPRESSION(VisitVariableProxy(expr->new_target_var()));
392 RECURSE_EXPRESSION(VisitVariableProxy(expr->this_function_var()));
393 }
385 394
386 395
387 } // namespace internal 396 } // namespace internal
388 } // namespace v8 397 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/harmony/regress/regress-4395.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698