Skip to content
  • andersca@apple.com's avatar
    2008-05-26 Anders Carlsson <andersca@apple.com> · 4292302b
    andersca@apple.com authored
            Reviewed by Sam.
    
            This patch does two things:
            
            * It adds a toJSNewlyCreated function for creating JS wrappers for nodes where we know
            that the node doesn't have a wrapper. This avoids a hash lookup.
            
            * It adds toJSNewlyCreated methods for JSElement and JSText. 
            
            All in all this is a 4.3% speedup on Acid 3 test 26.
            
            * WebCore.vcproj/WebCore.vcproj:
            * WebCore.xcodeproj/project.pbxproj:
            * bindings/js/JSElementCustom.cpp:
            (WebCore::toJSNewlyCreated):
            * bindings/js/JSNodeCustom.cpp:
            (WebCore::createWrapper):
            (WebCore::toJSNewlyCreated):
            (WebCore::toJS):
            * bindings/js/JSTextCustom.cpp: Added.
            (WebCore::toJSNewlyCreated):
            * bindings/scripts/CodeGeneratorJS.pm:
            * dom/Document.idl:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34141 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    4292302b