mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-24 21:45:20 +00:00
NanBoxedValue is intended to be a GC-allocatable type which is not specific to javascript, towards the effort of factoring out the GC implementation from LibJS.
23 lines
400 B
C++
23 lines
400 B
C++
/*
|
|
* Copyright (c) 2020-2022, Andreas Kling <andreas@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibJS/Heap/Cell.h>
|
|
#include <LibJS/Heap/Heap.h>
|
|
#include <LibJS/Heap/NanBoxedValue.h>
|
|
|
|
namespace JS {
|
|
|
|
void JS::Cell::initialize(JS::Realm&)
|
|
{
|
|
}
|
|
|
|
void JS::Cell::Visitor::visit(NanBoxedValue const& value)
|
|
{
|
|
if (value.is_cell())
|
|
visit_impl(value.as_cell());
|
|
}
|
|
|
|
}
|