Function scopes only must have a context if they call sloppy eval
authorwingo <wingo@igalia.com>
Thu, 23 Apr 2015 13:20:11 +0000 (06:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 23 Apr 2015 13:19:54 +0000 (13:19 +0000)
commitd5fd58165c5348c45e3a63d60df9d75787b44e83
treec386895c4d16d3ecbc0cf260113a6f77db76469a
parenta1528ec0b8fcd37e46ece863025d7210b49117e3
Function scopes only must have a context if they call sloppy eval

A strict arrow function with no parameters and no variable bindings
won't need a context object because it will never have any
locals.  (This is unlike strict normal functions, which do have
"arguments" and "this" locals.)

R=rossberg@chromium.org
BUG=v8:4056
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#28031}
src/scopeinfo.cc
src/scopes.cc
test/mjsunit/harmony/regress/regress-4056.js [new file with mode: 0644]