mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
LibJS: Demote VERIFYs in Completion() to ASSERT
These were *extremely* hot in profiles (noticed when looking at disassembly). Now that we've made the special empty JS::Value much harder to create accidentally, we can feel better about turning these into ASSERT and catching them in debug builds.
This commit is contained in:
parent
00cc1bedd7
commit
90c0c4bee3
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ public:
|
||||||
: m_type(type)
|
: m_type(type)
|
||||||
, m_value(value)
|
, m_value(value)
|
||||||
{
|
{
|
||||||
VERIFY(type != Type::Empty);
|
ASSERT(type != Type::Empty);
|
||||||
VERIFY(!value.is_special_empty_value());
|
ASSERT(!value.is_special_empty_value());
|
||||||
}
|
}
|
||||||
|
|
||||||
Completion(ThrowCompletionOr<Value> const&);
|
Completion(ThrowCompletionOr<Value> const&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue