Create function name const assignment after parsing language mode.
authoryangguo <yangguo@chromium.org>
Mon, 3 Aug 2015 09:14:19 +0000 (02:14 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 3 Aug 2015 09:14:26 +0000 (09:14 +0000)
commitf7d808847feaa87f1635dd64650790d8b0d42021
tree787d598402e1c7b36c17cdb2895320a4372beba2
parent99a53f73235c73f04035e960750e3f1b3ece60f7
Create function name const assignment after parsing language mode.

Otherwise we may choose sloppy const or strict const depending on
whether the function is parsed the first time.

R=mvstanton@chromium.org
BUG=v8:4336
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#29966}
src/objects-debug.cc
src/objects-inl.h
src/objects.h
src/parser.cc
src/parser.h
src/preparser.h