1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37: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:
Timothy Flynn 2024-02-28 13:08:15 -05:00 committed by Andreas Kling
parent 4646a87eba
commit d878975f95
14 changed files with 0 additions and 53 deletions

View file

@ -46,8 +46,6 @@ public:
bool is_simple_storage() const { return m_is_simple_storage; }
static FlatPtr is_simple_storage_offset() { return OFFSET_OF(IndexedPropertyStorage, m_is_simple_storage); }
protected:
explicit IndexedPropertyStorage(IsSimpleStorage is_simple_storage)
: m_is_simple_storage(is_simple_storage == IsSimpleStorage::Yes) {};
@ -76,9 +74,6 @@ public:
Vector<Value> const& elements() const { return m_packed_elements; }
static FlatPtr array_size_offset() { return OFFSET_OF(SimpleIndexedPropertyStorage, m_array_size); }
static FlatPtr elements_offset() { return OFFSET_OF(SimpleIndexedPropertyStorage, m_packed_elements); }
private:
friend GenericIndexedPropertyStorage;
@ -177,8 +172,6 @@ public:
}
}
static FlatPtr storage_offset() { return OFFSET_OF(IndexedProperties, m_storage); }
private:
void switch_to_generic_storage();
void ensure_storage();