![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <testing.h>
Public Member Functions | |
OverrideEmbedderStackStateScope (HeapHandle &heap_handle, EmbedderStackState state) | |
~OverrideEmbedderStackStateScope () | |
OverrideEmbedderStackStateScope (const OverrideEmbedderStackStateScope &)=delete | |
OverrideEmbedderStackStateScope & | operator= (const OverrideEmbedderStackStateScope &)=delete |
Private Member Functions | |
CPPGC_STACK_ALLOCATED () | |
Private Attributes | |
HeapHandle & | heap_handle_ |
Overrides the state of the stack with the provided value. Parameters passed to explicit garbage collection calls still take precedence. Must not be nested.
This scope is useful to make the garbage collector consider the stack when tasks that invoke garbage collection (through the provided platform) contain interesting pointers on its stack.
|
explicit |
Constructs a scoped object that automatically enters and leaves the scope.
heap_handle | The corresponding heap. |
Definition at line 13 of file testing.cc.
cppgc::testing::OverrideEmbedderStackStateScope::~OverrideEmbedderStackStateScope | ( | ) |
|
delete |
|
private |
|
delete |
|
private |