Cell.cpp 456 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2020-2022, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibJS/Heap/Cell.h>
  7. #include <LibJS/Heap/Heap.h>
  8. #include <LibJS/Runtime/Completion.h>
  9. #include <LibJS/Runtime/Value.h>
  10. namespace JS {
  11. ThrowCompletionOr<void> JS::Cell::initialize(JS::Realm&)
  12. {
  13. return {};
  14. }
  15. void JS::Cell::Visitor::visit(JS::Value value)
  16. {
  17. if (value.is_cell())
  18. visit_impl(value.as_cell());
  19. }
  20. }