Skip to content

Commit 8196718

Browse files
committed
Drop WTF WARN_UNUSED_RETURN and directly use C++17 [[nodiscard]]
https://bugs.webkit.org/show_bug.cgi?id=305274 rdar://167913946 Reviewed by Darin Adler. This is a follow-up to 304354@main. This modernizes and standardizes the codebase. * Source/JavaScriptCore/API/JSRetainPtr.h: * Source/JavaScriptCore/assembler/AbstractMacroAssembler.h: (JSC::AbstractMacroAssembler::CachedTempRegister::value): * Source/JavaScriptCore/bytecode/ArrayAllocationProfile.h: (JSC::ArrayAllocationProfile::IndexingTypeAndVectorLength::withIndexingType): * Source/JavaScriptCore/heap/Weak.h: * Source/JavaScriptCore/jit/RegisterSet.h: * Source/JavaScriptCore/runtime/JSGenericTypedArrayViewConstructor.cpp: (JSC::decodeHexImpl): (JSC::decodeHex): * Source/JavaScriptCore/runtime/JSGenericTypedArrayViewConstructor.h: * Source/JavaScriptCore/runtime/JSObject.h: (JSC::JSObject::ensureLength): * Source/JavaScriptCore/runtime/PropertyTable.h: (JSC::PropertyTable::add): * Source/JavaScriptCore/wasm/WasmBBQJIT.cpp: (JSC::Wasm::BBQJITImpl::BBQJIT::addTableSet): (JSC::Wasm::BBQJITImpl::BBQJIT::addTableInit): (JSC::Wasm::BBQJITImpl::BBQJIT::addElemDrop): (JSC::Wasm::BBQJITImpl::BBQJIT::addTableSize): (JSC::Wasm::BBQJITImpl::BBQJIT::addTableGrow): (JSC::Wasm::BBQJITImpl::BBQJIT::addTableFill): (JSC::Wasm::BBQJITImpl::BBQJIT::addTableCopy): (JSC::Wasm::BBQJITImpl::BBQJIT::getLocal): (JSC::Wasm::BBQJITImpl::BBQJIT::setLocal): (JSC::Wasm::BBQJITImpl::BBQJIT::teeLocal): (JSC::Wasm::BBQJITImpl::BBQJIT::addGrowMemory): (JSC::Wasm::BBQJITImpl::BBQJIT::addCurrentMemory): (JSC::Wasm::BBQJITImpl::BBQJIT::addMemoryFill): (JSC::Wasm::BBQJITImpl::BBQJIT::addMemoryCopy): (JSC::Wasm::BBQJITImpl::BBQJIT::addMemoryInit): (JSC::Wasm::BBQJITImpl::BBQJIT::addDataDrop): (JSC::Wasm::BBQJITImpl::BBQJIT::atomicLoad): (JSC::Wasm::BBQJITImpl::BBQJIT::atomicStore): (JSC::Wasm::BBQJITImpl::BBQJIT::atomicBinaryRMW): (JSC::Wasm::BBQJITImpl::BBQJIT::atomicCompareExchange): (JSC::Wasm::BBQJITImpl::BBQJIT::atomicWait): (JSC::Wasm::BBQJITImpl::BBQJIT::atomicNotify): (JSC::Wasm::BBQJITImpl::BBQJIT::atomicFence): (JSC::Wasm::BBQJITImpl::BBQJIT::truncTrapping): (JSC::Wasm::BBQJITImpl::BBQJIT::truncSaturated): (JSC::Wasm::BBQJITImpl::BBQJIT::addArrayNewData): (JSC::Wasm::BBQJITImpl::BBQJIT::addArrayNewElem): (JSC::Wasm::BBQJITImpl::BBQJIT::addArrayCopy): (JSC::Wasm::BBQJITImpl::BBQJIT::addArrayInitElem): (JSC::Wasm::BBQJITImpl::BBQJIT::addArrayInitData): (JSC::Wasm::BBQJITImpl::BBQJIT::addAnyConvertExtern): (JSC::Wasm::BBQJITImpl::BBQJIT::addExternConvertAny): (JSC::Wasm::BBQJITImpl::BBQJIT::addSelect): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32Add): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Add): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Add): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32Sub): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Sub): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Sub): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32Mul): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Mul): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Mul): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32DivS): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64DivS): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32DivU): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64DivU): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32RemS): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64RemS): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32RemU): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64RemU): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Div): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Div): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Min): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Min): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Max): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Max): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32And): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32Xor): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32Or): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32Shl): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32ShrS): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32ShrU): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32Rotl): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32Rotr): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32Clz): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32Ctz): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32Eq): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Eq): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32Ne): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Ne): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32LtS): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64LtS): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32LeS): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64LeS): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32GtS): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64GtS): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32GeS): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64GeS): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32LtU): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64LtU): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32LeU): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64LeU): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32GtU): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64GtU): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32GeU): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64GeU): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Eq): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Eq): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Ne): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Ne): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Lt): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Lt): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Le): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Le): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Gt): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Gt): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Ge): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Ge): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32Extend16S): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32Eqz): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32Popcnt): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Popcnt): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32ReinterpretF32): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32ReinterpretI32): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32DemoteF64): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64PromoteF32): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Copysign): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32ConvertSI32): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64ConvertSI32): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Copysign): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Abs): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Abs): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Sqrt): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Sqrt): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Neg): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Neg): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32TruncSF32): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32TruncSF64): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32TruncUF32): (JSC::Wasm::BBQJITImpl::BBQJIT::addI32TruncUF64): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64TruncSF32): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64TruncSF64): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64TruncUF32): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64TruncUF64): (JSC::Wasm::BBQJITImpl::BBQJIT::addRefEq): (JSC::Wasm::BBQJITImpl::BBQJIT::addRefFunc): (JSC::Wasm::BBQJITImpl::BBQJIT::addTopLevel): (JSC::Wasm::BBQJITImpl::BBQJIT::addBlock): (JSC::Wasm::BBQJITImpl::BBQJIT::addLoop): (JSC::Wasm::BBQJITImpl::BBQJIT::addIf): (JSC::Wasm::BBQJITImpl::BBQJIT::addElse): (JSC::Wasm::BBQJITImpl::BBQJIT::addElseToUnreachable): (JSC::Wasm::BBQJITImpl::BBQJIT::addTry): (JSC::Wasm::BBQJITImpl::BBQJIT::addTryTable): (JSC::Wasm::BBQJITImpl::BBQJIT::addCatch): (JSC::Wasm::BBQJITImpl::BBQJIT::addCatchToUnreachable): (JSC::Wasm::BBQJITImpl::BBQJIT::addCatchAll): (JSC::Wasm::BBQJITImpl::BBQJIT::addCatchAllToUnreachable): (JSC::Wasm::BBQJITImpl::BBQJIT::addDelegate): (JSC::Wasm::BBQJITImpl::BBQJIT::addDelegateToUnreachable): (JSC::Wasm::BBQJITImpl::BBQJIT::addThrow): (JSC::Wasm::BBQJITImpl::BBQJIT::addReturn): (JSC::Wasm::BBQJITImpl::BBQJIT::addBranch): (JSC::Wasm::BBQJITImpl::BBQJIT::addSwitch): (JSC::Wasm::BBQJITImpl::BBQJIT::endBlock): (JSC::Wasm::BBQJITImpl::BBQJIT::addEndToUnreachable): (JSC::Wasm::BBQJITImpl::BBQJIT::endTopLevel): (JSC::Wasm::BBQJITImpl::BBQJIT::addCall): (JSC::Wasm::BBQJITImpl::BBQJIT::addCallIndirect): (JSC::Wasm::BBQJITImpl::BBQJIT::addUnreachable): (JSC::Wasm::BBQJITImpl::BBQJIT::addCrash): (JSC::Wasm::BBQJITImpl::BBQJIT::addFusedIfCompare): * Source/JavaScriptCore/wasm/WasmBBQJIT.h: * Source/JavaScriptCore/wasm/WasmBBQJIT32_64.cpp: (JSC::Wasm::BBQJITImpl::BBQJIT::addTableGet): (JSC::Wasm::BBQJITImpl::BBQJIT::getGlobal): (JSC::Wasm::BBQJITImpl::BBQJIT::setGlobal): (JSC::Wasm::BBQJITImpl::BBQJIT::load): (JSC::Wasm::BBQJITImpl::BBQJIT::store): (JSC::Wasm::BBQJITImpl::BBQJIT::emitAtomicLoadOp): (JSC::Wasm::BBQJITImpl::BBQJIT::emitAtomicCompareExchange): (JSC::Wasm::BBQJITImpl::BBQJIT::addRefI31): (JSC::Wasm::BBQJITImpl::BBQJIT::addI31GetS): (JSC::Wasm::BBQJITImpl::BBQJIT::addI31GetU): (JSC::Wasm::BBQJITImpl::BBQJIT::addArrayNew): (JSC::Wasm::BBQJITImpl::BBQJIT::addArrayNewFixed): (JSC::Wasm::BBQJITImpl::BBQJIT::addArrayNewDefault): (JSC::Wasm::BBQJITImpl::BBQJIT::addArrayGet): (JSC::Wasm::BBQJITImpl::BBQJIT::addArraySet): (JSC::Wasm::BBQJITImpl::BBQJIT::addArrayLen): (JSC::Wasm::BBQJITImpl::BBQJIT::addArrayFill): (JSC::Wasm::BBQJITImpl::BBQJIT::addStructNewDefault): (JSC::Wasm::BBQJITImpl::BBQJIT::addStructNew): (JSC::Wasm::BBQJITImpl::BBQJIT::addStructGet): (JSC::Wasm::BBQJITImpl::BBQJIT::addStructSet): (JSC::Wasm::BBQJITImpl::BBQJIT::addRefCast): (JSC::Wasm::BBQJITImpl::BBQJIT::addRefTest): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Add): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Sub): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Mul): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64And): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Xor): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Or): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Shl): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64ShrS): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64ShrU): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Rotl): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Rotr): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Clz): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Ctz): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Extend8S): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Extend16S): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Extend32S): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64ExtendSI32): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64ExtendUI32): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Eqz): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64ReinterpretF64): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64ReinterpretI64): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32ConvertUI32): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32ConvertSI64): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32ConvertUI64): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64ConvertUI32): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64ConvertSI64): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64ConvertUI64): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Floor): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Floor): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Ceil): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Ceil): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Nearest): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Nearest): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Trunc): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Trunc): (JSC::Wasm::BBQJITImpl::BBQJIT::addRefIsNull): (JSC::Wasm::BBQJITImpl::BBQJIT::addRefAsNonNull): (JSC::Wasm::BBQJITImpl::BBQJIT::addThrowRef): (JSC::Wasm::BBQJITImpl::BBQJIT::addRethrow): (JSC::Wasm::BBQJITImpl::BBQJIT::addBranchNull): (JSC::Wasm::BBQJITImpl::BBQJIT::addBranchCast): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDLoad): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDStore): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDSplat): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDShuffle): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDShift): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDExtmul): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDLoadSplat): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDLoadLane): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDStoreLane): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDLoadExtend): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDLoadPad): (JSC::Wasm::BBQJITImpl::BBQJIT::addExtractLane): (JSC::Wasm::BBQJITImpl::BBQJIT::addReplaceLane): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDI_V): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDV_V): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDBitwiseSelect): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDRelOp): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDV_VV): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDRelaxedFMA): (JSC::Wasm::BBQJITImpl::BBQJIT::addCallRef): * Source/JavaScriptCore/wasm/WasmBBQJIT64.cpp: (JSC::Wasm::BBQJITImpl::BBQJIT::addTableGet): (JSC::Wasm::BBQJITImpl::BBQJIT::getGlobal): (JSC::Wasm::BBQJITImpl::BBQJIT::setGlobal): (JSC::Wasm::BBQJITImpl::BBQJIT::load): (JSC::Wasm::BBQJITImpl::BBQJIT::store): (JSC::Wasm::BBQJITImpl::BBQJIT::emitAtomicLoadOp): (JSC::Wasm::BBQJITImpl::BBQJIT::emitAtomicCompareExchange): (JSC::Wasm::BBQJITImpl::BBQJIT::addRefI31): (JSC::Wasm::BBQJITImpl::BBQJIT::addI31GetS): (JSC::Wasm::BBQJITImpl::BBQJIT::addI31GetU): (JSC::Wasm::BBQJITImpl::BBQJIT::addArrayNew): (JSC::Wasm::BBQJITImpl::BBQJIT::addArrayNewFixed): (JSC::Wasm::BBQJITImpl::BBQJIT::addArrayNewDefault): (JSC::Wasm::BBQJITImpl::BBQJIT::addArrayGet): (JSC::Wasm::BBQJITImpl::BBQJIT::addArraySet): (JSC::Wasm::BBQJITImpl::BBQJIT::addArrayLen): (JSC::Wasm::BBQJITImpl::BBQJIT::addArrayFill): (JSC::Wasm::BBQJITImpl::BBQJIT::addStructNewDefault): (JSC::Wasm::BBQJITImpl::BBQJIT::addStructNew): (JSC::Wasm::BBQJITImpl::BBQJIT::addStructGet): (JSC::Wasm::BBQJITImpl::BBQJIT::addStructSet): (JSC::Wasm::BBQJITImpl::BBQJIT::addRefCast): (JSC::Wasm::BBQJITImpl::BBQJIT::addRefTest): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Add): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Sub): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Mul): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64And): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Xor): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Or): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Shl): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64ShrS): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64ShrU): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Rotl): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Rotr): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Clz): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Ctz): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Extend8S): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Extend16S): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Extend32S): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64ExtendSI32): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64ExtendUI32): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64Eqz): (JSC::Wasm::BBQJITImpl::BBQJIT::addI64ReinterpretF64): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64ReinterpretI64): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32ConvertUI32): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32ConvertSI64): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32ConvertUI64): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64ConvertUI32): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64ConvertSI64): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64ConvertUI64): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Floor): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Floor): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Ceil): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Ceil): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Nearest): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Nearest): (JSC::Wasm::BBQJITImpl::BBQJIT::addF32Trunc): (JSC::Wasm::BBQJITImpl::BBQJIT::addF64Trunc): (JSC::Wasm::BBQJITImpl::BBQJIT::addRefIsNull): (JSC::Wasm::BBQJITImpl::BBQJIT::addRefAsNonNull): (JSC::Wasm::BBQJITImpl::BBQJIT::addThrowRef): (JSC::Wasm::BBQJITImpl::BBQJIT::addRethrow): (JSC::Wasm::BBQJITImpl::BBQJIT::addBranchNull): (JSC::Wasm::BBQJITImpl::BBQJIT::addBranchCast): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDLoad): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDStore): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDSplat): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDShuffle): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDShift): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDExtmul): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDLoadSplat): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDLoadLane): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDStoreLane): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDLoadExtend): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDLoadPad): (JSC::Wasm::BBQJITImpl::BBQJIT::addConstant): (JSC::Wasm::BBQJITImpl::BBQJIT::addExtractLane): (JSC::Wasm::BBQJITImpl::BBQJIT::addReplaceLane): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDI_V): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDV_V): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDBitwiseSelect): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDRelOp): (JSC::Wasm::BBQJITImpl::BBQJIT::fixupOutOfBoundsIndicesForSwizzle): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDV_VV): (JSC::Wasm::BBQJITImpl::BBQJIT::addSIMDRelaxedFMA): (JSC::Wasm::BBQJITImpl::BBQJIT::addCallRef): * Source/JavaScriptCore/wasm/WasmConstExprGenerator.cpp: (JSC::Wasm::ConstExprGenerator::fail const): (JSC::Wasm::ConstExprGenerator::getGlobal): (JSC::Wasm::ConstExprGenerator::addRefI31): (JSC::Wasm::ConstExprGenerator::addArrayNew): (JSC::Wasm::ConstExprGenerator::addArrayNewDefault): (JSC::Wasm::ConstExprGenerator::addArrayNewFixed): (JSC::Wasm::ConstExprGenerator::addStructNewDefault): (JSC::Wasm::ConstExprGenerator::addStructNew): (JSC::Wasm::ConstExprGenerator::addAnyConvertExtern): (JSC::Wasm::ConstExprGenerator::addExternConvertAny): (JSC::Wasm::ConstExprGenerator::addI32Add): (JSC::Wasm::ConstExprGenerator::addI64Add): (JSC::Wasm::ConstExprGenerator::addI32Sub): (JSC::Wasm::ConstExprGenerator::addI64Sub): (JSC::Wasm::ConstExprGenerator::addI32Mul): (JSC::Wasm::ConstExprGenerator::addI64Mul): (JSC::Wasm::ConstExprGenerator::addRefFunc): (JSC::Wasm::ConstExprGenerator::endBlock): (JSC::Wasm::ConstExprGenerator::endTopLevel): (JSC::Wasm::ConstExprGenerator::addConstant): * Source/JavaScriptCore/wasm/WasmFunctionParser.h: (JSC::Wasm::FunctionParser::simd): (JSC::Wasm::FunctionParser::validationFail const): (JSC::Wasm::FunctionParser::validationFailHelper const): * Source/JavaScriptCore/wasm/WasmIPIntGenerator.cpp: (JSC::Wasm::IPIntGenerator::fail const): (JSC::Wasm::IPIntGenerator::addFusedBranchCompare): (JSC::Wasm::IPIntGenerator::addFusedIfCompare): (JSC::Wasm::IPIntGenerator::addDrop): (JSC::Wasm::IPIntGenerator::addSIMDLoad): (JSC::Wasm::IPIntGenerator::addSIMDStore): (JSC::Wasm::IPIntGenerator::addSIMDSplat): (JSC::Wasm::IPIntGenerator::addSIMDShuffle): (JSC::Wasm::IPIntGenerator::addSIMDShift): (JSC::Wasm::IPIntGenerator::addSIMDExtmul): (JSC::Wasm::IPIntGenerator::addSIMDLoadSplat): (JSC::Wasm::IPIntGenerator::addSIMDLoadLane): (JSC::Wasm::IPIntGenerator::addSIMDStoreLane): (JSC::Wasm::IPIntGenerator::addSIMDLoadExtend): (JSC::Wasm::IPIntGenerator::addSIMDLoadPad): (JSC::Wasm::IPIntGenerator::addExtractLane): (JSC::Wasm::IPIntGenerator::addReplaceLane): (JSC::Wasm::IPIntGenerator::addSIMDI_V): (JSC::Wasm::IPIntGenerator::addSIMDV_V): (JSC::Wasm::IPIntGenerator::addSIMDBitwiseSelect): (JSC::Wasm::IPIntGenerator::addSIMDRelOp): (JSC::Wasm::IPIntGenerator::addSIMDV_VV): (JSC::Wasm::IPIntGenerator::addSIMDRelaxedFMA): (JSC::Wasm::IPIntGenerator::addRefIsNull): (JSC::Wasm::IPIntGenerator::addRefFunc): (JSC::Wasm::IPIntGenerator::addRefAsNonNull): (JSC::Wasm::IPIntGenerator::addRefEq): (JSC::Wasm::IPIntGenerator::addTableGet): (JSC::Wasm::IPIntGenerator::addTableSet): (JSC::Wasm::IPIntGenerator::addTableInit): (JSC::Wasm::IPIntGenerator::addElemDrop): (JSC::Wasm::IPIntGenerator::addTableSize): (JSC::Wasm::IPIntGenerator::addTableGrow): (JSC::Wasm::IPIntGenerator::addTableFill): (JSC::Wasm::IPIntGenerator::addTableCopy): (JSC::Wasm::IPIntGenerator::addArguments): (JSC::Wasm::IPIntGenerator::addLocal): (JSC::Wasm::IPIntGenerator::getLocal): (JSC::Wasm::IPIntGenerator::setLocal): (JSC::Wasm::IPIntGenerator::teeLocal): (JSC::Wasm::IPIntGenerator::getGlobal): (JSC::Wasm::IPIntGenerator::setGlobal): (JSC::Wasm::IPIntGenerator::load): (JSC::Wasm::IPIntGenerator::store): (JSC::Wasm::IPIntGenerator::addGrowMemory): (JSC::Wasm::IPIntGenerator::addCurrentMemory): (JSC::Wasm::IPIntGenerator::addMemoryFill): (JSC::Wasm::IPIntGenerator::addMemoryCopy): (JSC::Wasm::IPIntGenerator::addMemoryInit): (JSC::Wasm::IPIntGenerator::addDataDrop): (JSC::Wasm::IPIntGenerator::atomicLoad): (JSC::Wasm::IPIntGenerator::atomicStore): (JSC::Wasm::IPIntGenerator::atomicBinaryRMW): (JSC::Wasm::IPIntGenerator::atomicCompareExchange): (JSC::Wasm::IPIntGenerator::atomicWait): (JSC::Wasm::IPIntGenerator::atomicNotify): (JSC::Wasm::IPIntGenerator::atomicFence): (JSC::Wasm::IPIntGenerator::addRefI31): (JSC::Wasm::IPIntGenerator::addI31GetS): (JSC::Wasm::IPIntGenerator::addI31GetU): (JSC::Wasm::IPIntGenerator::addArrayNew): (JSC::Wasm::IPIntGenerator::addArrayNewData): (JSC::Wasm::IPIntGenerator::addArrayNewElem): (JSC::Wasm::IPIntGenerator::addArrayNewFixed): (JSC::Wasm::IPIntGenerator::addArrayNewDefault): (JSC::Wasm::IPIntGenerator::addArrayGet): (JSC::Wasm::IPIntGenerator::addArraySet): (JSC::Wasm::IPIntGenerator::addArrayLen): (JSC::Wasm::IPIntGenerator::addArrayFill): (JSC::Wasm::IPIntGenerator::addArrayCopy): (JSC::Wasm::IPIntGenerator::addArrayInitElem): (JSC::Wasm::IPIntGenerator::addArrayInitData): (JSC::Wasm::IPIntGenerator::addStructNew): (JSC::Wasm::IPIntGenerator::addStructNewDefault): (JSC::Wasm::IPIntGenerator::addStructGet): (JSC::Wasm::IPIntGenerator::addStructSet): (JSC::Wasm::IPIntGenerator::addRefTest): (JSC::Wasm::IPIntGenerator::addRefCast): (JSC::Wasm::IPIntGenerator::addAnyConvertExtern): (JSC::Wasm::IPIntGenerator::addExternConvertAny): (JSC::Wasm::IPIntGenerator::addI32Add): (JSC::Wasm::IPIntGenerator::addI64Add): (JSC::Wasm::IPIntGenerator::addI32Sub): (JSC::Wasm::IPIntGenerator::addI64Sub): (JSC::Wasm::IPIntGenerator::addI32Mul): (JSC::Wasm::IPIntGenerator::addI64Mul): (JSC::Wasm::IPIntGenerator::addI32DivS): (JSC::Wasm::IPIntGenerator::addI32DivU): (JSC::Wasm::IPIntGenerator::addI64DivS): (JSC::Wasm::IPIntGenerator::addI64DivU): (JSC::Wasm::IPIntGenerator::addI32RemS): (JSC::Wasm::IPIntGenerator::addI32RemU): (JSC::Wasm::IPIntGenerator::addI64RemS): (JSC::Wasm::IPIntGenerator::addI64RemU): (JSC::Wasm::IPIntGenerator::addI32And): (JSC::Wasm::IPIntGenerator::addI64And): (JSC::Wasm::IPIntGenerator::addI32Xor): (JSC::Wasm::IPIntGenerator::addI64Xor): (JSC::Wasm::IPIntGenerator::addI32Or): (JSC::Wasm::IPIntGenerator::addI64Or): (JSC::Wasm::IPIntGenerator::addI32Shl): (JSC::Wasm::IPIntGenerator::addI32ShrU): (JSC::Wasm::IPIntGenerator::addI32ShrS): (JSC::Wasm::IPIntGenerator::addI64Shl): (JSC::Wasm::IPIntGenerator::addI64ShrU): (JSC::Wasm::IPIntGenerator::addI64ShrS): (JSC::Wasm::IPIntGenerator::addI32Rotl): (JSC::Wasm::IPIntGenerator::addI64Rotl): (JSC::Wasm::IPIntGenerator::addI32Rotr): (JSC::Wasm::IPIntGenerator::addI64Rotr): (JSC::Wasm::IPIntGenerator::addI32Popcnt): (JSC::Wasm::IPIntGenerator::addI64Popcnt): (JSC::Wasm::IPIntGenerator::addI32Clz): (JSC::Wasm::IPIntGenerator::addI64Clz): (JSC::Wasm::IPIntGenerator::addI32Ctz): (JSC::Wasm::IPIntGenerator::addI64Ctz): (JSC::Wasm::IPIntGenerator::addF32Add): (JSC::Wasm::IPIntGenerator::addF64Add): (JSC::Wasm::IPIntGenerator::addF32Sub): (JSC::Wasm::IPIntGenerator::addF64Sub): (JSC::Wasm::IPIntGenerator::addF32Mul): (JSC::Wasm::IPIntGenerator::addF64Mul): (JSC::Wasm::IPIntGenerator::addF32Div): (JSC::Wasm::IPIntGenerator::addF64Div): (JSC::Wasm::IPIntGenerator::addF32Min): (JSC::Wasm::IPIntGenerator::addF32Max): (JSC::Wasm::IPIntGenerator::addF64Min): (JSC::Wasm::IPIntGenerator::addF64Max): (JSC::Wasm::IPIntGenerator::addF32Nearest): (JSC::Wasm::IPIntGenerator::addF64Nearest): (JSC::Wasm::IPIntGenerator::addF32Floor): (JSC::Wasm::IPIntGenerator::addF64Floor): (JSC::Wasm::IPIntGenerator::addF32Ceil): (JSC::Wasm::IPIntGenerator::addF64Ceil): (JSC::Wasm::IPIntGenerator::addF32Copysign): (JSC::Wasm::IPIntGenerator::addF64Copysign): (JSC::Wasm::IPIntGenerator::addF32Sqrt): (JSC::Wasm::IPIntGenerator::addF64Sqrt): (JSC::Wasm::IPIntGenerator::addF32Neg): (JSC::Wasm::IPIntGenerator::addF64Neg): (JSC::Wasm::IPIntGenerator::addF32Abs): (JSC::Wasm::IPIntGenerator::addF64Abs): (JSC::Wasm::IPIntGenerator::addI32Eq): (JSC::Wasm::IPIntGenerator::addI32Ne): (JSC::Wasm::IPIntGenerator::addI32LtS): (JSC::Wasm::IPIntGenerator::addI32LtU): (JSC::Wasm::IPIntGenerator::addI32LeS): (JSC::Wasm::IPIntGenerator::addI32LeU): (JSC::Wasm::IPIntGenerator::addI32GtS): (JSC::Wasm::IPIntGenerator::addI32GtU): (JSC::Wasm::IPIntGenerator::addI32GeU): (JSC::Wasm::IPIntGenerator::addI32GeS): (JSC::Wasm::IPIntGenerator::addI32Eqz): (JSC::Wasm::IPIntGenerator::addI64Eq): (JSC::Wasm::IPIntGenerator::addI64Ne): (JSC::Wasm::IPIntGenerator::addI64GtS): (JSC::Wasm::IPIntGenerator::addI64GtU): (JSC::Wasm::IPIntGenerator::addI64GeS): (JSC::Wasm::IPIntGenerator::addI64GeU): (JSC::Wasm::IPIntGenerator::addI64LtS): (JSC::Wasm::IPIntGenerator::addI64LtU): (JSC::Wasm::IPIntGenerator::addI64LeS): (JSC::Wasm::IPIntGenerator::addI64LeU): (JSC::Wasm::IPIntGenerator::addI64Eqz): (JSC::Wasm::IPIntGenerator::addF32Eq): (JSC::Wasm::IPIntGenerator::addF32Ne): (JSC::Wasm::IPIntGenerator::addF32Lt): (JSC::Wasm::IPIntGenerator::addF32Le): (JSC::Wasm::IPIntGenerator::addF32Gt): (JSC::Wasm::IPIntGenerator::addF32Ge): (JSC::Wasm::IPIntGenerator::addF64Eq): (JSC::Wasm::IPIntGenerator::addF64Ne): (JSC::Wasm::IPIntGenerator::addF64Lt): (JSC::Wasm::IPIntGenerator::addF64Le): (JSC::Wasm::IPIntGenerator::addF64Gt): (JSC::Wasm::IPIntGenerator::addF64Ge): (JSC::Wasm::IPIntGenerator::addI64ExtendSI32): (JSC::Wasm::IPIntGenerator::addI64ExtendUI32): (JSC::Wasm::IPIntGenerator::addI32Extend8S): (JSC::Wasm::IPIntGenerator::addI32Extend16S): (JSC::Wasm::IPIntGenerator::addI64Extend8S): (JSC::Wasm::IPIntGenerator::addI64Extend16S): (JSC::Wasm::IPIntGenerator::addI64Extend32S): (JSC::Wasm::IPIntGenerator::addF64Trunc): (JSC::Wasm::IPIntGenerator::addF32Trunc): (JSC::Wasm::IPIntGenerator::addI32TruncSF64): (JSC::Wasm::IPIntGenerator::addI32TruncSF32): (JSC::Wasm::IPIntGenerator::addI32TruncUF64): (JSC::Wasm::IPIntGenerator::addI32TruncUF32): (JSC::Wasm::IPIntGenerator::addI64TruncSF64): (JSC::Wasm::IPIntGenerator::addI64TruncSF32): (JSC::Wasm::IPIntGenerator::addI64TruncUF64): (JSC::Wasm::IPIntGenerator::addI64TruncUF32): (JSC::Wasm::IPIntGenerator::truncSaturated): (JSC::Wasm::IPIntGenerator::addI32WrapI64): (JSC::Wasm::IPIntGenerator::addF32DemoteF64): (JSC::Wasm::IPIntGenerator::addF64PromoteF32): (JSC::Wasm::IPIntGenerator::addF32ReinterpretI32): (JSC::Wasm::IPIntGenerator::addI32ReinterpretF32): (JSC::Wasm::IPIntGenerator::addF64ReinterpretI64): (JSC::Wasm::IPIntGenerator::addI64ReinterpretF64): (JSC::Wasm::IPIntGenerator::addF32ConvertSI32): (JSC::Wasm::IPIntGenerator::addF32ConvertUI32): (JSC::Wasm::IPIntGenerator::addF32ConvertSI64): (JSC::Wasm::IPIntGenerator::addF32ConvertUI64): (JSC::Wasm::IPIntGenerator::addF64ConvertSI32): (JSC::Wasm::IPIntGenerator::addF64ConvertUI32): (JSC::Wasm::IPIntGenerator::addF64ConvertSI64): (JSC::Wasm::IPIntGenerator::addF64ConvertUI64): (JSC::Wasm::IPIntGenerator::addTopLevel): (JSC::Wasm::IPIntGenerator::addSelect): (JSC::Wasm::IPIntGenerator::addBlock): (JSC::Wasm::IPIntGenerator::addLoop): (JSC::Wasm::IPIntGenerator::addIf): (JSC::Wasm::IPIntGenerator::addElse): (JSC::Wasm::IPIntGenerator::addElseToUnreachable): (JSC::Wasm::IPIntGenerator::addTry): (JSC::Wasm::IPIntGenerator::addTryTable): (JSC::Wasm::IPIntGenerator::addCatch): (JSC::Wasm::IPIntGenerator::addCatchToUnreachable): (JSC::Wasm::IPIntGenerator::addCatchAll): (JSC::Wasm::IPIntGenerator::addCatchAllToUnreachable): (JSC::Wasm::IPIntGenerator::addDelegate): (JSC::Wasm::IPIntGenerator::addDelegateToUnreachable): (JSC::Wasm::IPIntGenerator::addThrow): (JSC::Wasm::IPIntGenerator::addRethrow): (JSC::Wasm::IPIntGenerator::addThrowRef): (JSC::Wasm::IPIntGenerator::addReturn): (JSC::Wasm::IPIntGenerator::addBranch): (JSC::Wasm::IPIntGenerator::addBranchNull): (JSC::Wasm::IPIntGenerator::addBranchCast): (JSC::Wasm::IPIntGenerator::addSwitch): (JSC::Wasm::IPIntGenerator::endBlock): (JSC::Wasm::IPIntGenerator::addEndToUnreachable): (JSC::Wasm::IPIntGenerator::addCall): (JSC::Wasm::IPIntGenerator::addCallIndirect): (JSC::Wasm::IPIntGenerator::addCallRef): (JSC::Wasm::IPIntGenerator::addUnreachable): (JSC::Wasm::IPIntGenerator::addCrash): * Source/JavaScriptCore/wasm/WasmNameSectionParser.h: * Source/JavaScriptCore/wasm/WasmOMGIRGenerator.cpp: (JSC::Wasm::OMGIRGenerator::fail const): (JSC::Wasm::OMGIRGenerator::addConstant): (JSC::Wasm::OMGIRGenerator::addEndToUnreachable): (JSC::Wasm::OMGIRGenerator::endTopLevel): (JSC::Wasm::OMGIRGenerator::addFusedBranchCompare): (JSC::Wasm::OMGIRGenerator::addFusedIfCompare): (JSC::Wasm::OMGIRGenerator::emitStructSet): (JSC::Wasm::OMGIRGenerator::addThrowRef): * Source/JavaScriptCore/wasm/WasmOMGIRGenerator32_64.cpp: (JSC::Wasm::OMGIRGenerator::fail const): (JSC::Wasm::OMGIRGenerator::addConstant): (JSC::Wasm::OMGIRGenerator::addEndToUnreachable): (JSC::Wasm::OMGIRGenerator::endTopLevel): (JSC::Wasm::OMGIRGenerator::addFusedBranchCompare): (JSC::Wasm::OMGIRGenerator::addFusedIfCompare): (JSC::Wasm::OMGIRGenerator::emitStructSet): (JSC::Wasm::OMGIRGenerator::addThrowRef): * Source/JavaScriptCore/wasm/WasmParser.h: (JSC::Wasm::ParserBase::fail const): * Source/JavaScriptCore/wasm/WasmPlan.h: (JSC::Wasm::Plan::failed const): * Source/JavaScriptCore/wasm/WasmSectionParser.h: * Source/JavaScriptCore/wasm/WasmStreamingParser.cpp: (JSC::Wasm::StreamingParser::fail): * Source/JavaScriptCore/wasm/WasmStreamingParser.h: * Source/JavaScriptCore/wasm/js/JSWebAssemblyTable.h: * Source/JavaScriptCore/yarr/YarrInterpreter.cpp: (JSC::Yarr::ByteCompiler::emitDisjunction): * Source/JavaScriptCore/yarr/YarrPattern.cpp: (JSC::Yarr::YarrPatternConstructor::setupAlternativeOffsets): * Source/WTF/wtf/AllocSpanMixin.h: (WTF::AllocSpanMixin::leakSpan): * Source/WTF/wtf/CheckedArithmetic.h: * Source/WTF/wtf/Compiler.h: * Source/WTF/wtf/CompletionHandler.h: (WTF::CompletionHandler<Out): * Source/WTF/wtf/FileSystem.h: * Source/WTF/wtf/Function.h: (WTF::Function<Out): * Source/WTF/wtf/InlineWeakPtr.h: * Source/WTF/wtf/InlineWeakRef.h: * Source/WTF/wtf/LEBDecoder.h: (WTF::LEBDecoder::decodeUInt): (WTF::LEBDecoder::decodeInt): (WTF::LEBDecoder::decodeUInt32): (WTF::LEBDecoder::decodeUInt64): (WTF::LEBDecoder::decodeInt32): (WTF::LEBDecoder::decodeInt64): * Source/WTF/wtf/MachSendRight.h: * Source/WTF/wtf/MallocCommon.h: * Source/WTF/wtf/MallocPtr.h: (WTF::MallocPtr::leakPtr): * Source/WTF/wtf/MappedFileData.h: (WTF::FileSystemImpl::MappedFileData::leakHandle): * Source/WTF/wtf/OSObjectPtr.h: (WTF::OSObjectPtr::leakRef): * Source/WTF/wtf/OptionSet.h: (WTF::isValidOptionSet): * Source/WTF/wtf/Ref.h: (WTF::Ref::copyRef const): (WTF::Ref::leakRef): * Source/WTF/wtf/RefPtr.h: (WTF::RefPtr::copyRef const): * Source/WTF/wtf/RetainPtr.h: * Source/WTF/wtf/Scope.h: * Source/WTF/wtf/glib/GMallocString.h: * Source/WTF/wtf/glib/GRefPtr.h: (WTF::GRefPtr::leakRef): (WTF::GRefPtr::ref): * Source/WTF/wtf/glib/GThreadSafeWeakPtr.h: (WTF::GThreadSafeWeakPtr::get): * Source/WTF/wtf/persistence/PersistentDecoder.h: * Source/WTF/wtf/text/AtomString.h: (WTF::makeStringByReplacingAll): * Source/WTF/wtf/text/MakeString.h: (WTF::makeStringByInserting): * Source/WTF/wtf/text/StringView.h: (WTF::makeStringByReplacingAll): (WTF::makeStringByReplacing): (WTF::makeStringBySimplifyingNewLines): * Source/WTF/wtf/text/WTFString.h: (WTF::makeStringByReplacingAll): * Source/WTF/wtf/unix/UnixFileDescriptor.h: (WTF::UnixFileDescriptor::release): * Source/WTF/wtf/win/GDIObject.h: * Source/WTF/wtf/win/Win32Handle.h: * Source/WebCore/Modules/WebGPU/GPUPresentationContext.h: * Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUPresentationContext.h: * Source/WebCore/Modules/indexeddb/IDBKeyData.h: * Source/WebCore/Modules/indexeddb/server/IDBSerialization.cpp: (WebCore::decodeKey): * Source/WebCore/Modules/mediastream/gstreamer/GStreamerMediaEndpoint.h: * Source/WebCore/Modules/mediastream/gstreamer/GStreamerRtpTransceiverBackend.cpp: (WebCore::toRtpCodecCapability): * Source/WebCore/Modules/mediastream/gstreamer/GStreamerWebRTCUtils.h: * Source/WebCore/css/CSSStyleProperties.h: (WebCore::PropertySetCSSStyleProperties::willMutate): * Source/WebCore/css/PropertySetCSSDescriptors.h: * Source/WebCore/css/values/primitives/CSSUnevaluatedCalc.h: * Source/WebCore/editing/ReplaceSelectionCommand.cpp: (WebCore::collectStylesToRemove): * Source/WebCore/fileapi/URLKeepingBlobAlive.h: * Source/WebCore/inspector/InspectorResourceUtilities.cpp: (Inspector::ResourceUtilities::decodeBuffer): * Source/WebCore/loader/FetchOptions.h: * Source/WebCore/page/OpportunisticTaskScheduler.h: * Source/WebCore/page/csp/ContentSecurityPolicy.h: * Source/WebCore/platform/KeyedCoding.h: * Source/WebCore/platform/audio/cocoa/AudioFileReaderCocoa.cpp: (WebCore::tryCreateAudioBufferList): * Source/WebCore/platform/cf/KeyedDecoderCF.h: * Source/WebCore/platform/encryptedmedia/CDMProxy.h: (WebCore::KeyStoreBase::keyHandle const): (WebCore::KeyStoreBase::allKeysAs const): (WebCore::KeyStoreBase::convertToJSKeyStatusVector const): * Source/WebCore/platform/generic/KeyedDecoderGeneric.h: * Source/WebCore/platform/glib/KeyedDecoderGlib.h: * Source/WebCore/platform/graphics/IntRect.h: * Source/WebCore/platform/graphics/TrackBuffer.cpp: (WebCore::decodeTimeComparator): * Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.h: * Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp: (WebCore::webkitGstGhostPadFromStaticTemplate): * Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h: * Source/WebCore/platform/graphics/gstreamer/GStreamerVideoFrameConverter.h: * Source/WebCore/platform/graphics/gstreamer/VideoFrameMetadataGStreamer.h: * Source/WebCore/platform/graphics/transforms/TransformationMatrix.h: * Source/WebCore/platform/mediastream/gstreamer/GStreamerCaptureDevice.h: (WebCore::GStreamerCaptureDevice::caps const): * Source/WebCore/platform/mediastream/gstreamer/GStreamerCapturer.h: * Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp: (mediaStreamTrackPrivateGetTags): * Source/WebCore/platform/mediastream/gstreamer/GStreamerRTPPacketizer.h: * Source/WebCore/platform/mediastream/gstreamer/RealtimeOutgoingAudioSourceGStreamer.h: * Source/WebCore/platform/mediastream/gstreamer/RealtimeOutgoingMediaSourceGStreamer.h: * Source/WebCore/platform/mediastream/gstreamer/RealtimeOutgoingVideoSourceGStreamer.h: * Source/WebCore/platform/mediastream/libwebrtc/gstreamer/GStreamerVideoFrameLibWebRTC.h: * Source/WebCore/rendering/RenderWidget.h: * Source/WebCore/rendering/style/RenderStyle.h: * Source/WebCore/rendering/updating/RenderTreeBuilder.h: * Source/WebCore/rendering/updating/RenderTreeBuilderBlock.h: * Source/WebCore/rendering/updating/RenderTreeBuilderFormControls.h: * Source/WebCore/rendering/updating/RenderTreeBuilderSVG.h: * Source/WebGPU/WGSL/TypeCheck.cpp: (WGSL::TypeChecker::check): * Source/WebGPU/WebGPU/BindGroup.mm: (WebGPU::setArgumentBuffer): * Source/WebGPU/WebGPU/Queue.h: * Source/WebGPU/WebGPU/RenderPassEncoder.h: * Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.h: * Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsStore.h: * Source/WebKit/NetworkProcess/DatabaseUtilities.h: * Source/WebKit/NetworkProcess/cache/NetworkCacheKey.h: (WebKit::NetworkCache::DataKey::decodeForPersistence): * Source/WebKit/NetworkProcess/cache/NetworkCacheStorage.cpp: (WebKit::NetworkCache::decodeRecordMetaData): (WebKit::NetworkCache::decodeRecordHeader): * Source/WebKit/Platform/IPC/ArgumentCoders.cpp: (IPC::ArgumentCoder<String>::decode): * Source/WebKit/Platform/IPC/ConnectionHandle.h: (IPC::ConnectionHandle::release): (IPC::ConnectionHandle::leak): (IPC::ConnectionHandle::leakSendRight): * Source/WebKit/Platform/IPC/DaemonDecoder.h: (WebKit::Daemon::Decoder::bufferIsLargeEnoughToContain const): * Source/WebKit/Platform/IPC/Decoder.h: (IPC::Decoder::isValid const): * Source/WebKit/Shared/Cocoa/SandboxExtensionCocoa.mm: (WebKit::SandboxExtensionImpl::consume): * Source/WebKit/Shared/SandboxExtension.h: * Source/WebKit/UIProcess/Cocoa/SessionStateCoding.h: * Source/WebKit/UIProcess/LegacySessionStateCoding.h: * Source/WebKit/UIProcess/mac/LegacySessionStateCoding.cpp: (WebKit::decodeSessionHistoryEntryData): (WebKit::decodeSessionHistoryEntry): (WebKit::decodeSessionHistoryEntries): (WebKit::decodeV0SessionHistory): (WebKit::decodeV1SessionHistory): (WebKit::decodeSessionHistory): * Source/WebKit/WebProcess/GPU/graphics/Model/RemoteDDMeshProxy.h: * Source/WebKit/WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.h: (WebKit::RemoteGraphicsContextGLProxy::send): (WebKit::RemoteGraphicsContextGLProxy::sendSync): * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteAdapterProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteBindGroupLayoutProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteBindGroupProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteBufferProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteCommandBufferProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteCommandEncoderProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteCompositorIntegrationProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteComputePassEncoderProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteComputePipelineProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteDeviceProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteExternalTextureProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteGPUProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemotePipelineLayoutProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemotePresentationContextProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteQuerySetProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteQueueProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteRenderBundleEncoderProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteRenderBundleProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteRenderPassEncoderProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteRenderPipelineProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteSamplerProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteShaderModuleProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteTextureProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteTextureViewProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteXRBindingProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteXRProjectionLayerProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteXRSubImageProxy.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteXRViewProxy.h: * Source/WebKit/WebProcess/WebPage/WebCookieCache.h: Canonical link: https://commits.webkit.org/305420@main
1 parent d1ff4a5 commit 8196718

File tree

150 files changed

+1992
-1997
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+1992
-1997
lines changed

Source/JavaScriptCore/API/JSRetainPtr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ template<typename T> class JSRetainPtr {
5555
T get() const { return m_ptr; }
5656

5757
void clear();
58-
WARN_UNUSED_RETURN T leakRef();
58+
[[nodiscard]] T leakRef();
5959

6060
T operator->() const { return m_ptr; }
6161

Source/JavaScriptCore/assembler/AbstractMacroAssembler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ class AbstractMacroAssembler : public AbstractMacroAssemblerBase {
11711171

11721172
ALWAYS_INLINE RegisterID registerIDNoInvalidate() { return m_registerID; }
11731173

1174-
WARN_UNUSED_RETURN bool value(intptr_t& value)
1174+
[[nodiscard]] bool value(intptr_t& value)
11751175
{
11761176
value = m_value;
11771177
return m_masm->isTempRegisterValid(m_validBit);

Source/JavaScriptCore/bytecode/ArrayAllocationProfile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class ArrayAllocationProfile {
135135
IndexingType indexingType() const { return m_bits >> indexingTypeShift; }
136136
unsigned vectorLength() const { return m_bits & vectorLengthMask; }
137137

138-
WARN_UNUSED_RETURN IndexingTypeAndVectorLength withIndexingType(IndexingType indexingType)
138+
[[nodiscard]] IndexingTypeAndVectorLength withIndexingType(IndexingType indexingType)
139139
{
140140
return IndexingTypeAndVectorLength(indexingType, vectorLength());
141141
}

Source/JavaScriptCore/heap/Weak.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ template<typename T> class Weak {
8181

8282
inline explicit operator bool() const;
8383

84-
WARN_UNUSED_RETURN inline WeakImpl* leakImpl();
84+
[[nodiscard]] inline WeakImpl* leakImpl();
8585
WeakImpl* unsafeImpl() const { return impl(); }
8686
void clear();
8787

Source/JavaScriptCore/jit/RegisterSet.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ class RegisterSetBuilder final {
136136
return *this;
137137
}
138138

139-
WARN_UNUSED_RETURN inline constexpr RegisterSet buildAndValidate() const;
140-
WARN_UNUSED_RETURN inline constexpr RegisterSet buildWithLowerBits() const;
141-
WARN_UNUSED_RETURN inline constexpr ScalarRegisterSet buildScalarRegisterSet() const;
139+
[[nodiscard]] inline constexpr RegisterSet buildAndValidate() const;
140+
[[nodiscard]] inline constexpr RegisterSet buildWithLowerBits() const;
141+
[[nodiscard]] inline constexpr ScalarRegisterSet buildScalarRegisterSet() const;
142142
inline constexpr size_t numberOfSetRegisters() const;
143143
inline size_t numberOfSetGPRs() const;
144144
inline size_t numberOfSetFPRs() const;
@@ -314,7 +314,7 @@ class RegisterSet final {
314314
return *this;
315315
}
316316

317-
WARN_UNUSED_RETURN inline constexpr ScalarRegisterSet buildScalarRegisterSet() const;
317+
[[nodiscard]] inline constexpr ScalarRegisterSet buildScalarRegisterSet() const;
318318

319319
template<typename Func>
320320
inline constexpr void forEach(const Func& func) const
@@ -478,7 +478,7 @@ class ScalarRegisterSet final {
478478
inline uint64_t bitsForDebugging() const { return m_bits.storage()[0]; }
479479
friend constexpr bool operator==(const ScalarRegisterSet&, const ScalarRegisterSet&) = default;
480480

481-
WARN_UNUSED_RETURN inline constexpr RegisterSet toRegisterSet() const
481+
[[nodiscard]] inline constexpr RegisterSet toRegisterSet() const
482482
{
483483
RegisterSet result;
484484
m_bits.forEachSetBit(

Source/JavaScriptCore/runtime/JSGenericTypedArrayViewConstructor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ JSC_DEFINE_HOST_FUNCTION(uint8ArrayConstructorFromBase64, (JSGlobalObject* globa
105105
}
106106

107107
template<typename CharacterType>
108-
WARN_UNUSED_RETURN inline static size_t decodeHexImpl(std::span<CharacterType> span, std::span<uint8_t> result)
108+
[[nodiscard]] inline static size_t decodeHexImpl(std::span<CharacterType> span, std::span<uint8_t> result)
109109
{
110110
ASSERT(span.size() == result.size() * 2);
111111

@@ -200,12 +200,12 @@ WARN_UNUSED_RETURN inline static size_t decodeHexImpl(std::span<CharacterType> s
200200
return WTF::notFound;
201201
}
202202

203-
WARN_UNUSED_RETURN size_t decodeHex(std::span<const Latin1Character> span, std::span<uint8_t> result)
203+
[[nodiscard]] size_t decodeHex(std::span<const Latin1Character> span, std::span<uint8_t> result)
204204
{
205205
return decodeHexImpl(span, result);
206206
}
207207

208-
WARN_UNUSED_RETURN size_t decodeHex(std::span<const char16_t> span, std::span<uint8_t> result)
208+
[[nodiscard]] size_t decodeHex(std::span<const char16_t> span, std::span<uint8_t> result)
209209
{
210210
return decodeHexImpl(span, result);
211211
}

Source/JavaScriptCore/runtime/JSGenericTypedArrayViewConstructor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class JSGenericTypedArrayViewConstructor final : public InternalFunction {
150150
JSC_DECLARE_HOST_FUNCTION(uint8ArrayConstructorFromBase64);
151151
JSC_DECLARE_HOST_FUNCTION(uint8ArrayConstructorFromHex);
152152

153-
WARN_UNUSED_RETURN size_t decodeHex(std::span<const Latin1Character>, std::span<uint8_t> result);
154-
WARN_UNUSED_RETURN size_t decodeHex(std::span<const char16_t>, std::span<uint8_t> result);
153+
[[nodiscard]] size_t decodeHex(std::span<const Latin1Character>, std::span<uint8_t> result);
154+
[[nodiscard]] size_t decodeHex(std::span<const char16_t>, std::span<uint8_t> result);
155155

156156
} // namespace JSC

Source/JavaScriptCore/runtime/JSObject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ class JSObject : public JSCell {
10281028

10291029
// Call this if you want setIndexQuickly to succeed and you're sure that
10301030
// the array is contiguous.
1031-
WARN_UNUSED_RETURN bool ensureLength(VM& vm, unsigned length)
1031+
[[nodiscard]] bool ensureLength(VM& vm, unsigned length)
10321032
{
10331033
RELEASE_ASSERT(length <= MAX_STORAGE_VECTOR_LENGTH);
10341034
ASSERT(hasContiguous(indexingType()) || hasInt32(indexingType()) || hasDouble(indexingType()) || hasUndecided(indexingType()));

Source/JavaScriptCore/runtime/PropertyTable.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class PropertyTable final : public JSCell {
115115
// Find a value in the table.
116116
std::tuple<PropertyOffset, unsigned> get(const KeyType&);
117117
// Add a value to the table
118-
WARN_UNUSED_RETURN std::tuple<PropertyOffset, unsigned, bool> add(VM&, const ValueType& entry);
118+
[[nodiscard]] std::tuple<PropertyOffset, unsigned, bool> add(VM&, const ValueType& entry);
119119
// Remove a value from the table.
120120
std::tuple<PropertyOffset, unsigned> take(VM&, const KeyType&);
121121
PropertyOffset updateAttributeIfExists(const KeyType&, unsigned attributes);
@@ -355,7 +355,7 @@ inline std::tuple<PropertyOffset, unsigned> PropertyTable::get(const KeyType& ke
355355
return std::tuple { result.offset, result.attributes };
356356
}
357357

358-
WARN_UNUSED_RETURN inline std::tuple<PropertyOffset, unsigned, bool> PropertyTable::add(VM& vm, const ValueType& entry)
358+
[[nodiscard]] inline std::tuple<PropertyOffset, unsigned, bool> PropertyTable::add(VM& vm, const ValueType& entry)
359359
{
360360
ASSERT(!m_deletedOffsets || !m_deletedOffsets->contains(entry.offset()));
361361

0 commit comments

Comments
 (0)