HeapRoot.h 460 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2023, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/SourceLocation.h>
  8. namespace JS {
  9. struct HeapRoot {
  10. enum class Type {
  11. HeapFunctionCapturedPointer,
  12. Handle,
  13. MarkedVector,
  14. RegisterPointer,
  15. SafeFunction,
  16. StackPointer,
  17. VM,
  18. };
  19. Type type;
  20. SourceLocation const* location { nullptr };
  21. };
  22. }