V8 bindings for indexers and named property getters could be easily generated, thus avoiding the maintenance burden when adding new IDLs.
Created attachment 44714 [details] Generate bindings for trivial indexers.
style-queue ran check-webkit-style on attachment 44714 [details] without any errors.
Comment on attachment 44714 [details] Generate bindings for trivial indexers. Looks sane, but could we make the perl more readable? Like by putting this new code in a well-named sub-routine?
Sure, sounds good. Most of this should go away anyway, once I switch over to use toV8(...) type resolution a-la JSC-land. This is just a first step :) I am going abarth on these bindings!
Comment on attachment 44714 [details] Generate bindings for trivial indexers. I'll prettify the Perl code and repost.
Created attachment 44817 [details] Generate bindings for trivial indexers.
Comment on attachment 44817 [details] Generate bindings for trivial indexers. It would be nice to see an example of the new generated code. But this looks OK as far as I can tell. Are you sure we have tests covering index getters for all these?
Created attachment 44822 [details] An example of new generated file. Here's an example of the new generated output. Look for "setCollectionIndexerGetter" added to ConfigureV8CSSRuleListTemplate. It used to be set in a long case statement inside V8DOMWrapper:getTemplate.
Landed as http://trac.webkit.org/changeset/52120.
I am going to use this as a master bug for V8 getter generation.
Comment on attachment 44817 [details] Generate bindings for trivial indexers. Clearing my r+ on this obsolete patch.
All hand-coded configuring indexer or named property handling is gone.