mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-28 20:04:14 +00:00
19 lines
300 B
C++
19 lines
300 B
C++
|
|
#include <LibJS/Heap/Handle.h>
|
||
|
|
#include <LibJS/Heap/Heap.h>
|
||
|
|
#include <LibJS/Runtime/Cell.h>
|
||
|
|
|
||
|
|
namespace JS {
|
||
|
|
|
||
|
|
HandleImpl::HandleImpl(Cell* cell)
|
||
|
|
: m_cell(cell)
|
||
|
|
{
|
||
|
|
m_cell->heap().did_create_handle({}, *this);
|
||
|
|
}
|
||
|
|
|
||
|
|
HandleImpl::~HandleImpl()
|
||
|
|
{
|
||
|
|
m_cell->heap().did_destroy_handle({}, *this);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|