v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
unified-heap-marking-state.cc
Go to the documentation of this file.
1// Copyright 2022 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
6
7#include "src/base/logging.h"
8#include "src/heap/heap-inl.h"
10
11namespace v8 {
12namespace internal {
13
15 Heap* heap, MarkingWorklists::Local* local_marking_worklist,
16 cppgc::internal::CollectionType collection_type)
17 : heap_(heap),
18 marking_state_(heap_ ? heap_->marking_state() : nullptr),
19 local_marking_worklist_(local_marking_worklist),
20 mark_mode_(collection_type == cppgc::internal::CollectionType::kMinor
21 ? TracedHandles::MarkMode::kOnlyYoung
22 : TracedHandles::MarkMode::kAll) {
24}
25
27 MarkingWorklists::Local* local_marking_worklist) {
28 local_marking_worklist_ = local_marking_worklist;
30}
31
32} // namespace internal
33} // namespace v8
UnifiedHeapMarkingState(Heap *, MarkingWorklists::Local *, cppgc::internal::CollectionType)
NonAtomicMarkingState * marking_state_
#define DCHECK_NOT_NULL(val)
Definition logging.h:492
#define DCHECK_IMPLIES(v1, v2)
Definition logging.h:493
Heap * heap_