diff --git a/Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.h b/Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.h index 29d3c414b8..af9acb1f67 100644 --- a/Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.h +++ b/Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.h @@ -130,26 +130,26 @@ public: } } - Value(Value const& value) + ALWAYS_INLINE Value(Value const& value) : m_value(AnyValueType { value.m_value }) , m_type(value.m_type) { } - Value(Value&& value) + ALWAYS_INLINE Value(Value&& value) : m_value(move(value.m_value)) , m_type(move(value.m_type)) { } - Value& operator=(Value&& value) + ALWAYS_INLINE Value& operator=(Value&& value) { m_value = move(value.m_value); m_type = move(value.m_type); return *this; } - Value& operator=(Value const& value) + ALWAYS_INLINE Value& operator=(Value const& value) { m_value = value.m_value; m_type = value.m_type; @@ -157,7 +157,7 @@ public: } template - Optional to() + ALWAYS_INLINE Optional to() { Optional result; m_value.visit( diff --git a/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.h b/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.h index 41d2caacdb..fc4bcb5c04 100644 --- a/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.h +++ b/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.h @@ -50,7 +50,7 @@ protected: T read_value(ReadonlyBytes data); Vector pop_values(Configuration& configuration, size_t count); - bool trap_if_not(bool value, StringView reason) + ALWAYS_INLINE bool trap_if_not(bool value, StringView reason) { if (!value) m_trap = Trap { reason };