https://codereview.chromium.org/1127063003/diff/100001/src/parser.cc
File src/parser.cc (right):
https://codereview.chromium.org/1127063003/diff/100001/src/parser.cc#newcode3575
src/parser.cc:3575: proxy->var()->set_maybe_assigned();
On 2015/05/20 11:29:38, caitp wrote:
On 2015/05/20 07:41:47, rossberg wrote:
> On 2015/05/12 14:04:53, rossberg wrote:
> > Why is this set?
>
> Ping
Maybe it's not needed, but it reads like it does the right thing,
since the
variable gets assigned immediately
Ah, note that these are initialisations, not assignments. This flag
tries to conservatively indicate whether a variable is ever assigned,
i.e., can change its value observably, or is quasi const (which is
relevant for optimisations later). For lexical declarations, which have
a proper TDZ, initialisation does not observably change their value
(though it does for 'var').
https://codereview.chromium.org/1127063003/
--
--
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.