/* * Copyright (c) 2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include namespace GC { RootImpl::RootImpl(Cell* cell, SourceLocation location) : m_cell(cell) , m_location(location) { m_cell->heap().did_create_root({}, *this); } RootImpl::~RootImpl() { m_cell->heap().did_destroy_root({}, *this); } }