v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
testing.cc
Go to the documentation of this file.
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
6
7#include "src/base/logging.h"
9
10namespace cppgc {
11namespace testing {
12
18
22
24 : heap_handle_(heap_handle) {}
25
30
36
42
48
54
55bool IsHeapObjectOld(void* object) {
56#if defined(CPPGC_YOUNG_GENERATION)
58#else
59 return true;
60#endif
61}
62
63} // namespace testing
64} // namespace cppgc
virtual void clear_overridden_stack_state()=0
virtual void set_override_stack_state(EmbedderStackState state)=0
virtual void StartIncrementalGarbageCollectionForTesting()=0
virtual void FinalizeIncrementalGarbageCollectionForTesting(EmbedderStackState)=0
Compactor & compactor()
Definition heap-base.h:133
static HeapBase & From(cppgc::HeapHandle &heap_handle)
Definition heap-base.h:88
MarkerBase * marker() const
Definition heap-base.h:130
static HeapObjectHeader & FromObject(void *address)
bool IncrementalMarkingStepForTesting(StackState)
Definition marker.cc:552
void SetMainThreadMarkingDisabledForTesting(bool)
Definition marker.cc:773
OverrideEmbedderStackStateScope(HeapHandle &heap_handle, EmbedderStackState state)
Definition testing.cc:13
void ToggleMainThreadMarking(bool should_mark)
Definition testing.cc:43
void FinalizeGarbageCollection(EmbedderStackState stack_state)
Definition testing.cc:37
bool PerformMarkingStep(EmbedderStackState stack_state)
Definition testing.cc:31
bool IsHeapObjectOld(void *object)
Definition testing.cc:55
EmbedderStackState
Definition common.h:15