PPC: Resolve references to "this" the same way as normal variables
authormbrandy <mbrandy@us.ibm.com>
Mon, 11 May 2015 14:34:31 +0000 (07:34 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 11 May 2015 14:34:30 +0000 (14:34 +0000)
commit1ac6e30dd0d9c23d4926860f04a0067ba0d416a9
tree1bb44891752d43bed09dd06dbbcce7510f4bee3b
parent58c40db2558050c21648ff19d0e1f4b3b9297527
PPC: Resolve references to "this" the same way as normal variables

Port bd56d279b612f92d2d1d25f92d32fe7f42a455ca

Original commit message:
Make the parser handle references to "this" as unresolved variables, so the
same logic as for the rest of function parameters is used for the receiver.
Minor additions to the code generation handle copying the receiver to the
context, along with the rest of the function parameters.

Based on work by Adrian Perez de Castro <aperez@igalia.com>.

This is a reapplication of https://codereview.chromium.org/1130733003.

R=wingo@igalia.com, dstence@us.ibm.com, michael_dawson@ca.ibm.com
BUG=

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

Cr-Commit-Position: refs/heads/master@{#28342}
src/ppc/full-codegen-ppc.cc
src/ppc/lithium-codegen-ppc.cc