haikuwebkit/LayoutTests/js/stack-overflow-arrity-catch...

13 lines
311 B
Plaintext
Raw Permalink Normal View History

2011-01-10 Michael Saboff <msaboff@apple.com> Reviewed by Geoffrey Garen. ASSERTION Failure in JSC::binaryChop https://bugs.webkit.org/show_bug.cgi?id=25614 Changed JITStubs::cti_register_file_check() to use the current stack's return PC to find the bytecode for handling the exception in the prior frame. Also added the appropriate arrity check routine call to the JIT to bytecode vector (m_callReturnIndexVector) in the CodeBlock. * jit/JIT.cpp: (JSC::JIT::privateCompile): Changed the arrity check call location so that it gets added to the m_calls list so that it's included in CodeBlock::m_callReturnIndexVector. * jit/JITStubs.cpp: (JSC::DEFINE_STUB_FUNCTION): Use the current call frame's return PC. 2011-01-11 Michael Saboff <msaboff@apple.com> Reviewed by Geoffrey Garen. ASSERTION Failure in JSC::binaryChop https://bugs.webkit.org/show_bug.cgi?id=25614 Added new test to check for proper handling of stack overflow exceptions and arrity exceptions while close to the top of the stack. * fast/js/script-tests/stack-overflow-arrity-catch.js: Added. (fWithTwoArgs): (test): * fast/js/script-tests/stack-overflow-catch.js: Added. (test): * fast/js/stack-overflow-arrity-catch-expected.txt: Added. * fast/js/stack-overflow-arrity-catch.html: Added. * fast/js/stack-overflow-catch-expected.txt: Added. * fast/js/stack-overflow-catch.html: Added. Canonical link: https://commits.webkit.org/65806@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@75510 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-01-11 18:27:15 +00:00
Test that if an arrity check causes a stack overflow, the exception goes to the right catch
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS gotRightCatch is true
PASS gotWrongCatch1 is false
PASS gotWrongCatch2 is false
2011-01-10 Michael Saboff <msaboff@apple.com> Reviewed by Geoffrey Garen. ASSERTION Failure in JSC::binaryChop https://bugs.webkit.org/show_bug.cgi?id=25614 Changed JITStubs::cti_register_file_check() to use the current stack's return PC to find the bytecode for handling the exception in the prior frame. Also added the appropriate arrity check routine call to the JIT to bytecode vector (m_callReturnIndexVector) in the CodeBlock. * jit/JIT.cpp: (JSC::JIT::privateCompile): Changed the arrity check call location so that it gets added to the m_calls list so that it's included in CodeBlock::m_callReturnIndexVector. * jit/JITStubs.cpp: (JSC::DEFINE_STUB_FUNCTION): Use the current call frame's return PC. 2011-01-11 Michael Saboff <msaboff@apple.com> Reviewed by Geoffrey Garen. ASSERTION Failure in JSC::binaryChop https://bugs.webkit.org/show_bug.cgi?id=25614 Added new test to check for proper handling of stack overflow exceptions and arrity exceptions while close to the top of the stack. * fast/js/script-tests/stack-overflow-arrity-catch.js: Added. (fWithTwoArgs): (test): * fast/js/script-tests/stack-overflow-catch.js: Added. (test): * fast/js/stack-overflow-arrity-catch-expected.txt: Added. * fast/js/stack-overflow-arrity-catch.html: Added. * fast/js/stack-overflow-catch-expected.txt: Added. * fast/js/stack-overflow-catch.html: Added. Canonical link: https://commits.webkit.org/65806@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@75510 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-01-11 18:27:15 +00:00
PASS successfullyParsed is true
TEST COMPLETE