Serenity Operating System
at master 24 lines 410 B view raw
1/* 2 * Copyright (c) 2020, Andreas Kling <kling@serenityos.org> 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#include <LibJS/Heap/Cell.h> 8#include <LibJS/Heap/Handle.h> 9#include <LibJS/Runtime/VM.h> 10 11namespace JS { 12 13HandleImpl::HandleImpl(Cell* cell) 14 : m_cell(cell) 15{ 16 m_cell->heap().did_create_handle({}, *this); 17} 18 19HandleImpl::~HandleImpl() 20{ 21 m_cell->heap().did_destroy_handle({}, *this); 22} 23 24}