mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 09:18:05 +03:00
LibJS: Always inline some tiny Interpreter getters
This commit is contained in:
parent
e0abfcb27d
commit
630d83be8f
Notes:
sideshowbarker
2024-07-18 21:11:05 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/630d83be8f3
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user