1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:47:35 +00:00

LibJS: Always inline some tiny Interpreter getters

This commit is contained in:
Andreas Kling 2021-03-21 17:39:43 +01:00
parent e0abfcb27d
commit 630d83be8f

View file

@ -71,10 +71,10 @@ public:
GlobalObject& global_object(); GlobalObject& global_object();
const GlobalObject& global_object() const; const GlobalObject& global_object() const;
VM& vm() { return *m_vm; } ALWAYS_INLINE VM& vm() { return *m_vm; }
const VM& vm() const { return *m_vm; } ALWAYS_INLINE const VM& vm() const { return *m_vm; }
Heap& heap() { return vm().heap(); } ALWAYS_INLINE Heap& heap() { return vm().heap(); }
Exception* exception() { return vm().exception(); } ALWAYS_INLINE Exception* exception() { return vm().exception(); }
ScopeObject* current_scope() { return vm().current_scope(); } ScopeObject* current_scope() { return vm().current_scope(); }
LexicalEnvironment* current_environment(); LexicalEnvironment* current_environment();