2008-08-08 Cameron Zwarich <cwzwarich@uwaterloo.ca>
authorcwzwarich@webkit.org <cwzwarich@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 9 Aug 2008 03:56:46 +0000 (03:56 +0000)
committercwzwarich@webkit.org <cwzwarich@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 9 Aug 2008 03:56:46 +0000 (03:56 +0000)
commit165be7e77d1499d30e5381059a051e1dd72682bc
tree95ff7b465a0f7eb500800e6fdafa31cb6909333d
parente1544c8fe1d4ea7625ebea8260f46b66d4b270a9
2008-08-08  Cameron Zwarich  <cwzwarich@uwaterloo.ca>

        Reviewed by Oliver.

        Bug 20330: JSCore crash loading any filehurricane media page
        <https://bugs.webkit.org/show_bug.cgi?id=20330>

        Fix a typo in the constant loading patch. Also, add a case for
        op_unexpected_load to CodeBlock::dump().

        JavaScriptCore:

        * VM/CodeBlock.cpp:
        (KJS::CodeBlock::dump):
        * VM/CodeGenerator.cpp:
        (KJS::CodeGenerator::addUnexpectedConstant):

        LayoutTests:

        * fast/js/resources/unexpected-constant-crash.js: Added.
        * fast/js/unexpected-constant-crash-expected.txt: Added.
        * fast/js/unexpected-constant-crash.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@35651 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/VM/CodeBlock.cpp
JavaScriptCore/VM/CodeGenerator.cpp
LayoutTests/ChangeLog
LayoutTests/fast/js/resources/unexpected-constant-crash.js [new file with mode: 0644]
LayoutTests/fast/js/unexpected-constant-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/unexpected-constant-crash.html [new file with mode: 0644]