Updates:
Owner: ---
Comment #3 on issue 2246 by [email protected]: Object literals don't use
CONSTANT_FUNCTION unless they are in global scope.
http://code.google.com/p/v8/issues/detail?id=2246
It can be really surprising to get such a huge penalty for completely
innocent change. Not using CONSTANT descriptor there completely inhibits
inlining which can be deadly for prototypes.
I understand why our heuristic works this way: it makes no sense to use
CONSTANT if the object literal will be instantiated multiple times. But
maybe we at least could have detected immediately executed function
literals and apply this heuristic to them as we apply it to the global code.
(and btw this can be viewed as yet another motivational example to be more
SharedFunctionInfo-centric instead of JSFunction centric in places
where "behavior" is important similar to Issue 2206 --- "method descriptor"
on the hidden class could encode SharedFunctionInfo instead of JSFunction
itself).
--
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.