Changeset 237728 in webkit


Ignore:
Timestamp:
Nov 2, 2018 3:46:34 AM (5 years ago)
Author:
Tadeu Zagallo
Message:

REGRESSION(r237547): Exception handlers should be aware of wide opcodes when JIT is disabled
https://bugs.webkit.org/show_bug.cgi?id=191175

Reviewed by Keith Miller.

https://bugs.webkit.org/show_bug.cgi?id=191108 did not handle the case where JIT is not enabled

  • jit/JITExceptions.cpp:

(JSC::genericUnwind):

  • llint/LLIntData.h:

(JSC::LLInt::getWideCodePtr):

Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r237714 r237728  
     12018-11-02  Tadeu Zagallo  <tzagallo@apple.com>
     2
     3        REGRESSION(r237547): Exception handlers should be aware of wide opcodes when JIT is disabled
     4        https://bugs.webkit.org/show_bug.cgi?id=191175
     5
     6        Reviewed by Keith Miller.
     7
     8        https://bugs.webkit.org/show_bug.cgi?id=191108 did not handle the case where JIT is not enabled
     9
     10        * jit/JITExceptions.cpp:
     11        (JSC::genericUnwind):
     12        * llint/LLIntData.h:
     13        (JSC::LLInt::getWideCodePtr):
     14
    1152018-11-01  Fujii Hironori  <Hironori.Fujii@sony.com>
    216
  • trunk/Source/JavaScriptCore/jit/JITExceptions.cpp

    r237547 r237728  
    7474        catchRoutine = handler->nativeCode.executableAddress();
    7575#else
    76         catchRoutine = LLInt::getCodePtr(catchPCForInterpreter->opcodeID());
     76        catchRoutine = catchPCForInterpreter->isWide()
     77            ? LLInt::getWideCodePtr(catchPCForInterpreter->opcodeID())
     78            : LLInt::getCodePtr(catchPCForInterpreter->opcodeID());
    7779#endif
    7880    } else
  • trunk/Source/JavaScriptCore/llint/LLIntData.h

    r237547 r237728  
    141141    return reinterpret_cast<void*>(getOpcode(id));
    142142}
     143
     144ALWAYS_INLINE void* getWideCodePtr(OpcodeID id)
     145{
     146    return reinterpret_cast<void*>(getOpcodeWide(id));
     147}
    143148#endif
    144149
Note: See TracChangeset for help on using the changeset viewer.