[webkit-dev] Overloads support in V8 & JSC

Kenneth Russell kbr at google.com
Mon Apr 12 21:05:26 PDT 2010


On Mon, Apr 12, 2010 at 11:13 AM, Yaar Schnitman <yaar at chromium.org> wrote:
> Hi,
> I'm adding method overloading support to the V8 and JSC bindings
> generators. A significant portion of custom bindings are needed since these
> generators don't support re-declaration of functions with different sets of
> arguments. Just in CanvasRenderingContext2D, there are almost a dozen
> methods that can be "uncustomized" if the IDLs would have more precise
> definitions of their various argument options. XHR, WebGL, SQLDatabase and a
> few other places will benefit from overloads support too. Once done,
> WebKit's IDLs will be more precise and more compliant with the W3C specs.
> I plan to start with V8 first and use CanvasRenderingContext2D as a test
> case. If all goes well, I'll add overloads support to JSC, and then
> "uncustomize" the overloads for XHR, WebGL, etc.

This is great. It will dramatically reduce the amount of handwritten
binding code. Please let me know if you need any help with or run into
any issues with the WebGL bindings. There are some tricky overloads
there between arrays and array-like types that may be non-trivial to
handle.

-Ken


More information about the webkit-dev mailing list