1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:47: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

@ -71,6 +71,7 @@ public:
[[nodiscard]] u64 environment_serial_number() const { return m_environment_serial_number; }
static FlatPtr bindings_offset() { return OFFSET_OF(DeclarativeEnvironment, m_bindings); }
static FlatPtr environment_serial_number_offset() { return OFFSET_OF(DeclarativeEnvironment, m_environment_serial_number); }
private:
ThrowCompletionOr<Value> get_binding_value_direct(VM&, Binding&, bool strict);