Reviewers: rossberg,

Description:
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.

[email protected]
BUG=v8:3475
LOG=N

Please review this at https://codereview.chromium.org/442573004/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+75, -90 lines):
  M src/preparser.h


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to