Changeset 206401 in webkit


Ignore:
Timestamp:
Sep 26, 2016 4:11:53 PM (8 years ago)
Author:
mark.lam@apple.com
Message:

Exception unwinding code should use a CatchScope instead of a ThrowScope.
https://bugs.webkit.org/show_bug.cgi?id=162583

Reviewed by Geoffrey Garen.

This is because the exception unwinding code does not throw an exception.
It only inspects the thrown exception and passes it to the appropriate handler.

  • interpreter/Interpreter.cpp:

(JSC::Interpreter::unwind):

  • jit/JITExceptions.cpp:

(JSC::genericUnwind):

Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r206400 r206401  
     12016-09-26  Mark Lam  <mark.lam@apple.com>
     2
     3        Exception unwinding code should use a CatchScope instead of a ThrowScope.
     4        https://bugs.webkit.org/show_bug.cgi?id=162583
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        This is because the exception unwinding code does not throw an exception.
     9        It only inspects the thrown exception and passes it to the appropriate handler.
     10
     11        * interpreter/Interpreter.cpp:
     12        (JSC::Interpreter::unwind):
     13        * jit/JITExceptions.cpp:
     14        (JSC::genericUnwind):
     15
    1162016-09-26  Joseph Pecoraro  <pecoraro@apple.com>
    217
  • trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp

    r206386 r206401  
    679679NEVER_INLINE HandlerInfo* Interpreter::unwind(VM& vm, CallFrame*& callFrame, Exception* exception, UnwindStart unwindStart)
    680680{
    681     auto scope = DECLARE_THROW_SCOPE(vm);
     681    auto scope = DECLARE_CATCH_SCOPE(vm);
    682682
    683683    if (unwindStart == UnwindFromCallerFrame) {
  • trunk/Source/JavaScriptCore/jit/JITExceptions.cpp

    r205569 r206401  
    4343void genericUnwind(VM* vm, ExecState* callFrame, UnwindStart unwindStart)
    4444{
    45     auto scope = DECLARE_THROW_SCOPE(*vm);
     45    auto scope = DECLARE_CATCH_SCOPE(*vm);
    4646    if (Options::breakOnThrow()) {
    4747        CodeBlock* codeBlock = callFrame->codeBlock();
Note: See TracChangeset for help on using the changeset viewer.