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
commit ddea710933
Notes: sideshowbarker 2024-07-17 01:13:25 +09:00
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);