Reapply "Resolve references to "this" the same way as normal variables""
authorwingo <wingo@igalia.com>
Mon, 18 May 2015 20:16:24 +0000 (13:16 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 18 May 2015 20:16:12 +0000 (20:16 +0000)
commit1efc1e4f7a3d30d5225e9d5cb2585cad7cb17099
treecb7bd886cf50d2739913db43a2e836c6f1ad57fe
parentcf9492ddd818f336a9dc1269cdb7557ec709d12c
Reapply "Resolve references to "this" the same way as normal variables""

This reapplies https://codereview.chromium.org/1136073002, along with
the followups:

  Remove Scope::scope_uses_this_ flag
  https://codereview.chromium.org/1128963005

and

  PPC: Resolve references to "this" the same way as normal variables
  https://codereview.chromium.org/1134073003

R=yangguo@chromium.org, rossberg@chromium.org
LOG=N
BUG=

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

Cr-Commit-Position: refs/heads/master@{#28458}
33 files changed:
src/arm/full-codegen-arm.cc
src/arm/lithium-codegen-arm.cc
src/arm64/full-codegen-arm64.cc
src/arm64/lithium-codegen-arm64.cc
src/compiler.cc
src/compiler/ast-graph-builder.cc
src/compiler/ast-graph-builder.h
src/contexts.cc
src/heap/heap.h
src/ia32/full-codegen-ia32.cc
src/ia32/lithium-codegen-ia32.cc
src/mips/full-codegen-mips.cc
src/mips/lithium-codegen-mips.cc
src/mips64/full-codegen-mips64.cc
src/mips64/lithium-codegen-mips64.cc
src/parser.cc
src/ppc/full-codegen-ppc.cc
src/ppc/lithium-codegen-ppc.cc
src/preparser.h
src/runtime/runtime-debug.cc
src/runtime/runtime-scopes.cc
src/scopeinfo.cc
src/scopes.cc
src/scopes.h
src/variables.cc
src/x64/full-codegen-x64.cc
src/x64/lithium-codegen-x64.cc
test/cctest/test-parsing.cc
test/cctest/test-serialize.cc
test/mjsunit/debug-scopes.js
test/mjsunit/harmony/arrow-functions-this.js [new file with mode: 0644]
test/mjsunit/testcfg.py
test/mjsunit/this-dynamic-lookup.js [new file with mode: 0644]