-
msaboff@apple.com authored
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. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75510 268f45cc-cd09-0410-ab3c-d52691b4dbfc
3c2d4de2