Ignore:
Timestamp:
Sep 26, 2016, 4:11:53 PM (9 years ago)
Author:
[email protected]
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):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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) {
Note: See TracChangeset for help on using the changeset viewer.