Table-driven setup for V8 binding template callback functions. 100k in code savings.
authorsnej@chromium.org <snej@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Nov 2009 21:17:23 +0000 (21:17 +0000)
committersnej@chromium.org <snej@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Nov 2009 21:17:23 +0000 (21:17 +0000)
commita5c6749630f3424b1b11fe7ac77bf0d776973d6d
tree04e758ef90a8d0c543b4e574faca2a0ff4d98c30
parent3092001dbf63c2905db531b96d258615cda83a99
Table-driven setup for V8 binding template callback functions. 100k in code savings.
https://bugs.webkit.org/show_bug.cgi?id=31420

Reviewed by Dimitri Glazkov.

* bindings/scripts/CodeGeneratorV8.pm:  Change generated ConfigureXXXTemplate fn
    to call configureTemplate().
* bindings/v8/V8Binding.cpp:
(WebCore::configureTemplate):  New function; does all the standard configuration work.
(WebCore::createCallback):  De-inlined wrapper for FunctionTemplate creation.
* bindings/v8/V8Binding.h:
* bindings/v8/V8Proxy.cpp:
(WebCore::batchConfigureAttributes):  Just wrapped the very long fn parameter list.
(WebCore::batchConfigureCallbacks):  New function, used by configureTemplate.
(WebCore::batchConfigureConstants):  Just wrapped the very long fn parameter list.
* bindings/v8/V8Proxy.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@50897 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/bindings/scripts/CodeGeneratorV8.pm
WebCore/bindings/v8/V8Binding.cpp
WebCore/bindings/v8/V8Binding.h
WebCore/bindings/v8/V8Proxy.cpp
WebCore/bindings/v8/V8Proxy.h