mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:27:34 +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:
parent
4bff4219ff
commit
17bff999c8
1 changed files with 0 additions and 1 deletions
|
@ -559,7 +559,6 @@ public:
|
||||||
|
|
||||||
ALWAYS_INLINE ByteCodeValueType argument(size_t offset) const
|
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);
|
return m_bytecode->at(state().instruction_position + 1 + offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue