|  |  | 
|  | // 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/marking-worklists.h" | 
|  |  | 
|  | namespace cppgc { | 
|  | namespace internal { | 
|  |  | 
|  | constexpr int MarkingWorklists::kMutatorThreadId; | 
|  |  | 
|  | void MarkingWorklists::ClearForTesting() { | 
|  | marking_worklist_.Clear(); | 
|  | not_fully_constructed_worklist_.Clear(); | 
|  | previously_not_fully_constructed_worklist_.Clear(); | 
|  | write_barrier_worklist_.Clear(); | 
|  | weak_callback_worklist_.Clear(); | 
|  | concurrent_marking_bailout_worklist_.Clear(); | 
|  | discovered_ephemeron_pairs_worklist_.Clear(); | 
|  | ephemeron_pairs_for_processing_worklist_.Clear(); | 
|  | } | 
|  |  | 
|  | MarkingWorklists::ExternalMarkingWorklist::~ExternalMarkingWorklist() { | 
|  | DCHECK(IsEmpty()); | 
|  | } | 
|  |  | 
|  | }  // namespace internal | 
|  | }  // namespace cppgc |