1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +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

@ -41,6 +41,8 @@ public:
// [[IsWithEnvironment]], Indicates whether this Environment Record is created for a with statement.
bool is_with_environment() const { return m_with_environment; }
static FlatPtr binding_object_offset() { return OFFSET_OF(ObjectEnvironment, m_binding_object); }
private:
ObjectEnvironment(Object& binding_object, IsWithEnvironment, Environment* outer_environment);