mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
LibJS: Expose offset of elements in IndexedProperties
This commit is contained in:
parent
eb937631bb
commit
d9aebeb372
1 changed files with 4 additions and 0 deletions
|
@ -74,6 +74,8 @@ public:
|
|||
|
||||
Vector<Value> const& elements() const { return m_packed_elements; }
|
||||
|
||||
static FlatPtr elements_offset() { return OFFSET_OF(SimpleIndexedPropertyStorage, m_packed_elements); }
|
||||
|
||||
private:
|
||||
friend GenericIndexedPropertyStorage;
|
||||
|
||||
|
@ -172,6 +174,8 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
static FlatPtr storage_offset() { return OFFSET_OF(IndexedProperties, m_storage); }
|
||||
|
||||
private:
|
||||
void switch_to_generic_storage();
|
||||
void ensure_storage();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue