v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
testing.h
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
5#ifndef INCLUDE_CPPGC_TESTING_H_
6#define INCLUDE_CPPGC_TESTING_H_
7
8#include "cppgc/common.h"
9#include "cppgc/macros.h"
10#include "v8config.h" // NOLINT(build/include_directory)
11
12namespace cppgc {
13
14class HeapHandle;
15
19namespace testing {
20
32
33 public:
40 EmbedderStackState state);
42
44 delete;
46 const OverrideEmbedderStackStateScope&) = delete;
47
48 private:
49 HeapHandle& heap_handle_;
50};
51
58 public:
60
65
73
82
90 void ToggleMainThreadMarking(bool should_mark);
91
96
97 private:
98 HeapHandle& heap_handle_;
99};
100
102
103} // namespace testing
104} // namespace cppgc
105
106#endif // INCLUDE_CPPGC_TESTING_H_
OverrideEmbedderStackStateScope(const OverrideEmbedderStackStateScope &)=delete
OverrideEmbedderStackStateScope(HeapHandle &heap_handle, EmbedderStackState state)
OverrideEmbedderStackStateScope & operator=(const OverrideEmbedderStackStateScope &)=delete
void ToggleMainThreadMarking(bool should_mark)
bool PerformMarkingStep(EmbedderStackState stack_state)
void FinalizeGarbageCollection(EmbedderStackState stack_state)
#define CPPGC_STACK_ALLOCATED()
Definition macros.h:29
V8_EXPORT bool IsHeapObjectOld(void *)
EmbedderStackState
Definition common.h:15
#define V8_EXPORT
Definition v8config.h:753
#define V8_NODISCARD
Definition v8config.h:650