Cell.cpp 422 B

123456789101112131415161718192021222324
  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. void JS::Cell::initialize(JS::Realm&)
  12. {
  13. }
  14. void JS::Cell::Visitor::visit(JS::Value value)
  15. {
  16. if (value.is_cell())
  17. visit_impl(value.as_cell());
  18. }
  19. }