[webkit-dev] JS: Getter/Setter callbacks at Property level
Maciej Stachowiak
mjs at apple.com
Fri Jul 24 23:10:55 PDT 2009
On Jul 24, 2009, at 7:23 AM, Brian Barnes wrote:
> This:
>
> "
> 2) There's not currently a performance penalty for re-checking the
> property name in the catchall getter that you currently have
> available, because it gets called without JavaScriptCore doing a
> property lookup first.
> "
>
> Pretty much changes everything for me. Now it's just code I have to
> write instead of a possible spot of un-optimal code when "context"
> switching between my code and the script engine. I think a way to
> one-off way is still more desirable, but this removes my biggest fear.
I will say this though: in the future, defining setters for the class
will allow for greater optimization than is currently possible. So
it's definitely worth adding that API in due course.
Regards,
Maciej
More information about the webkit-dev
mailing list