Correct handling of temporaries as parameters.
authorrossberg <rossberg@chromium.org>
Tue, 4 Aug 2015 13:02:59 +0000 (06:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 4 Aug 2015 13:03:53 +0000 (13:03 +0000)
commit222b70d10ff00e67183f1779022e404f1bf9d746
treec5b5b0917aa8116317395fb2b8afde685521c89d
parent117650bb0888716a716feaae0ea5467113633836
Correct handling of temporaries as parameters.

They need to be properly recorded in the scope's temps set, otherwise allocation doesn't know about them and can break. (Not observable right now, but necessary for follow-up changes to parameter destructuring.)

Also, print temporary variables in a useful manner.

R=adamk@chromium.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#29998}
src/parser.h
src/scopes.cc
src/variables.h