[Webkit-unassigned] [Bug 31756] getter/setter performance is much worse then a function call

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 26 15:38:18 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=31756





--- Comment #4 from Gavin Barraclough <barraclough at apple.com>  2009-11-26 15:38:17 PST ---
We should just be able to generate dynamic stubs that performs the call for an
accessor-access (much like a prototype or chain access).  As a first cut, these
could be cached uniquely per access site (again, as for prototype & chain
lookups).  If we make this a small stub that calls on to an asm routine to
perform the actual method invocation this may be a sufficient solution; if
these stubs were to prove to large then this approach might have too great an
overhead, and we'd want to look at caching the getter/setter stubs with the
getter/setter they cache access to, so that they can be shared across uses. 
This caching would slightly complicate the implementation.

I'd be quite keen to see this happen (I quite like the language feature), but
to find time to devote to this I think we'd need an example of a major website,
benchmark or piece of functionality in the browser being impaired by this.

G.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list