On 14 February 2014 18:01, Adrian Perez de Castro <
ape...@igalia.com> wrote:
>
> # Technical considerations
>
> Implementing arrow function would have a small impact in V8: most
> changes fall in the parser/lexer; the existing representation for
> functions would be reused with minor changes.
I don't like being the spoil sport here, but I highly doubt this. The
parser extensions are the trivial part. I expect that the different
handling required for 'this' and 'arguments' will have many subtle
implications on runtime support and code generation for both functions
and function calls, and these are deeply engrained, and duplicated
manifold throughout all of V8 and its various back-ends. From our
experience, changes in that area tend to be far more tricky then you
might expect, especially if you need to avoid performance regressions.
In any case, before moving on, please do a more thorough analysis of
how this feature affects various parts of the system, and produce a
design doc sketching the core ideas for an implementation, so that we
can evaluate and discuss it.
Best,
/Andreas