IPC::isMessageNameValue's compiled code is kind of complex, since there's bunch of values that return false for particular platforms and ENABLE & USE macros. This function is called for every IPC message. We can make it cheaper by ifdefing out the values in the enum declaration too, and make the function effectively "is messageName >= 1 && messageName <= lastMessageName".
<rdar://problem/92511440>
IPC MessageName validation is slow - Validated on decoding - Debug builds validate on encoding
Pull request: https://github.com/WebKit/WebKit/pull/7672
Committed 258073@main (03178c5e0622): <https://commits.webkit.org/258073@main> Reviewed commits have been landed. Closing PR #7672 and removing active labels.