2008-08-29 Anders Carlsson <andersca@apple.com>
commitc4b88f9abfe5c40b4d502c7067683102ad912106
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 30 Aug 2008 00:40:34 +0000 (30 00:40 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 30 Aug 2008 00:40:34 +0000 (30 00:40 +0000)
tree167d4f192a4ed965d281eb5be5b42db0c519a281
parente1bd60353a704b56671aa74765cc9f25c9b340dc
2008-08-29  Anders Carlsson  <andersca@apple.com>

        Reviewed by Darin.

        <rdar://problem/6174667>
        When a machine is under heavy load, the Slow Script dialog often comes up many times and just gets in the way

        Instead of using clock time, use the CPU time spent executing the current thread when
        determining if the script has been running for too long.

        * VM/Machine.cpp:
        (KJS::getCPUTime):
        (KJS::Machine::checkTimeout):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@36003 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/VM/Machine.cpp