v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::JSDisposableStackBase Class Reference

#include <js-disposable-stack.h>

Inheritance diagram for v8::internal::JSDisposableStackBase:
Collaboration diagram for v8::internal::JSDisposableStackBase:

Public Types

enum class  AsyncDisposableStackContextSlots { kStack = Context::MIN_CONTEXT_SLOTS , kOuterPromise , kLength }
 
enum class  AsyncDisposeFromSyncDisposeContextSlots { kMethod = Context::MIN_CONTEXT_SLOTS , kLength }
 

Public Member Functions

DisposableStackState state () const
 
void set_state (DisposableStackState value)
 

Static Public Member Functions

static void InitializeJSDisposableStackBase (Isolate *isolate, DirectHandle< JSDisposableStackBase > stack)
 
static void Add (Isolate *isolate, DirectHandle< JSDisposableStackBase > disposable_stack, DirectHandle< Object > value, DirectHandle< Object > method, DisposeMethodCallType type, DisposeMethodHint hint)
 
static MaybeDirectHandle< ObjectCheckValueAndGetDisposeMethod (Isolate *isolate, DirectHandle< JSAny > value, DisposeMethodHint hint)
 
static MaybeDirectHandle< ObjectDisposeResources (Isolate *isolate, DirectHandle< JSDisposableStackBase > disposable_stack, DisposableStackResourcesType resources_type)
 
static MaybeDirectHandle< JSReceiverResolveAPromiseWithValueAndReturnIt (Isolate *isolate, DirectHandle< Object > value)
 
static void HandleErrorInDisposal (Isolate *isolate, DirectHandle< JSDisposableStackBase > disposable_stack, DirectHandle< Object > current_error, DirectHandle< Object > current_error_message)
 

Detailed Description

Definition at line 46 of file js-disposable-stack.h.

Member Enumeration Documentation

◆ AsyncDisposableStackContextSlots

Enumerator
kStack 
kOuterPromise 
kLength 

Definition at line 61 of file js-disposable-stack.h.

◆ AsyncDisposeFromSyncDisposeContextSlots

Enumerator
kMethod 
kLength 

Definition at line 67 of file js-disposable-stack.h.

Member Function Documentation

◆ Add()

static void v8::internal::JSDisposableStackBase::Add ( Isolate * isolate,
DirectHandle< JSDisposableStackBase > disposable_stack,
DirectHandle< Object > value,
DirectHandle< Object > method,
DisposeMethodCallType type,
DisposeMethodHint hint )
static
Here is the caller graph for this function:

◆ CheckValueAndGetDisposeMethod()

MaybeDirectHandle< Object > v8::internal::JSDisposableStackBase::CheckValueAndGetDisposeMethod ( Isolate * isolate,
DirectHandle< JSAny > value,
DisposeMethodHint hint )
inlinestatic

Definition at line 65 of file js-disposable-stack-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DisposeResources()

MaybeDirectHandle< Object > v8::internal::JSDisposableStackBase::DisposeResources ( Isolate * isolate,
DirectHandle< JSDisposableStackBase > disposable_stack,
DisposableStackResourcesType resources_type )
static

Definition at line 47 of file js-disposable-stack.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleErrorInDisposal()

void v8::internal::JSDisposableStackBase::HandleErrorInDisposal ( Isolate * isolate,
DirectHandle< JSDisposableStackBase > disposable_stack,
DirectHandle< Object > current_error,
DirectHandle< Object > current_error_message )
inlinestatic

Definition at line 185 of file js-disposable-stack-inl.h.

Here is the caller graph for this function:

◆ InitializeJSDisposableStackBase()

void v8::internal::JSDisposableStackBase::InitializeJSDisposableStackBase ( Isolate * isolate,
DirectHandle< JSDisposableStackBase > stack )
static

Definition at line 6384 of file objects.cc.

Here is the caller graph for this function:

◆ ResolveAPromiseWithValueAndReturnIt()

MaybeDirectHandle< JSReceiver > v8::internal::JSDisposableStackBase::ResolveAPromiseWithValueAndReturnIt ( Isolate * isolate,
DirectHandle< Object > value )
static

Definition at line 199 of file js-disposable-stack.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_state()

void v8::internal::JSDisposableStackBase::set_state ( DisposableStackState value)
inline

◆ state()

DisposableStackState v8::internal::JSDisposableStackBase::state ( ) const
inline

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