1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

LibJS: Use IntrusiveList for keeping track of MarkedValueLists

This commit is contained in:
Andreas Kling 2021-07-21 19:51:19 +02:00
parent 746b310061
commit 3fe1be20b7
3 changed files with 13 additions and 7 deletions

View file

@ -6,6 +6,7 @@
#pragma once
#include <AK/IntrusiveList.h>
#include <AK/Noncopyable.h>
#include <AK/Vector.h>
#include <LibJS/Forward.h>
@ -34,6 +35,11 @@ public:
private:
Heap& m_heap;
IntrusiveListNode<MarkedValueList> m_list_node;
public:
using List = IntrusiveList<MarkedValueList, RawPtr<MarkedValueList>, &MarkedValueList::m_list_node>;
};
}