blob: 8c61268ba815521dd83f49079b747b4a11296d4d [file] [log] [blame]
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/heap/cppgc/liveness-broker.h"
#include "src/heap/cppgc/heap-object-header.h"
namespace cppgc {
bool LivenessBroker::IsHeapObjectAliveImpl(const void* payload) const {
return internal::HeapObjectHeader::FromPayload(payload).IsMarked();
}
namespace internal {
// static
cppgc::LivenessBroker LivenessBrokerFactory::Create() {
return cppgc::LivenessBroker();
}
} // namespace internal
} // namespace cppgc