ladybird/Libraries/LibGC/HeapRoot.h
Andreas Kling 3bfb0534be LibGC: Rename MarkedVector => RootVector
Let's try to make it a bit more clear that this is a Vector of GC roots.
2024-12-26 19:10:44 +01:00

28 lines
462 B
C++

/*
* Copyright (c) 2023, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/SourceLocation.h>
namespace GC {
struct HeapRoot {
enum class Type {
HeapFunctionCapturedPointer,
Root,
RootVector,
ConservativeVector,
RegisterPointer,
StackPointer,
VM,
};
Type type;
SourceLocation const* location { nullptr };
};
}