Represent implicit 'this' binding by 'super' in AST.
authormstarzinger <mstarzinger@chromium.org>
Thu, 16 Jul 2015 14:26:20 +0000 (07:26 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 16 Jul 2015 14:26:31 +0000 (14:26 +0000)
commit07dc66dcd5d9bc266915d67142425dd92e1373ad
tree80d9ea9364a4d9ff757910908291e007d2d881dd
parentecf1c863f31c005efb30ae2f832a4c61d159815c
Represent implicit 'this' binding by 'super' in AST.

This makes the implicit initializing assignment to 'this' performed
after a super constructor call explicit in the AST. It removes the
need to handle the special case where a CallExpression behaves like a
AssignmentExpression from various AstVisitor implementations.

R=rossberg@chromium.org

Review URL: https://codereview.chromium.org/1226123010

Cr-Commit-Position: refs/heads/master@{#29705}
15 files changed:
src/arm/full-codegen-arm.cc
src/arm64/full-codegen-arm64.cc
src/ast.cc
src/ast.h
src/compiler/ast-graph-builder.cc
src/compiler/ast-loop-assignment-analyzer.cc
src/full-codegen.h
src/ia32/full-codegen-ia32.cc
src/mips/full-codegen-mips.cc
src/mips64/full-codegen-mips64.cc
src/ppc/full-codegen-ppc.cc
src/preparser.h
src/x64/full-codegen-x64.cc
src/x87/full-codegen-x87.cc
test/mjsunit/harmony/super.js