• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2020 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "src/heap/cppgc/liveness-broker.h"
6 
7 #include "src/heap/cppgc/heap-object-header.h"
8 
9 namespace cppgc {
10 
IsHeapObjectAliveImpl(const void * payload) const11 bool LivenessBroker::IsHeapObjectAliveImpl(const void* payload) const {
12   return internal::HeapObjectHeader::FromObject(payload).IsMarked();
13 }
14 
15 namespace internal {
16 
17 // static
Create()18 cppgc::LivenessBroker LivenessBrokerFactory::Create() {
19   return cppgc::LivenessBroker();
20 }
21 
22 }  // namespace internal
23 
24 }  // namespace cppgc
25