Use unary static_assert
https://bugs.webkit.org/show_bug.cgi?id=238412
Reviewed by Mark Lam.
Source/bmalloc:
(bmalloc::isPowerOfTwo):
- bmalloc/Gigacage.h:
- bmalloc/IsoHeapImpl.h:
Source/JavaScriptCore:
Replace static_assert(..., "");
with static_assert(...);
- assembler/ARM64Assembler.h:
(JSC::ARM64Assembler::linkJumpOrCall):
(JSC::ARM64Assembler::relinkJumpOrCall):
- assembler/AssemblerBuffer.h:
(JSC::AssemblerBuffer::putIntegralUnchecked):
- assembler/MacroAssemblerCodeRef.h:
- bytecode/AdaptiveInferredPropertyValueWatchpointBase.h:
- bytecode/ArrayProfile.h:
- bytecode/CodeBlockHash.cpp:
(JSC::CodeBlockHash::CodeBlockHash):
(JSC::ParseHash::ParseHash):
- bytecode/Watchpoint.h:
- dfg/DFGNode.h:
- dfg/DFGOperations.cpp:
(JSC::DFG::JSC_DEFINE_JIT_OPERATION):
- dfg/DFGSpeculativeJIT.cpp:
- dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
(JSC::FTL::DFG::LowerDFGToB3::compileArrayPush):
(JSC::RegisterSet::llintBaselineCalleeSaveRegisters):
(JSC::RegisterSet::dfgCalleeSaveRegisters):
(JSC::RegisterSet::ftlCalleeSaveRegisters):
- runtime/CachedBytecode.cpp:
(JSC::CachedBytecode::commitUpdates const):
- runtime/ClonedArguments.h:
- runtime/DirectArguments.h:
- runtime/DirectEvalExecutable.h:
- runtime/ErrorConstructor.h:
- runtime/IndirectEvalExecutable.h:
- runtime/JSArrayBufferView.cpp:
- runtime/JSBoundFunction.h:
- runtime/JSLexicalEnvironment.h:
(JSC::JSLexicalEnvironment::subspaceFor):
(JSC::JSRopeString::RopeBuilder<RecordOverflow>::expand):
- runtime/JSString.h:
- runtime/NativeFunction.h:
- runtime/Operations.h:
(JSC::jsString):
- runtime/RegExpObject.h:
- runtime/ScopedArguments.h:
- runtime/ScopedArgumentsTable.cpp:
- runtime/TypedArrayAdaptors.h:
(JSC::IntegralTypedArrayAdaptor::toJSValue):
- runtime/TypedArrayType.h:
- runtime/WeakMapImpl.h:
- wasm/WasmAirIRGenerator.cpp:
(JSC::Wasm::AirIRGenerator::addCallIndirect):
(JSC::Wasm::AirIRGenerator::emitChecksForModOrDiv):
(JSC::Wasm::AirIRGenerator::emitModOrDiv):
- yarr/YarrInterpreter.cpp:
(JSC::Yarr::Interpreter::DisjunctionContext::allocationSize):
(JSC::Yarr::Interpreter::ParenthesesDisjunctionContext::allocationSize):
Source/WebCore:
- Modules/entriesapi/FileSystemDirectoryEntry.h:
- Modules/entriesapi/FileSystemFileEntry.h:
- css/DOMMatrix.h:
- cssjit/SelectorCompiler.cpp:
(WebCore::SelectorCompiler::SelectorCodeGenerator::generateAddStyleRelation):
- dom/DOMPoint.h:
- dom/DOMRect.h:
- html/HTMLAllCollection.h:
- html/track/AudioTrackList.h:
- html/track/VideoTrackList.h:
- layout/formattingContexts/inline/InlineItem.cpp:
- layout/formattingContexts/inline/InlineTextItem.cpp:
- platform/KeyedCoding.h:
(WebCore::KeyedDecoder::decodeBytes):
- xml/XMLHttpRequestEventTarget.h:
Source/WebKit:
- Shared/API/c/WKContextMenuItem.cpp:
- UIProcess/mac/LegacySessionStateCoding.cpp:
(WebKit::HistoryEntryDataEncoder::encodeArithmeticType):
(WebKit::HistoryEntryDataDecoder::decodeArithmeticType):
Source/WTF:
- wtf/CompactPointerTuple.h:
- wtf/FastMalloc.h:
- wtf/FunctionTraits.h:
(WTF::slotsForCCallArgument):
- wtf/Int128.cpp:
- wtf/MallocPtr.h:
- wtf/Markable.h:
(WTF::std::underlying_type<EnumType>::type>::max):
(WTF::tagInt):
- wtf/Seconds.h:
- wtf/StdLibExtras.h:
(WTF::roundUpToMultipleOf):
- wtf/SystemFree.h:
- wtf/UnalignedAccess.h:
(WTF::unalignedLoad):
(WTF::unalignedStore):
(WTF::makeUniqueArray):
- wtf/WTFAssertions.cpp:
- wtf/text/StringConcatenate.h:
(WTF::tryMakeStringFromAdapters):
- wtf/text/StringImpl.h:
- wtf/text/SymbolImpl.h:
Tools:
- TestWebKitAPI/Tests/WTF/EnumTraits.cpp:
- TestWebKitAPI/Tests/WTF/HashMap.cpp:
(TestWebKitAPI::TEST):
- TestWebKitAPI/Tests/WTF/Int128.cpp:
(TestWebKitAPI::TEST):
- TestWebKitAPI/Tests/WTF/Packed.cpp:
(TestWebKitAPI::TEST):
- TestWebKitAPI/Tests/WTF/RobinHoodHashMap.cpp:
(TestWebKitAPI::TEST):