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

LibJS: Expose various offsets for GetGlobal JIT fast path

This commit is contained in:
iliadsh 2023-11-13 01:44:39 +00:00 committed by Andreas Kling
parent c739c931c1
commit ddea710933
6 changed files with 11 additions and 0 deletions

View file

@ -48,6 +48,8 @@ public:
HostDefined* host_defined() { return m_host_defined; }
void set_host_defined(OwnPtr<HostDefined> host_defined) { m_host_defined = move(host_defined); }
static FlatPtr global_environment_offset() { return OFFSET_OF(Realm, m_global_environment); }
private:
Realm() = default;