2008-03-18 Maciej Stachowiak <mjs@apple.com>
authormjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Mar 2008 09:42:58 +0000 (09:42 +0000)
committermjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Mar 2008 09:42:58 +0000 (09:42 +0000)
commit6e0869f725b8a3621a0ee1070ffe7ded30fbc958
treef49a8ec3bb628023c7766337d142731579380a09
parentc9213293b3bdb274eb69e87058b34ce9d1e1e557
2008-03-18  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Oliver.

        - a few micro-optimizations for 1.2% SunSpider speedup

        * kjs/function.cpp:
        (KJS::FunctionImp::callAsFunction): check for Return completion before Throw,
        it is more likely.
        * kjs/object.cpp:
        (KJS::JSObject::put): When walking prototype chain, instead of
        checking isObject (a virtual call), compare to jsNull (compare to
        a constant) since null is the only non-object that can be in a
        prototype chain.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31121 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/function.cpp
JavaScriptCore/kjs/object.cpp