Changeset 235198 in webkit
- Timestamp:
- Aug 22, 2018, 1:42:17 PM (7 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r235177 r235198 1 2018-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 1 13 2018-08-22 Mark Lam <mark.lam@apple.com> 2 14 -
trunk/Source/JavaScriptCore/jit/JITOperations.cpp
r233772 r235198 115 115 } 116 116 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 #endif144 145 117 int32_t JIT_OPERATION operationCallArityCheck(ExecState* exec) 146 118 { -
trunk/Source/JavaScriptCore/jit/JITOperations.h
r232047 r235198 354 354 355 355 void 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 #endif360 356 int32_t JIT_OPERATION operationCallArityCheck(ExecState*) WTF_INTERNAL; 361 357 int32_t JIT_OPERATION operationConstructArityCheck(ExecState*) WTF_INTERNAL;
Note:
See TracChangeset
for help on using the changeset viewer.