HeapRoot.h 488 B

1234567891011121314151617181920212223242526272829
  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. ConservativeVector,
  15. RegisterPointer,
  16. SafeFunction,
  17. StackPointer,
  18. VM,
  19. };
  20. Type type;
  21. SourceLocation const* location { nullptr };
  22. };
  23. }