mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:27:34 +00:00
LibWasm: ALWAYS_INLINE some very hot functions
These function couldn't be inlined before because the compiler would've started flagging invalid paths in Variant as maybe-uninitialized.
This commit is contained in:
parent
d3db45c60b
commit
aa2916c21b
3 changed files with 17 additions and 14 deletions
|
@ -25,16 +25,16 @@ public:
|
|||
m_stack.push(move(frame));
|
||||
m_stack.push(label);
|
||||
}
|
||||
auto& frame() const { return m_stack.entries()[m_current_frame_index].get<Frame>(); }
|
||||
auto& frame() { return m_stack.entries()[m_current_frame_index].get<Frame>(); }
|
||||
auto& ip() const { return m_ip; }
|
||||
auto& ip() { return m_ip; }
|
||||
auto& depth() const { return m_depth; }
|
||||
auto& depth() { return m_depth; }
|
||||
auto& stack() const { return m_stack; }
|
||||
auto& stack() { return m_stack; }
|
||||
auto& store() const { return m_store; }
|
||||
auto& store() { return m_store; }
|
||||
ALWAYS_INLINE auto& frame() const { return m_stack.entries()[m_current_frame_index].get<Frame>(); }
|
||||
ALWAYS_INLINE auto& frame() { return m_stack.entries()[m_current_frame_index].get<Frame>(); }
|
||||
ALWAYS_INLINE auto& ip() const { return m_ip; }
|
||||
ALWAYS_INLINE auto& ip() { return m_ip; }
|
||||
ALWAYS_INLINE auto& depth() const { return m_depth; }
|
||||
ALWAYS_INLINE auto& depth() { return m_depth; }
|
||||
ALWAYS_INLINE auto& stack() const { return m_stack; }
|
||||
ALWAYS_INLINE auto& stack() { return m_stack; }
|
||||
ALWAYS_INLINE auto& store() const { return m_store; }
|
||||
ALWAYS_INLINE auto& store() { return m_store; }
|
||||
|
||||
struct CallFrameHandle {
|
||||
explicit CallFrameHandle(Configuration& configuration)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue