Commit 5598c181 authored by oliver@apple.com's avatar oliver@apple.com

Replace ASSERT_NOT_REACHED with RELEASE_ASSERT_NOT_REACHED in JSC

https://bugs.webkit.org/show_bug.cgi?id=107736

Reviewed by Mark Hahnenberg.

Mechanical change with no performance impact.

* API/JSBlockAdaptor.mm:
(BlockArgumentTypeDelegate::typeVoid):
* API/JSCallbackObjectFunctions.h:
(JSC::::construct):
(JSC::::call):
* API/JSScriptRef.cpp:
* API/ObjCCallbackFunction.mm:
(ArgumentTypeDelegate::typeVoid):
* assembler/ARMv7Assembler.h:
(JSC::ARMv7Assembler::link):
(JSC::ARMv7Assembler::replaceWithLoad):
(JSC::ARMv7Assembler::replaceWithAddressComputation):
* assembler/MacroAssembler.h:
(JSC::MacroAssembler::invert):
* assembler/MacroAssemblerARM.h:
(JSC::MacroAssemblerARM::countLeadingZeros32):
(JSC::MacroAssemblerARM::divDouble):
* assembler/MacroAssemblerMIPS.h:
(JSC::MacroAssemblerMIPS::absDouble):
(JSC::MacroAssemblerMIPS::replaceWithJump):
(JSC::MacroAssemblerMIPS::maxJumpReplacementSize):
* assembler/MacroAssemblerSH4.h:
(JSC::MacroAssemblerSH4::absDouble):
(JSC::MacroAssemblerSH4::replaceWithJump):
(JSC::MacroAssemblerSH4::maxJumpReplacementSize):
* assembler/SH4Assembler.h:
(JSC::SH4Assembler::shllImm8r):
(JSC::SH4Assembler::shlrImm8r):
(JSC::SH4Assembler::cmplRegReg):
(JSC::SH4Assembler::branch):
* assembler/X86Assembler.h:
(JSC::X86Assembler::replaceWithLoad):
(JSC::X86Assembler::replaceWithAddressComputation):
* bytecode/CallLinkInfo.cpp:
(JSC::CallLinkInfo::unlink):
* bytecode/CodeBlock.cpp:
(JSC::debugHookName):
(JSC::CodeBlock::printGetByIdOp):
(JSC::CodeBlock::printGetByIdCacheStatus):
(JSC::CodeBlock::visitAggregate):
(JSC::CodeBlock::finalizeUnconditionally):
(JSC::CodeBlock::usesOpcode):
* bytecode/DataFormat.h:
(JSC::needDataFormatConversion):
* bytecode/ExitKind.cpp:
(JSC::exitKindToString):
(JSC::exitKindIsCountable):
* bytecode/MethodOfGettingAValueProfile.cpp:
(JSC::MethodOfGettingAValueProfile::getSpecFailBucket):
* bytecode/Opcode.h:
(JSC::opcodeLength):
* bytecode/PolymorphicPutByIdList.cpp:
(JSC::PutByIdAccess::fromStructureStubInfo):
(JSC::PutByIdAccess::visitWeak):
* bytecode/StructureStubInfo.cpp:
(JSC::StructureStubInfo::deref):
* bytecompiler/BytecodeGenerator.cpp:
(JSC::ResolveResult::checkValidity):
(JSC::BytecodeGenerator::emitGetLocalVar):
(JSC::BytecodeGenerator::beginSwitch):
* bytecompiler/NodesCodegen.cpp:
(JSC::BinaryOpNode::emitBytecode):
(JSC::emitReadModifyAssignment):
* dfg/DFGAbstractState.cpp:
(JSC::DFG::AbstractState::execute):
(JSC::DFG::AbstractState::mergeStateAtTail):
(JSC::DFG::AbstractState::mergeToSuccessors):
* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::makeSafe):
(JSC::DFG::ByteCodeParser::parseBlock):
* dfg/DFGCFGSimplificationPhase.cpp:
(JSC::DFG::CFGSimplificationPhase::fixPossibleGetLocal):
(JSC::DFG::CFGSimplificationPhase::fixTailOperand):
* dfg/DFGCSEPhase.cpp:
(JSC::DFG::CSEPhase::setLocalStoreElimination):
* dfg/DFGCapabilities.cpp:
(JSC::DFG::canHandleOpcodes):
* dfg/DFGCommon.h:
(JSC::DFG::useKindToString):
* dfg/DFGDoubleFormatState.h:
(JSC::DFG::mergeDoubleFormatStates):
(JSC::DFG::doubleFormatStateToString):
* dfg/DFGFixupPhase.cpp:
(JSC::DFG::FixupPhase::blessArrayOperation):
* dfg/DFGGraph.h:
(JSC::DFG::Graph::clobbersWorld):
* dfg/DFGNode.h:
(JSC::DFG::Node::valueOfJSConstant):
(JSC::DFG::Node::successor):
* dfg/DFGNodeFlags.cpp:
(JSC::DFG::nodeFlagsAsString):
* dfg/DFGNodeType.h:
(JSC::DFG::defaultFlags):
* dfg/DFGRepatch.h:
(JSC::DFG::dfgResetGetByID):
(JSC::DFG::dfgResetPutByID):
* dfg/DFGSlowPathGenerator.h:
(JSC::DFG::SlowPathGenerator::call):
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::silentSavePlanForGPR):
(JSC::DFG::SpeculativeJIT::silentSpill):
(JSC::DFG::SpeculativeJIT::silentFill):
(JSC::DFG::SpeculativeJIT::checkArray):
(JSC::DFG::SpeculativeJIT::checkGeneratedTypeForToInt32):
(JSC::DFG::SpeculativeJIT::compileValueToInt32):
(JSC::DFG::SpeculativeJIT::compileGetByValOnFloatTypedArray):
(JSC::DFG::SpeculativeJIT::compilePutByValForFloatTypedArray):
* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::bitOp):
(JSC::DFG::SpeculativeJIT::shiftOp):
(JSC::DFG::SpeculativeJIT::integerResult):
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::fillInteger):
(JSC::DFG::SpeculativeJIT::fillDouble):
(JSC::DFG::SpeculativeJIT::fillJSValue):
(JSC::DFG::SpeculativeJIT::fillSpeculateIntInternal):
(JSC::DFG::SpeculativeJIT::fillSpeculateDouble):
(JSC::DFG::SpeculativeJIT::fillSpeculateCell):
(JSC::DFG::SpeculativeJIT::fillSpeculateBoolean):
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::fillInteger):
(JSC::DFG::SpeculativeJIT::fillDouble):
(JSC::DFG::SpeculativeJIT::fillJSValue):
(JSC::DFG::SpeculativeJIT::fillSpeculateIntInternal):
(JSC::DFG::SpeculativeJIT::fillSpeculateDouble):
(JSC::DFG::SpeculativeJIT::fillSpeculateCell):
(JSC::DFG::SpeculativeJIT::fillSpeculateBoolean):
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGStructureCheckHoistingPhase.cpp:
(JSC::DFG::StructureCheckHoistingPhase::run):
* dfg/DFGValueSource.h:
(JSC::DFG::ValueSource::valueRecovery):
* dfg/DFGVariableEvent.cpp:
(JSC::DFG::VariableEvent::dump):
* dfg/DFGVariableEventStream.cpp:
(JSC::DFG::VariableEventStream::reconstruct):
* heap/BlockAllocator.h:
(JSC::BlockAllocator::regionSetFor):
* heap/GCThread.cpp:
(JSC::GCThread::gcThreadMain):
* heap/MarkedBlock.cpp:
(JSC::MarkedBlock::sweepHelper):
* heap/MarkedBlock.h:
(JSC::MarkedBlock::isLive):
* interpreter/CallFrame.h:
(JSC::ExecState::inlineCallFrame):
* interpreter/Interpreter.cpp:
(JSC::getCallerInfo):
(JSC::getStackFrameCodeType):
(JSC::Interpreter::execute):
* jit/ExecutableAllocatorFixedVMPool.cpp:
(JSC::FixedVMPoolExecutableAllocator::notifyPageIsFree):
* jit/JIT.cpp:
(JSC::JIT::privateCompileMainPass):
(JSC::JIT::privateCompileSlowCases):
(JSC::JIT::privateCompile):
* jit/JITArithmetic.cpp:
(JSC::JIT::emitSlow_op_mod):
* jit/JITArithmetic32_64.cpp:
(JSC::JIT::emitBinaryDoubleOp):
(JSC::JIT::emitSlow_op_mod):
* jit/JITPropertyAccess.cpp:
(JSC::JIT::isDirectPutById):
* jit/JITStubs.cpp:
(JSC::getPolymorphicAccessStructureListSlot):
(JSC::DEFINE_STUB_FUNCTION):
* llint/LLIntSlowPaths.cpp:
(JSC::LLInt::jitCompileAndSetHeuristics):
* parser/Lexer.cpp:
(JSC::::lex):
* parser/Nodes.h:
(JSC::ExpressionNode::emitBytecodeInConditionContext):
* parser/Parser.h:
(JSC::Parser::getTokenName):
(JSC::Parser::updateErrorMessageSpecialCase):
* parser/SyntaxChecker.h:
(JSC::SyntaxChecker::operatorStackPop):
* runtime/Arguments.cpp:
(JSC::Arguments::tearOffForInlineCallFrame):
* runtime/DatePrototype.cpp:
(JSC::formatLocaleDate):
* runtime/Executable.cpp:
(JSC::samplingDescription):
* runtime/Executable.h:
(JSC::ScriptExecutable::unlinkCalls):
* runtime/Identifier.cpp:
(JSC):
* runtime/InternalFunction.cpp:
(JSC::InternalFunction::getCallData):
* runtime/JSArray.cpp:
(JSC::JSArray::push):
(JSC::JSArray::sort):
* runtime/JSCell.cpp:
(JSC::JSCell::defaultValue):
(JSC::JSCell::getOwnPropertyNames):
(JSC::JSCell::getOwnNonIndexPropertyNames):
(JSC::JSCell::className):
(JSC::JSCell::getPropertyNames):
(JSC::JSCell::customHasInstance):
(JSC::JSCell::putDirectVirtual):
(JSC::JSCell::defineOwnProperty):
(JSC::JSCell::getOwnPropertyDescriptor):
* runtime/JSCell.h:
(JSCell):
* runtime/JSNameScope.cpp:
(JSC::JSNameScope::put):
* runtime/JSObject.cpp:
(JSC::JSObject::getOwnPropertySlotByIndex):
(JSC::JSObject::putByIndex):
(JSC::JSObject::ensureArrayStorageSlow):
(JSC::JSObject::deletePropertyByIndex):
(JSC::JSObject::getOwnPropertyNames):
(JSC::JSObject::putByIndexBeyondVectorLength):
(JSC::JSObject::putDirectIndexBeyondVectorLength):
(JSC::JSObject::getOwnPropertyDescriptor):
* runtime/JSObject.h:
(JSC::JSObject::canGetIndexQuickly):
(JSC::JSObject::getIndexQuickly):
(JSC::JSObject::tryGetIndexQuickly):
(JSC::JSObject::canSetIndexQuickly):
(JSC::JSObject::canSetIndexQuicklyForPutDirect):
(JSC::JSObject::setIndexQuickly):
(JSC::JSObject::initializeIndex):
(JSC::JSObject::hasSparseMap):
(JSC::JSObject::inSparseIndexingMode):
* runtime/JSScope.cpp:
(JSC::JSScope::isDynamicScope):
* runtime/JSSymbolTableObject.cpp:
(JSC::JSSymbolTableObject::putDirectVirtual):
* runtime/JSSymbolTableObject.h:
(JSSymbolTableObject):
* runtime/LiteralParser.cpp:
(JSC::::parse):
* runtime/RegExp.cpp:
(JSC::RegExp::compile):
(JSC::RegExp::compileMatchOnly):
* runtime/StructureTransitionTable.h:
(JSC::newIndexingType):
* tools/CodeProfile.cpp:
(JSC::CodeProfile::sample):
* yarr/YarrCanonicalizeUCS2.h:
(JSC::Yarr::getCanonicalPair):
(JSC::Yarr::areCanonicallyEquivalent):
* yarr/YarrInterpreter.cpp:
(JSC::Yarr::Interpreter::matchCharacterClass):
(JSC::Yarr::Interpreter::matchBackReference):
(JSC::Yarr::Interpreter::backtrackParenthesesTerminalEnd):
(JSC::Yarr::Interpreter::matchParentheses):
(JSC::Yarr::Interpreter::backtrackParentheses):
(JSC::Yarr::Interpreter::matchDisjunction):
* yarr/YarrJIT.cpp:
(JSC::Yarr::YarrGenerator::generateTerm):
(JSC::Yarr::YarrGenerator::backtrackTerm):
* yarr/YarrParser.h:
(JSC::Yarr::Parser::CharacterClassParserDelegate::assertionWordBoundary):
(JSC::Yarr::Parser::CharacterClassParserDelegate::atomBackReference):
* yarr/YarrPattern.cpp:
(JSC::Yarr::YarrPatternConstructor::atomCharacterClassBuiltIn):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140594 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a973b01a
......@@ -133,7 +133,7 @@ public:
static ResultType typeVoid()
{
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return 0;
}
......
......@@ -384,7 +384,7 @@ EncodedJSValue JSCallbackObject<Parent>::construct(ExecState* exec)
}
}
ASSERT_NOT_REACHED(); // getConstructData should prevent us from reaching here
RELEASE_ASSERT_NOT_REACHED(); // getConstructData should prevent us from reaching here
return JSValue::encode(JSValue());
}
......@@ -450,7 +450,7 @@ EncodedJSValue JSCallbackObject<Parent>::call(ExecState* exec)
}
}
ASSERT_NOT_REACHED(); // getCallData should prevent us from reaching here
RELEASE_ASSERT_NOT_REACHED(); // getCallData should prevent us from reaching here
return JSValue::encode(JSValue());
}
......
......@@ -133,7 +133,7 @@ JSValueRef JSScriptEvaluate(JSContextRef context, JSScriptRef script, JSValueRef
ExecState* exec = toJS(context);
APIEntryShim entryShim(exec);
if (script->globalData() != &exec->globalData()) {
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return 0;
}
JSValue internalException;
......
......@@ -242,7 +242,7 @@ public:
static ResultType typeVoid()
{
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return 0;
}
......
This diff is collapsed.
......@@ -2019,7 +2019,7 @@ public:
linkBX(reinterpret_cast_ptr<uint16_t*>(from), to);
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
break;
}
}
......@@ -2163,7 +2163,7 @@ public:
cacheFlush(ptr, sizeof(uint16_t) * 2);
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
}
......@@ -2183,7 +2183,7 @@ public:
case OP_ADD_imm_T3:
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
}
......
......@@ -121,7 +121,7 @@ public:
case DoubleLessThanOrEqualOrUnordered:
return DoubleGreaterThan;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return DoubleEqual; // make compiler happy
}
}
......@@ -145,7 +145,7 @@ public:
case NonZero:
return Zero;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return Zero; // Make compiler happy for release builds.
}
}
......
......@@ -342,7 +342,7 @@ public:
#else
UNUSED_PARAM(src);
UNUSED_PARAM(dest);
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
#endif
}
......@@ -1104,7 +1104,7 @@ public:
void divDouble(Address src, FPRegisterID dest)
{
ASSERT_NOT_REACHED(); // Untested
RELEASE_ASSERT_NOT_REACHED(); // Untested
loadDouble(src, ARMRegisters::SD0);
divDouble(ARMRegisters::SD0, dest);
}
......
......@@ -517,7 +517,7 @@ public:
void absDouble(FPRegisterID, FPRegisterID)
{
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
ConvertibleLoadLabel convertibleLoadPtr(Address address, RegisterID dest)
......@@ -2252,12 +2252,12 @@ public:
static void replaceWithJump(CodeLocationLabel instructionStart, CodeLocationLabel destination)
{
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
static ptrdiff_t maxJumpReplacementSize()
{
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return 0;
}
......
......@@ -1533,7 +1533,7 @@ void or32(TrustedImm32 imm, RegisterID src, RegisterID dest)
void absDouble(FPRegisterID, FPRegisterID)
{
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
Jump branchTest8(ResultCondition cond, Address address, TrustedImm32 mask = TrustedImm32(-1))
......@@ -2235,12 +2235,12 @@ void or32(TrustedImm32 imm, RegisterID src, RegisterID dest)
static void replaceWithJump(CodeLocationLabel instructionStart, CodeLocationLabel destination)
{
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
static ptrdiff_t maxJumpReplacementSize()
{
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return 0;
}
......
......@@ -534,7 +534,7 @@ public:
oneShortOp(getOpcodeGroup2(SHLL16_OPCODE, dst));
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
}
......@@ -584,7 +584,7 @@ public:
oneShortOp(getOpcodeGroup2(SHLR16_OPCODE, dst));
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
}
......@@ -654,7 +654,7 @@ public:
oneShortOp(getOpcodeGroup1(CMPGT_OPCODE, left, right));
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
}
......@@ -731,7 +731,7 @@ public:
oneShortOp(getOpcodeGroup5(BF_OPCODE, label));
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
}
......@@ -751,7 +751,7 @@ public:
oneShortOp(getOpcodeGroup2(BSRF_OPCODE, reg));
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
}
......
......@@ -1952,7 +1952,7 @@ public:
*ptr = OP_MOV_GvEv;
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
}
......@@ -1970,7 +1970,7 @@ public:
case OP_LEA:
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
}
......
......@@ -42,7 +42,7 @@ void CallLinkInfo::unlink(JSGlobalData& globalData, RepatchBuffer& repatchBuffer
#if ENABLE(DFG_JIT)
repatchBuffer.relink(callReturnLocation, (callType == Construct ? globalData.getCTIStub(DFG::linkConstructThunkGenerator) : globalData.getCTIStub(DFG::linkCallThunkGenerator)).code());
#else
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
#endif
} else
repatchBuffer.relink(callReturnLocation, callType == Construct ? globalData.getCTIStub(linkConstructGenerator).code() : globalData.getCTIStub(linkCallGenerator).code());
......
......@@ -231,7 +231,7 @@ NEVER_INLINE static const char* debugHookName(int debugHookID)
return "didReachBreakpoint";
}
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return "";
}
......@@ -305,7 +305,7 @@ void CodeBlock::printGetByIdOp(PrintStream& out, ExecState* exec, int location,
op = "string_length";
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
op = 0;
}
int r0 = (++it)->u.operand;
......@@ -415,7 +415,7 @@ void CodeBlock::printGetByIdCacheStatus(PrintStream& out, ExecState* exec, int l
out.printf("string_length");
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
break;
}
......@@ -2111,7 +2111,7 @@ void CodeBlock::visitAggregate(SlotVisitor& visitor)
visitor.addWeakReferenceHarvester(this);
#else // ENABLE(DFG_JIT)
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
#endif // ENABLE(DFG_JIT)
}
......@@ -2227,7 +2227,7 @@ void CodeBlock::finalizeUnconditionally()
case op_get_array_length:
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
}
......@@ -3347,7 +3347,7 @@ bool CodeBlock::usesOpcode(OpcodeID opcodeID)
FOR_EACH_OPCODE_ID(DEFINE_OP)
#undef DEFINE_OP
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
break;
}
}
......
......@@ -115,14 +115,14 @@ inline bool needDataFormatConversion(DataFormat from, DataFormat to)
return false;
default:
// This captures DataFormatBoolean, which is currently unused.
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
case DataFormatStorage:
ASSERT(to == DataFormatStorage);
return false;
default:
// This captures DataFormatBoolean, which is currently unused.
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
return true;
}
......@@ -149,7 +149,7 @@ inline bool needDataFormatConversion(DataFormat from, DataFormat to)
ASSERT(to == DataFormatStorage);
return false;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
return true;
}
......
......@@ -69,7 +69,7 @@ const char* exitKindToString(ExitKind kind)
case UncountableWatchpoint:
return "UncountableWatchpoint";
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return "Unknown";
}
}
......@@ -78,7 +78,7 @@ bool exitKindIsCountable(ExitKind kind)
{
switch (kind) {
case ExitKindUnset:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
case BadType:
case Uncountable:
case UncountableWatchpoint:
......
......@@ -58,7 +58,7 @@ EncodedJSValue* MethodOfGettingAValueProfile::getSpecFailBucket(unsigned index)
u.lazyOperand.bytecodeOffset, u.lazyOperand.operand))->specFailBucket(index);
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return 0;
}
}
......
......@@ -290,7 +290,7 @@ namespace JSC {
FOR_EACH_OPCODE_ID(OPCODE_ID_LENGTHS)
#undef OPCODE_ID_LENGTHS
}
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return 0;
}
......
......@@ -55,7 +55,7 @@ PutByIdAccess PutByIdAccess::fromStructureStubInfo(
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
return result;
......@@ -77,7 +77,7 @@ bool PutByIdAccess::visitWeak() const
return false;
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return false;
}
return true;
......
......@@ -63,7 +63,7 @@ void StructureStubInfo::deref()
// These instructions don't have to release any allocated memory
return;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
}
......
......@@ -143,7 +143,7 @@ void ResolveResult::checkValidity()
ASSERT(!m_local);
return;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
}
#endif
......@@ -1412,7 +1412,7 @@ RegisterID* BytecodeGenerator::emitGetLocalVar(RegisterID* dst, const ResolveRes
return moveToDestinationIfNeeded(dst, resolveResult.local());
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return 0;
}
}
......@@ -2397,7 +2397,7 @@ void BytecodeGenerator::beginSwitch(RegisterID* scrutineeRegister, SwitchInfo::S
emitOpcode(op_switch_string);
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
instructions().append(0); // place holder for table index
......
......@@ -1050,7 +1050,7 @@ RegisterID* BinaryOpNode::emitBytecode(BytecodeGenerator& generator, RegisterID*
else if (opcodeID == op_nstricteq)
generator.emitEqualityOp(op_stricteq, generator.finalDestination(tmp.get(), src1.get()), src1.get(), src2);
else
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return generator.emitUnaryOp(op_not, generator.finalDestination(dst, tmp.get()), tmp.get());
}
return generator.emitBinaryOp(opcodeID, generator.finalDestination(dst, src1.get()), src1.get(), src2, OperandTypes(left->resultDescriptor(), right->resultDescriptor()));
......@@ -1231,7 +1231,7 @@ static ALWAYS_INLINE RegisterID* emitReadModifyAssignment(BytecodeGenerator& gen
opcodeID = op_mod;
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return dst;
}
......
......@@ -358,7 +358,7 @@ bool AbstractState::execute(unsigned indexInBlock)
constantWasSet = trySetConstant(nodeIndex, JSValue(static_cast<uint32_t>(a) >> static_cast<uint32_t>(b)));
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
constantWasSet = false;
}
if (constantWasSet) {
......@@ -583,7 +583,7 @@ bool AbstractState::execute(unsigned indexInBlock)
constantWasSet = trySetConstant(nodeIndex, JSValue(fmod(a, b)));
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
constantWasSet = false;
break;
}
......@@ -805,7 +805,7 @@ bool AbstractState::execute(unsigned indexInBlock)
constantWasSet = trySetConstant(nodeIndex, jsBoolean(a == b));
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
constantWasSet = false;
break;
}
......@@ -956,7 +956,7 @@ bool AbstractState::execute(unsigned indexInBlock)
case Array::SelectUsingPredictions:
case Array::Unprofiled:
case Array::Undecided:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
break;
case Array::ForceExit:
m_isValid = false;
......@@ -1039,7 +1039,7 @@ bool AbstractState::execute(unsigned indexInBlock)
forNode(nodeIndex).set(SpecDouble);
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
break;
}
break;
......@@ -1631,7 +1631,7 @@ bool AbstractState::execute(unsigned indexInBlock)
forNode(node.child1()).filter(SpecFloat64Array);
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
break;
}
forNode(node.child1()).filterArrayModes(node.arrayMode().arrayModesThatPassFiltering());
......@@ -1805,7 +1805,7 @@ bool AbstractState::execute(unsigned indexInBlock)
break;
case LastNodeType:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
break;
}
......@@ -1933,7 +1933,7 @@ inline bool AbstractState::mergeStateAtTail(AbstractValue& destination, Abstract
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
break;
}
}
......@@ -2021,7 +2021,7 @@ inline bool AbstractState::mergeToSuccessors(
return false;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return false;
}
}
......
......@@ -1001,7 +1001,7 @@ private:
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
break;
}
......@@ -3232,7 +3232,7 @@ bool ByteCodeParser::parseBlock(unsigned limit)
default:
// Parse failed! This should not happen because the capabilities checker
// should have caught it.
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return false;
}
}
......
......@@ -347,7 +347,7 @@ private:
break;
}
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
break;
}
}
......@@ -549,7 +549,7 @@ private:
}
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
}
}
......
......@@ -985,7 +985,7 @@ private:
result.mayExit |= node.canExit();
result.mayClobberWorld |= m_graph.clobbersWorld(index);
}
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
// Be safe in release mode.
result.mayBeAccessed = true;
return result;
......
......@@ -119,7 +119,7 @@ ReturnType canHandleOpcodes(CodeBlock* codeBlock, ReturnType initialValue)
FOR_EACH_OPCODE_ID(DEFINE_OP)
#undef DEFINE_OP
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
break;
}
}
......
......@@ -130,7 +130,7 @@ inline const char* useKindToString(UseKind useKind)
case DoubleUse:
return "d";
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return 0;
}
}
......
......@@ -61,7 +61,7 @@ inline DoubleFormatState mergeDoubleFormatStates(DoubleFormatState a, DoubleForm
case CantUseDoubleFormat:
return CantUseDoubleFormat;
}
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return CantUseDoubleFormat;
}
......@@ -86,7 +86,7 @@ inline const char* doubleFormatStateToString(DoubleFormatState state)
case CantUseDoubleFormat:
return "ForceValue";
}
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return 0;
}
......
......@@ -490,7 +490,7 @@ private:
case Array::SelectUsingPredictions:
case Array::Unprofiled:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return;
case Array::Generic:
......
......@@ -569,7 +569,7 @@ public:
case PutByValAlias:
return !byValIsPure(node);
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return true; // If by some oddity we hit this case in release build it's safer to have CSE assume the worst.
}
}
......
......@@ -317,7 +317,7 @@ struct Node {
case PhantomArguments:
return JSValue();
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return JSValue(); // Have to return something in release mode.
}
}
......@@ -645,7 +645,7 @@ struct Node {
case 1:
return notTakenBlockIndex();
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return NoBlock;
}
}
......
......@@ -61,7 +61,7 @@ const char* nodeFlagsAsString(NodeFlags flags)
ptr.strcat("Storage");
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
break;
}
hasPrinted = true;
......
......@@ -275,7 +275,7 @@ inline NodeFlags defaultFlags(NodeType op)
FOR_EACH_DFG_OP(DFG_OP_ENUM)
#undef DFG_OP_ENUM
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
return 0;
}
}
......
......@@ -59,8 +59,8 @@ struct StructureStubInfo;
namespace DFG {
inline NO_RETURN_DUE_TO_ASSERT void dfgResetGetByID(RepatchBuffer&, StructureStubInfo&) { ASSERT_NOT_REACHED(); }
inline NO_RETURN_DUE_TO_ASSERT void dfgResetPutByID(RepatchBuffer&, StructureStubInfo&) { ASSERT_NOT_REACHED(); }
inline NO_RETURN_DUE_TO_ASSERT void dfgResetGetByID(RepatchBuffer&, StructureStubInfo&) { RELEASE_ASSERT_NOT_REACHED(); }
inline NO_RETURN_DUE_TO_ASSERT void dfgResetPutByID(RepatchBuffer&, StructureStubInfo&) { RELEASE_ASSERT_NOT_REACHED(); }
} } // namespace JSC::DFG
......
......@@ -61,7 +61,7 @@ public:
MacroAssembler::Label label() const { return m_label; }
virtual MacroAssembler::Call call() const
{
ASSERT_NOT_REACHED(); // By default slow path generators don't have a call.
RELEASE_ASSERT_NOT_REACHED(); // By default slow path generators don't have a call.
return MacroAssembler::Call();
}
protected:
......
......@@ -411,7 +411,7 @@ SilentRegisterSavePlan SpeculativeJIT::silentSavePlanForGPR(VirtualRegister spil
fillAction = Load32Payload;
} else if (registerFormat == DataFormatBoolean) {
#if USE(JSVALUE64)
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();
fillAction = DoNothingForFill;
#elif USE(JSVALUE32_64)
ASSERT(info.gpr() == source);
......@@ -549,7 +549,7 @@ void SpeculativeJIT::silentSpill(const SilentRegisterSavePlan& plan)
m_jit.storeDouble(plan.fpr(), JITCompiler::addressFor(at(plan.nodeIndex()).virtualRegister()));
break;
default:
ASSERT_NOT_REACHED();
RELEASE_ASSERT_NOT_REACHED();