Andreas Kling
0de954e86b
LibJS: Make Cell::Visitor::visit_impl() take a Cell&
...
Passing a null cell pointer is not supported.
2021-05-25 18:39:01 +02:00
Andreas Kling
789d20ebb7
LibJS: Replace Cell live bit with a cell state
...
So far we only have two states: Live and Dead. In the future, we can
add additional states to support incremental sweeping and/or multi-
stage cell destruction.
2021-05-25 18:37:37 +02:00
Andreas Kling
91656d63c7
LibJS: Inline Cell::Visitor::visit() functions
...
This allows the calls to MarkingVisitor::visit_impl() during GC to be
devirtualized in Heap::mark_live_cells().
2021-05-25 18:18:48 +02:00
Andreas Kling
6714cf3631
LibJS: Move Cell.{cpp,h} from Runtime/ to Heap/
2021-05-17 19:53:00 +02:00