Comment #18 on issue 505 by [email protected]: Implement function
denesting optimization
http://code.google.com/p/v8/issues/detail?id=505
That *is* true: Functions are just objects (which you can call, but that's
totally irrelevant for the discussion) which have identity, so you can do
things like:
function foo() { return 42; }
foo[7] = "blah";
Statically proving that identity is irrelevant is impossible in JavaScript,
so the proposed transformation is wrong. If you somehow mangle your whole
program and add tons of dynamic checks like the ones proposed above, you
can do some tricks, but it is far from clear if and when this is a clear
win (most of the time it probably won't).
Regarding "WorkingAsIntended": Alas, we don't have a "WontFix", and WAI
means "We decided to not take action on this issue".
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
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/groups/opt_out.