mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:07:36 +00:00
AK+LibJS: Remove OFFSET_OF and its users
With the LibJS JIT removed, let's not expose pointers to internal members.
This commit is contained in:
parent
4646a87eba
commit
d878975f95
14 changed files with 0 additions and 53 deletions
|
@ -20,9 +20,6 @@ class DeclarativeEnvironment : public Environment {
|
|||
JS_DECLARE_ALLOCATOR(DeclarativeEnvironment);
|
||||
|
||||
struct Binding {
|
||||
static FlatPtr value_offset() { return OFFSET_OF(Binding, value); }
|
||||
static FlatPtr initialized_offset() { return OFFSET_OF(Binding, initialized); }
|
||||
|
||||
DeprecatedFlyString name;
|
||||
Value value;
|
||||
bool strict { false };
|
||||
|
@ -71,9 +68,6 @@ 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);
|
||||
ThrowCompletionOr<void> set_mutable_binding_direct(VM&, Binding&, Value, bool strict);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue