Changeset 235198 in webkit


Ignore:
Timestamp:
Aug 22, 2018, 1:42:17 PM (7 years ago)
Author:
msaboff@apple.com
Message:

https://bugs.webkit.org/show_bug.cgi?id=188859
Eliminate dead code operationThrowDivideError() and operationThrowOutOfBoundsAccessError()

Rubber-stamped by Saam Barati.

Deleted these two functions.

  • jit/JITOperations.cpp:
  • jit/JITOperations.h:
Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r235177 r235198  
     12018-08-22  Michael Saboff  <msaboff@apple.com>
     2
     3        https://bugs.webkit.org/show_bug.cgi?id=188859
     4        Eliminate dead code operationThrowDivideError() and operationThrowOutOfBoundsAccessError()
     5
     6        Rubber-stamped by Saam Barati.
     7
     8        Deleted these two functions.
     9
     10        * jit/JITOperations.cpp:
     11        * jit/JITOperations.h:
     12
    1132018-08-22  Mark Lam  <mark.lam@apple.com>
    214
  • trunk/Source/JavaScriptCore/jit/JITOperations.cpp

    r233772 r235198  
    115115}
    116116
    117 #if ENABLE(WEBASSEMBLY)
    118 void JIT_OPERATION operationThrowDivideError(ExecState* exec)
    119 {
    120     VM* vm = &exec->vm();
    121     auto scope = DECLARE_THROW_SCOPE(*vm);
    122 
    123     EntryFrame* entryFrame = vm->topEntryFrame;
    124     CallFrame* callerFrame = exec->callerFrame(entryFrame);
    125 
    126     NativeCallFrameTracerWithRestore tracer(vm, entryFrame, callerFrame);
    127     ErrorHandlingScope errorScope(*vm);
    128     throwException(callerFrame, scope, createError(callerFrame, "Division by zero or division overflow."_s));
    129 }
    130 
    131 void JIT_OPERATION operationThrowOutOfBoundsAccessError(ExecState* exec)
    132 {
    133     VM* vm = &exec->vm();
    134     auto scope = DECLARE_THROW_SCOPE(*vm);
    135 
    136     EntryFrame* entryFrame = vm->topEntryFrame;
    137     CallFrame* callerFrame = exec->callerFrame(entryFrame);
    138 
    139     NativeCallFrameTracerWithRestore tracer(vm, entryFrame, callerFrame);
    140     ErrorHandlingScope errorScope(*vm);
    141     throwException(callerFrame, scope, createError(callerFrame, "Out-of-bounds access."_s));
    142 }
    143 #endif
    144 
    145117int32_t JIT_OPERATION operationCallArityCheck(ExecState* exec)
    146118{
  • trunk/Source/JavaScriptCore/jit/JITOperations.h

    r232047 r235198  
    354354
    355355void JIT_OPERATION operationThrowStackOverflowError(ExecState*, CodeBlock*) WTF_INTERNAL;
    356 #if ENABLE(WEBASSEMBLY)
    357 void JIT_OPERATION operationThrowDivideError(ExecState*) WTF_INTERNAL;
    358 void JIT_OPERATION operationThrowOutOfBoundsAccessError(ExecState*) WTF_INTERNAL;
    359 #endif
    360356int32_t JIT_OPERATION operationCallArityCheck(ExecState*) WTF_INTERNAL;
    361357int32_t JIT_OPERATION operationConstructArityCheck(ExecState*) WTF_INTERNAL;
Note: See TracChangeset for help on using the changeset viewer.