2008-05-01 Maciej Stachowiak <mjs@apple.com>
authormjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 May 2008 01:02:59 +0000 (01:02 +0000)
committermjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 May 2008 01:02:59 +0000 (01:02 +0000)
commite7c7f73aee1402735a2aadc80902ed6a4c10293c
tree7942940f470d3bdc697586cf195f986437f96345
parentb0ea2a7c5da67a80b041c7bdec40dc2ff0504921
2008-05-01  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Oliver (a while ago)

        - just a wee bit more bindings speedup

        Store the per-document Node --> JS wrapper cache in the document
        instead of an external hashtable.

        * bindings/js/kjs_binding.cpp:
        (WebCore::ScriptInterpreter::getDOMNodeForDocument):
        (WebCore::ScriptInterpreter::forgetDOMNodeForDocument):
        (WebCore::ScriptInterpreter::putDOMNodeForDocument):
        (WebCore::ScriptInterpreter::forgetAllDOMNodesForDocument):
        (WebCore::ScriptInterpreter::markDOMNodesForDocument):
        * dom/Document.h:
        (WebCore::Document::wrapperCache):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32788 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/bindings/js/kjs_binding.cpp
WebCore/dom/Document.h