Comment #5 on issue 2087 by [email protected]: Share optimized code across closure instances
http://code.google.com/p/v8/issues/detail?id=2087
I just discussed with Florian how to solve the problem from comment #3. We think the easiest solution is to share the literals array across closures that share the same context. Thereby all boilerplate objects are implicitly shared as well and can still be embedded into the code directly.
Exactly the same conditions that apply for sharing optimized code should apply for sharing literals.
-- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
