2023-09-22 00:04:16 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/SourceLocation.h>
|
|
|
|
|
2024-11-14 15:01:23 +00:00
|
|
|
namespace GC {
|
2023-09-22 00:04:16 +00:00
|
|
|
|
|
|
|
struct HeapRoot {
|
|
|
|
enum class Type {
|
|
|
|
HeapFunctionCapturedPointer,
|
2024-11-14 15:01:23 +00:00
|
|
|
Root,
|
2023-09-22 00:04:16 +00:00
|
|
|
MarkedVector,
|
2024-02-22 12:18:31 +00:00
|
|
|
ConservativeVector,
|
2023-09-22 00:04:16 +00:00
|
|
|
RegisterPointer,
|
|
|
|
StackPointer,
|
|
|
|
VM,
|
|
|
|
};
|
|
|
|
|
|
|
|
Type type;
|
|
|
|
SourceLocation const* location { nullptr };
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|