mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05:00
3bfb0534be
Let's try to make it a bit more clear that this is a Vector of GC roots.
28 lines
462 B
C++
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 };
|
|
};
|
|
|
|
}
|