Coverage Report

Created: 2025-08-28 06:26

/src/serenity/Userland/Libraries/LibJS/Heap/Handle.cpp
Line
Count
Source
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
11
namespace JS {
12
13
HandleImpl::HandleImpl(Cell* cell, SourceLocation location)
14
1.49k
    : m_cell(cell)
15
1.49k
    , m_location(location)
16
1.49k
{
17
1.49k
    m_cell->heap().did_create_handle({}, *this);
18
1.49k
}
19
20
HandleImpl::~HandleImpl()
21
1.49k
{
22
1.49k
    m_cell->heap().did_destroy_handle({}, *this);
23
1.49k
}
24
25
}