mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 21:12:26 +00:00
LibJS: Expose various offsets for GetGlobal JIT fast path
This commit is contained in:
parent
c739c931c1
commit
ddea710933
Notes:
sideshowbarker
2024-07-17 01:13:25 +09:00
Author: https://github.com/iliadsh
Commit: ddea710933
Pull-request: https://github.com/SerenityOS/serenity/pull/21919
6 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue