1// Copyright 2021 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#ifndef V8_HEAP_CPPGC_WRITE_BARRIER_H_ 6#define V8_HEAP_CPPGC_WRITE_BARRIER_H_ 7 8#include "include/cppgc/internal/write-barrier.h" 9 10namespace cppgc { 11namespace internal { 12 13class WriteBarrier::IncrementalOrConcurrentMarkingFlagUpdater { 14 public: 15 static void Enter() { incremental_or_concurrent_marking_flag_.Enter(); } 16 static void Exit() { incremental_or_concurrent_marking_flag_.Exit(); } 17}; 18 19} // namespace internal 20} // namespace cppgc 21 22#endif // V8_HEAP_CPPGC_WRITE_BARRIER_H_ 23