• darin@apple.com's avatar
    Reviewed by Oliver. · 6a95834c
    darin@apple.com authored
            - http://bugs.webkit.org/show_bug.cgi?id=15904
              more speed-ups possible by tightening up int version of JSImmediate
            1% improvement of SunSpider
            * kjs/JSImmediate.h: Eliminate the now-unneeded FPBitValues struct template.
            (KJS::JSImmediate::from): Overload for most numeric types; many types can
            do fewer branches and checks.
            (KJS::JSImmediate::getUInt32): Removed unneeded check for undefined.
            (KJS::JSImmediate::getTruncatedInt32): Ditto.
            (KJS::JSImmediate::getTruncatedUInt32): Ditto. There's no difference any more
            between getUInt32 and getTruncatedUInt32, so that's worth a rename and merge later.
            * kjs/grammar.y: Update since fromDouble is now just from.
            * kjs/nodes.h: Ditto.
            * kjs/value.h: (KJS::jsNumber): Overload for most numeric types.
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27632 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog 162 KB