v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
cppgc::testing::OverrideEmbedderStackStateScope Class Referencefinal

#include <testing.h>

Collaboration diagram for cppgc::testing::OverrideEmbedderStackStateScope:

Public Member Functions

 OverrideEmbedderStackStateScope (HeapHandle &heap_handle, EmbedderStackState state)
 
 ~OverrideEmbedderStackStateScope ()
 
 OverrideEmbedderStackStateScope (const OverrideEmbedderStackStateScope &)=delete
 
OverrideEmbedderStackStateScopeoperator= (const OverrideEmbedderStackStateScope &)=delete
 

Private Member Functions

 CPPGC_STACK_ALLOCATED ()
 

Private Attributes

HeapHandleheap_handle_
 

Detailed Description

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.

Definition at line 30 of file testing.h.

Constructor & Destructor Documentation

◆ OverrideEmbedderStackStateScope() [1/2]

cppgc::testing::OverrideEmbedderStackStateScope::OverrideEmbedderStackStateScope ( HeapHandle & heap_handle,
EmbedderStackState state )
explicit

Constructs a scoped object that automatically enters and leaves the scope.

Parameters
heap_handleThe corresponding heap.

Definition at line 13 of file testing.cc.

Here is the call graph for this function:

◆ ~OverrideEmbedderStackStateScope()

cppgc::testing::OverrideEmbedderStackStateScope::~OverrideEmbedderStackStateScope ( )

Definition at line 19 of file testing.cc.

Here is the call graph for this function:

◆ OverrideEmbedderStackStateScope() [2/2]

cppgc::testing::OverrideEmbedderStackStateScope::OverrideEmbedderStackStateScope ( const OverrideEmbedderStackStateScope & )
delete

Member Function Documentation

◆ CPPGC_STACK_ALLOCATED()

cppgc::testing::OverrideEmbedderStackStateScope::CPPGC_STACK_ALLOCATED ( )
private

◆ operator=()

OverrideEmbedderStackStateScope & cppgc::testing::OverrideEmbedderStackStateScope::operator= ( const OverrideEmbedderStackStateScope & )
delete

Member Data Documentation

◆ heap_handle_

HeapHandle& cppgc::testing::OverrideEmbedderStackStateScope::heap_handle_
private

Definition at line 49 of file testing.h.


The documentation for this class was generated from the following files: