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/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.