v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
OverrideEmbedderStackStateScope Class Referencefinal

#include <testing.h>

Public Member Functions

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

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]

OverrideEmbedderStackStateScope ( HeapHandle heap_handle,
EmbedderStackState  state 
)
explicit

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

Parameters
heap_handleThe corresponding heap.

◆ ~OverrideEmbedderStackStateScope()

◆ OverrideEmbedderStackStateScope() [2/2]

Member Function Documentation

◆ operator=()


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