Micro-optimize JSNodeOwner::isReachableFromOpaqueRoots().
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 1 Mar 2014 01:11:23 +0000 (01:11 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 1 Mar 2014 01:11:23 +0000 (01:11 +0000)
commitd77d28ad9aea66d9c5904472bc3f4537dab21a6e
treeca2c2c3064b4bc543fa6fdb9644debf7ff769e82
parente5dec3204e8a8c481bd664562b0d625161695da5
Micro-optimize JSNodeOwner::isReachableFromOpaqueRoots().
<https://webkit.org/b/129518>

Only do image and audio element specific checks for element nodes.
Time spent in here goes from 0.8% to 0.5% on DYEB.

Reviewed by Benjamin Poulain.

* bindings/js/JSNodeCustom.cpp:
(WebCore::isReachableFromDOM):

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