Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (276469 => 276470)
--- trunk/Source/_javascript_Core/ChangeLog 2021-04-22 22:23:38 UTC (rev 276469)
+++ trunk/Source/_javascript_Core/ChangeLog 2021-04-22 22:24:47 UTC (rev 276470)
@@ -1,3 +1,17 @@
+2021-04-22 Commit Queue <[email protected]>
+
+ Unreviewed, reverting r276456.
+ https://bugs.webkit.org/show_bug.cgi?id=224952
+
+ Windows specific crash
+
+ Reverted changeset:
+
+ "[JSC} Remove exception checks from non-throwing function
+ calls in Baseline JIT"
+ https://bugs.webkit.org/show_bug.cgi?id=224920
+ https://trac.webkit.org/changeset/276456
+
2021-04-22 Yusuke Suzuki <[email protected]>
[JSC} Remove exception checks from non-throwing function calls in Baseline JIT
Modified: trunk/Source/_javascript_Core/jit/JIT.cpp (276469 => 276470)
--- trunk/Source/_javascript_Core/jit/JIT.cpp 2021-04-22 22:23:38 UTC (rev 276469)
+++ trunk/Source/_javascript_Core/jit/JIT.cpp 2021-04-22 22:24:47 UTC (rev 276470)
@@ -95,7 +95,7 @@
copyCalleeSavesFromFrameOrRegisterToEntryFrameCalleeSavesBuffer(vm().topEntryFrame);
- callOperationNoExceptionCheck(operationOptimize, &vm(), m_bytecodeIndex.asBits());
+ callOperation(operationOptimize, &vm(), m_bytecodeIndex.asBits());
skipOptimize.append(branchTestPtr(Zero, returnValueGPR));
farJump(returnValueGPR, GPRInfo::callFrameRegister);
skipOptimize.link(this);
Modified: trunk/Source/_javascript_Core/jit/JITOpcodes.cpp (276469 => 276470)
--- trunk/Source/_javascript_Core/jit/JITOpcodes.cpp 2021-04-22 22:23:38 UTC (rev 276469)
+++ trunk/Source/_javascript_Core/jit/JITOpcodes.cpp 2021-04-22 22:24:47 UTC (rev 276470)
@@ -115,7 +115,7 @@
auto& metadata = bytecode.metadata(m_codeBlock);
VirtualRegister dst = bytecode.m_dst;
Structure* structure = metadata.m_objectAllocationProfile.structure();
- callOperationNoExceptionCheck(operationNewObject, &vm(), structure);
+ callOperation(operationNewObject, TrustedImmPtr(&vm()), structure);
emitStoreCell(dst, returnValueGPR);
}
@@ -842,7 +842,7 @@
addPtr(TrustedImm32(stackPointerOffsetFor(codeBlock()) * sizeof(Register)), callFrameRegister, stackPointerRegister);
- callOperationNoExceptionCheck(operationRetrieveAndClearExceptionIfCatchable, &vm());
+ callOperationNoExceptionCheck(operationRetrieveAndClearExceptionIfCatchable, TrustedImmPtr(&vm()));
Jump isCatchableException = branchTest32(NonZero, returnValueGPR);
jumpToExceptionHandler(vm());
isCatchableException.link(this);
@@ -861,9 +861,9 @@
auto& metadata = bytecode.metadata(m_codeBlock);
ValueProfileAndVirtualRegisterBuffer* buffer = metadata.m_buffer;
if (buffer || !shouldEmitProfiling())
- callOperationNoExceptionCheck(operationTryOSREnterAtCatch, &vm(), m_bytecodeIndex.asBits());
+ callOperation(operationTryOSREnterAtCatch, &vm(), m_bytecodeIndex.asBits());
else
- callOperationNoExceptionCheck(operationTryOSREnterAtCatchAndValueProfile, &vm(), m_bytecodeIndex.asBits());
+ callOperation(operationTryOSREnterAtCatchAndValueProfile, &vm(), m_bytecodeIndex.asBits());
auto skipOSREntry = branchTestPtr(Zero, returnValueGPR);
emitRestoreCalleeSaves();
farJump(returnValueGPR, ExceptionHandlerPtrTag);
@@ -914,7 +914,7 @@
farJump(BaseIndex(regT1, regT0, ScalePtr), JSSwitchPtrTag);
notInt32.link(this);
- callOperationNoExceptionCheck(operationSwitchImmWithUnknownKeyType, &vm(), regT0, tableIndex, unlinkedTable.m_min);
+ callOperationNoExceptionCheck(operationSwitchImmWithUnknownKeyType, TrustedImmPtr(&vm()), regT0, tableIndex, unlinkedTable.m_min);
farJump(returnValueGPR, JSSwitchPtrTag);
}
@@ -1210,7 +1210,7 @@
copyCalleeSavesFromFrameOrRegisterToEntryFrameCalleeSavesBuffer(vm().topEntryFrame);
- callOperationNoExceptionCheck(operationOptimize, &vm(), m_bytecodeIndex.asBits());
+ callOperation(operationOptimize, &vm(), m_bytecodeIndex.asBits());
Jump noOptimizedEntry = branchTestPtr(Zero, returnValueGPR);
if (ASSERT_ENABLED) {
Jump ok = branchPtr(MacroAssembler::Above, returnValueGPR, TrustedImmPtr(bitwise_cast<void*>(static_cast<intptr_t>(1000))));
@@ -1663,7 +1663,7 @@
store64(regT1, Address(regT2, TypeProfilerLog::currentLogEntryOffset()));
Jump skipClearLog = branchPtr(NotEqual, regT1, TrustedImmPtr(cachedTypeProfilerLog->logEndPtr()));
// Clear the log if we're at the end of the log.
- callOperationNoExceptionCheck(operationProcessTypeProfilerLog, &vm());
+ callOperation(operationProcessTypeProfilerLog, &vm());
skipClearLog.link(this);
jumpToEnd.link(this);
Modified: trunk/Source/_javascript_Core/jit/JITOpcodes32_64.cpp (276469 => 276470)
--- trunk/Source/_javascript_Core/jit/JITOpcodes32_64.cpp 2021-04-22 22:23:38 UTC (rev 276469)
+++ trunk/Source/_javascript_Core/jit/JITOpcodes32_64.cpp 2021-04-22 22:24:47 UTC (rev 276470)
@@ -113,7 +113,7 @@
auto& metadata = bytecode.metadata(m_codeBlock);
VirtualRegister dst = bytecode.m_dst;
Structure* structure = metadata.m_objectAllocationProfile.structure();
- callOperationNoExceptionCheck(operationNewObject, &vm(), structure);
+ callOperation(operationNewObject, TrustedImmPtr(&vm()), structure);
emitStoreCell(dst, returnValueGPR);
}
@@ -931,7 +931,7 @@
addPtr(TrustedImm32(stackPointerOffsetFor(codeBlock()) * sizeof(Register)), callFrameRegister, stackPointerRegister);
- callOperationNoExceptionCheck(operationRetrieveAndClearExceptionIfCatchable, &vm());
+ callOperationNoExceptionCheck(operationRetrieveAndClearExceptionIfCatchable, TrustedImmPtr(&vm()));
Jump isCatchableException = branchTest32(NonZero, returnValueGPR);
jumpToExceptionHandler(vm());
isCatchableException.link(this);
@@ -955,9 +955,9 @@
auto& metadata = bytecode.metadata(m_codeBlock);
ValueProfileAndVirtualRegisterBuffer* buffer = metadata.m_buffer;
if (buffer || !shouldEmitProfiling())
- callOperationNoExceptionCheck(operationTryOSREnterAtCatch, &vm(), m_bytecodeIndex.asBits());
+ callOperation(operationTryOSREnterAtCatch, &vm(), m_bytecodeIndex.asBits());
else
- callOperationNoExceptionCheck(operationTryOSREnterAtCatchAndValueProfile, &vm(), m_bytecodeIndex.asBits());
+ callOperation(operationTryOSREnterAtCatchAndValueProfile, &vm(), m_bytecodeIndex.asBits());
auto skipOSREntry = branchTestPtr(Zero, returnValueGPR);
emitRestoreCalleeSaves();
farJump(returnValueGPR, NoPtrTag);
@@ -1009,7 +1009,7 @@
farJump(regT1, NoPtrTag);
notInt32.link(this);
- callOperationNoExceptionCheck(operationSwitchImmWithUnknownKeyType, &vm(), JSValueRegs(regT1, regT0), tableIndex, unlinkedTable.m_min);
+ callOperationNoExceptionCheck(operationSwitchImmWithUnknownKeyType, TrustedImmPtr(&vm()), JSValueRegs(regT1, regT0), tableIndex, unlinkedTable.m_min);
farJump(returnValueGPR, NoPtrTag);
}
@@ -1423,7 +1423,7 @@
store32(regT1, Address(regT2, TypeProfilerLog::currentLogEntryOffset()));
jumpToEnd.append(branchPtr(NotEqual, regT1, TrustedImmPtr(cachedTypeProfilerLog->logEndPtr())));
// Clear the log if we're at the end of the log.
- callOperationNoExceptionCheck(operationProcessTypeProfilerLog, &vm());
+ callOperation(operationProcessTypeProfilerLog, &vm());
jumpToEnd.link(this);
}
Modified: trunk/Source/_javascript_Core/jit/JITPropertyAccess.cpp (276469 => 276470)
--- trunk/Source/_javascript_Core/jit/JITPropertyAccess.cpp 2021-04-22 22:23:38 UTC (rev 276469)
+++ trunk/Source/_javascript_Core/jit/JITPropertyAccess.cpp 2021-04-22 22:24:47 UTC (rev 276470)
@@ -1371,7 +1371,7 @@
ownerNotCell = branchIfNotCell(regT0);
Jump ownerIsRememberedOrInEden = barrierBranch(vm(), regT0, regT1);
- callOperationNoExceptionCheck(operationWriteBarrierSlowPath, &vm(), regT0);
+ callOperation(operationWriteBarrierSlowPath, &vm(), regT0);
ownerIsRememberedOrInEden.link(this);
if (mode == ShouldFilterBaseAndValue || mode == ShouldFilterBase)
@@ -1440,7 +1440,7 @@
ownerNotCell = branchIfNotCell(regT0);
Jump ownerIsRememberedOrInEden = barrierBranch(vm(), regT1, regT2);
- callOperationNoExceptionCheck(operationWriteBarrierSlowPath, &vm(), regT1);
+ callOperation(operationWriteBarrierSlowPath, &vm(), regT1);
ownerIsRememberedOrInEden.link(this);
if (mode == ShouldFilterBase || mode == ShouldFilterBaseAndValue)
@@ -1522,7 +1522,7 @@
void JIT::emitWriteBarrier(JSCell* owner)
{
Jump ownerIsRememberedOrInEden = barrierBranch(vm(), owner, regT0);
- callOperationNoExceptionCheck(operationWriteBarrierSlowPath, &vm(), owner);
+ callOperation(operationWriteBarrierSlowPath, &vm(), owner);
ownerIsRememberedOrInEden.link(this);
}