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

@ -37,6 +37,9 @@ public:
ThrowCompletionOr<void> create_global_var_binding(DeprecatedFlyString const& name, bool can_be_deleted);
ThrowCompletionOr<void> create_global_function_binding(DeprecatedFlyString const& name, Value, bool can_be_deleted);
static FlatPtr object_record_offset() { return OFFSET_OF(GlobalEnvironment, m_object_record); }
static FlatPtr declarative_record_offset() { return OFFSET_OF(GlobalEnvironment, m_declarative_record); }
private:
GlobalEnvironment(Object&, Object& this_value);