mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:07:46 +00:00
LibJS+LibWeb: Wrap raw JS::Cell*/& fields in GCPtr/NonnullGCPtr
This commit is contained in:
parent
1df3652e27
commit
7c0c1c8f49
214 changed files with 825 additions and 827 deletions
|
@ -23,8 +23,8 @@ public:
|
|||
|
||||
virtual ~WeakMap() override = default;
|
||||
|
||||
HashMap<Cell*, Value> const& values() const { return m_values; };
|
||||
HashMap<Cell*, Value>& values() { return m_values; };
|
||||
HashMap<GCPtr<Cell>, Value> const& values() const { return m_values; };
|
||||
HashMap<GCPtr<Cell>, Value>& values() { return m_values; };
|
||||
|
||||
virtual void remove_dead_cells(Badge<Heap>) override;
|
||||
|
||||
|
@ -33,7 +33,7 @@ private:
|
|||
|
||||
void visit_edges(Visitor&) override;
|
||||
|
||||
HashMap<Cell*, Value> m_values; // This stores Cell pointers instead of Object pointers to aide with sweeping
|
||||
HashMap<GCPtr<Cell>, Value> m_values; // This stores Cell pointers instead of Object pointers to aide with sweeping
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue