JSC/DOM bindings: Reduce HandleHeap churn in cacheWrapper().
authorkling@webkit.org <kling@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Jan 2012 16:35:33 +0000 (16:35 +0000)
committerkling@webkit.org <kling@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Jan 2012 16:35:33 +0000 (16:35 +0000)
commit64ff05a36db22ad532ad077e54c0c7d40061151b
treed67a7ba0a509682104d7777f846aa13e86561dad
parent7d2c96f262ddb83ff93e1dd72e68a9b5b1bb6322
JSC/DOM bindings: Reduce HandleHeap churn in cacheWrapper().
<http://webkit.org/b/76271>

Reviewed by Darin Adler.

Use JSC::Weak::swap() to move JSDOMWrappers into the DOMWrapperWorld's wrapper map.
This avoids invoking the JSC::Weak copy constructor and associated HandleHeap churn.

* bindings/js/JSDOMBinding.h:
(WebCore::cacheWrapper):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@104941 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/bindings/js/JSDOMBinding.h