2007-10-24 Eric Seidel <eric@webkit.org>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2007 21:31:27 +0000 (21:31 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2007 21:31:27 +0000 (21:31 +0000)
commitac36ef3d6f69875b2f37c41439f7a1c08e86d492
tree42bda7e51fc255225f5e2db2440875b620784cbd
parent4da6891baa4f6c36afb57016dfe6279e3f75b32d
2007-10-24  Eric Seidel  <eric@webkit.org>

        Reviewed by Maciej.

        Stop checking isOutOfMemory after every allocation, instead let the collector
        notify all ExecStates if we ever hit this rare condition.

        SunSpider claims this was a 2.2% speedup.

        * kjs/collector.cpp:
        (KJS::Collector::collect):
        (KJS::Collector::reportOutOfMemoryToAllInterpreters):
        * kjs/collector.h:
        * kjs/nodes.cpp:
        (KJS::TryNode::execute):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27001 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/collector.cpp
JavaScriptCore/kjs/collector.h
JavaScriptCore/kjs/nodes.cpp
LayoutTests/ChangeLog
LayoutTests/fast/js/out-of-memory-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/out-of-memory.html [new file with mode: 0644]