1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:17:44 +00:00

LibRegex: Remove redundant VERIFY in OpCode::argument()

The bounds check here is already performed by the at() we're calling,
and removing it appears to have non-trivial performance impact.
This commit is contained in:
Andreas Kling 2023-07-14 09:07:56 +02:00
parent 4bff4219ff
commit 17bff999c8

View file

@ -559,7 +559,6 @@ public:
ALWAYS_INLINE ByteCodeValueType argument(size_t offset) const
{
VERIFY(state().instruction_position + offset <= m_bytecode->size());
return m_bytecode->at(state().instruction_position + 1 + offset);
}