diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-27 19:03:41 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-27 19:56:12 +0200 |
commit | 9b699bad943bc7b45d63f7893c87cc454f361106 (patch) | |
tree | 2c1542e7c0dd46580f0bb66683e8e2a5e28eb8b4 /Userland/Libraries/LibJS/Heap/Heap.h | |
parent | e9081a264404f2f2c8bba1820c3878eb1cd2de85 (diff) | |
download | serenity-9b699bad943bc7b45d63f7893c87cc454f361106.zip |
LibJS: Rename Allocator => CellAllocator
Now that we have a BlockAllocator as well, it seems appropriate to name
the allocator-that-allocates-cells something more specific to match.
Diffstat (limited to 'Userland/Libraries/LibJS/Heap/Heap.h')
-rw-r--r-- | Userland/Libraries/LibJS/Heap/Heap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibJS/Heap/Heap.h b/Userland/Libraries/LibJS/Heap/Heap.h index 8e61391574..6e45121241 100644 --- a/Userland/Libraries/LibJS/Heap/Heap.h +++ b/Userland/Libraries/LibJS/Heap/Heap.h @@ -13,9 +13,9 @@ #include <AK/Vector.h> #include <LibCore/Forward.h> #include <LibJS/Forward.h> -#include <LibJS/Heap/Allocator.h> #include <LibJS/Heap/BlockAllocator.h> #include <LibJS/Heap/Cell.h> +#include <LibJS/Heap/CellAllocator.h> #include <LibJS/Heap/Handle.h> #include <LibJS/Runtime/Object.h> @@ -83,7 +83,7 @@ private: void mark_live_cells(const HashTable<Cell*>& live_cells); void sweep_dead_cells(bool print_report, const Core::ElapsedTimer&); - Allocator& allocator_for_size(size_t); + CellAllocator& allocator_for_size(size_t); template<typename Callback> void for_each_block(Callback callback) @@ -101,7 +101,7 @@ private: VM& m_vm; - Vector<NonnullOwnPtr<Allocator>> m_allocators; + Vector<NonnullOwnPtr<CellAllocator>> m_allocators; HashTable<HandleImpl*> m_handles; HashTable<MarkedValueList*> m_marked_value_lists; |