Andreas Kling
470c99a2a6
LibJS: Tweak the WeakContainer::remove_swept_cells() API a little bit
...
Make this API take a Span<Cell*> instead of a Vector<Cell*>&.
This is behavior neutral, but stops the API looking like it wants to
do mutable things to the Vector.
2021-09-11 12:09:55 +02:00
Ali Mohammad Pur
5a0cdb15b0
AK+Everywhere: Reduce the number of template parameters of IntrusiveList
...
This makes the user-facing type only take the node member pointer, and
lets the compiler figure out the other needed types from that.
2021-09-10 18:05:46 +03:00
Andreas Kling
cdc1315dc8
LibJS: Use IntrusiveList for keeping track of WeakContainers
2021-07-21 20:17:55 +02:00
Andreas Kling
cd53d046b2
LibJS: Fix typo "sweeped" => "swept" everywhere
2021-06-27 22:40:49 +02:00
Idan Horowitz
7eba63a8a3
LibJS: Add the WeakRef built-in object
2021-06-12 18:39:23 +01:00
Idan Horowitz
1a8ee5d8d7
LibJS: Generify the garbage collector's weak container notifications
...
This will allow us to use the same interface for other JS weak
containers like the WeakMap & WeakRef.
2021-06-12 10:44:28 +01:00