mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibJS: Add IndexedProperties::storage() to access the underlying storage
This will be used in GetByValue and PutByValue fast paths.
This commit is contained in:
parent
7df1692580
commit
a3ee8ff377
Notes:
sideshowbarker
2024-07-17 03:05:16 +09:00
Author: https://github.com/awesomekling
Commit: a3ee8ff377
Pull-request: https://github.com/SerenityOS/serenity/pull/21338
1 changed files with 3 additions and 0 deletions
|
@ -138,6 +138,9 @@ public:
|
|||
size_t array_like_size() const { return m_storage ? m_storage->array_like_size() : 0; }
|
||||
bool set_array_like_size(size_t);
|
||||
|
||||
IndexedPropertyStorage* storage() { return m_storage; }
|
||||
IndexedPropertyStorage const* storage() const { return m_storage; }
|
||||
|
||||
size_t real_size() const;
|
||||
|
||||
Vector<u32> indices() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue