summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-21 17:39:43 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-21 21:39:39 +0100
commit630d83be8f3e151f884f609d381603169bd20112 (patch)
tree7cd6f34da1879cca8cfe94dadbd279d50edcb440 /Userland
parente0abfcb27d7293cd2da27ef85ae8e47d150bff4f (diff)
downloadserenity-630d83be8f3e151f884f609d381603169bd20112.zip
LibJS: Always inline some tiny Interpreter getters
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibJS/Interpreter.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibJS/Interpreter.h b/Userland/Libraries/LibJS/Interpreter.h
index d9bea8e63a..edb000e9f4 100644
--- a/Userland/Libraries/LibJS/Interpreter.h
+++ b/Userland/Libraries/LibJS/Interpreter.h
@@ -71,10 +71,10 @@ public:
GlobalObject& global_object();
const GlobalObject& global_object() const;
- VM& vm() { return *m_vm; }
- const VM& vm() const { return *m_vm; }
- Heap& heap() { return vm().heap(); }
- Exception* exception() { return vm().exception(); }
+ ALWAYS_INLINE VM& vm() { return *m_vm; }
+ ALWAYS_INLINE const VM& vm() const { return *m_vm; }
+ ALWAYS_INLINE Heap& heap() { return vm().heap(); }
+ ALWAYS_INLINE Exception* exception() { return vm().exception(); }
ScopeObject* current_scope() { return vm().current_scope(); }
LexicalEnvironment* current_environment();