2023-07-09 11:40:17 +03:30
|
|
|
/*
|
2024-10-04 13:19:50 +02:00
|
|
|
* Copyright (c) 2020-2022, Andreas Kling <andreas@ladybird.org>
|
2023-07-09 11:40:17 +03:30
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <LibJS/Heap/Cell.h>
|
|
|
|
#include <LibJS/Heap/Heap.h>
|
2024-11-14 19:40:36 +13:00
|
|
|
#include <LibJS/Heap/NanBoxedValue.h>
|
2023-07-09 11:40:17 +03:30
|
|
|
|
|
|
|
namespace JS {
|
|
|
|
|
2023-08-07 08:41:28 +02:00
|
|
|
void JS::Cell::initialize(JS::Realm&)
|
2023-07-09 11:40:17 +03:30
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2024-11-14 19:40:36 +13:00
|
|
|
void JS::Cell::Visitor::visit(NanBoxedValue const& value)
|
2023-07-09 11:40:17 +03:30
|
|
|
{
|
|
|
|
if (value.is_cell())
|
|
|
|
visit_impl(value.as_cell());
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|