mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibJS: Mark Completion constructors with ALWAYS_INLINE
These were showing up in profiles.
This commit is contained in:
parent
41fe02e012
commit
4d785b9aa0
Notes:
sideshowbarker
2024-07-17 19:42:56 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4d785b9aa0c
1 changed files with 4 additions and 3 deletions
|
@ -26,7 +26,7 @@ public:
|
|||
Throw,
|
||||
};
|
||||
|
||||
Completion(Type type, Optional<Value> value, Optional<FlyString> target)
|
||||
ALWAYS_INLINE Completion(Type type, Optional<Value> value, Optional<FlyString> target)
|
||||
: m_type(type)
|
||||
, m_value(move(value))
|
||||
, m_target(move(target))
|
||||
|
@ -39,11 +39,12 @@ public:
|
|||
|
||||
// 5.2.3.1 Implicit Completion Values, https://tc39.es/ecma262/#sec-implicit-completion-values
|
||||
// Not `explicit` on purpose.
|
||||
Completion(Value value)
|
||||
ALWAYS_INLINE Completion(Value value)
|
||||
: Completion(Type::Normal, value, {})
|
||||
{
|
||||
}
|
||||
Completion()
|
||||
|
||||
ALWAYS_INLINE Completion()
|
||||
: Completion(js_undefined())
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue