2024-11-14 04:22:33 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020-2022, Andreas Kling <andreas@ladybird.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
2024-11-14 12:01:23 -03:00
|
|
|
#include <LibGC/Cell.h>
|
|
|
|
|
#include <LibGC/NanBoxedValue.h>
|
2024-11-14 04:22:33 -03:00
|
|
|
|
2024-11-14 12:01:23 -03:00
|
|
|
namespace GC {
|
2024-11-14 04:22:33 -03:00
|
|
|
|
2024-11-14 12:01:23 -03:00
|
|
|
void GC::Cell::Visitor::visit(NanBoxedValue const& value)
|
2024-11-14 04:22:33 -03:00
|
|
|
{
|
|
|
|
|
if (value.is_cell())
|
|
|
|
|
visit_impl(value.as_cell());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|