Make Baseline JIT exception handling work like the DFG JIT
authormsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Oct 2013 23:33:46 +0000 (23:33 +0000)
committermsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Oct 2013 23:33:46 +0000 (23:33 +0000)
commitb676511de376256ca6dea883682d2ce1e5499094
tree241771255f8ba4b5ce70ec8d98d1d8fd04754aff
parentc3c9428c6bd9b70a0e4ef3f443e7c44d83aeda02
Make Baseline JIT exception handling work like the DFG JIT
https://bugs.webkit.org/show_bug.cgi?id=122244

Reviewed by Filip Pizlo.

Added a jump list (m_exceptionChecks) to JIT as a common place for exception processing within
generated code.  Added exceptionCheck() helpers that check for an exception which add a branch
to the list.

* jit/JIT.cpp:
(JSC::JIT::privateCompile):
(JSC::JIT::privateCompileExceptionHandlers):
* jit/JIT.h:
(JSC::JIT::exceptionCheck):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@156810 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/jit/JIT.cpp
Source/JavaScriptCore/jit/JIT.h