Fix bailout ID for nullary arrow function literals
authorwingo@igalia.com <wingo@igalia.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 5 Aug 2014 15:23:07 +0000 (15:23 +0000)
committerwingo@igalia.com <wingo@igalia.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 5 Aug 2014 15:23:07 +0000 (15:23 +0000)
commit480a60b5774c3bfb8bcd51389f79b3b5e61ab810
tree64a44679c279261345c3b0c9f57fd061580d20c9
parenta99b0e61a63cfdd118fe16bbe24336d15ad738a6
Fix bailout ID for nullary arrow function literals

The FunctionState corresponding to the arrow function's body should be
torn down before the function literal is allocated, so that the function
literal gets a bailout id for the environment in which it appears.

We will also need to rewind bailout IDs in the environment of the
function literal, to return IDs allocated for arrow function arguments.
This will come in the next patch.

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

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22885 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/preparser.h