mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 01:53:20 +00:00
24 lines
453 B
C++
24 lines
453 B
C++
|
|
/*
|
||
|
|
* Copyright (c) 2024, Andreas Kling <kling@serenityos.org>
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include <LibJS/Heap/ConservativeVector.h>
|
||
|
|
#include <LibJS/Heap/Heap.h>
|
||
|
|
|
||
|
|
namespace JS {
|
||
|
|
|
||
|
|
ConservativeVectorBase::ConservativeVectorBase(Heap& heap)
|
||
|
|
: m_heap(&heap)
|
||
|
|
{
|
||
|
|
m_heap->did_create_conservative_vector({}, *this);
|
||
|
|
}
|
||
|
|
|
||
|
|
ConservativeVectorBase::~ConservativeVectorBase()
|
||
|
|
{
|
||
|
|
m_heap->did_destroy_conservative_vector({}, *this);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|