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

#include <allocation-result.h>

Collaboration diagram for v8::internal::AllocationResult:

Public Member Functions

 AllocationResult ()=default
 
bool IsFailure () const
 
template<typename T >
bool To (Tagged< T > *obj) const
 
Tagged< HeapObjectToObjectChecked () const
 
Tagged< HeapObjectToObject () const
 
Address ToAddress () const
 
 operator bool () const
 

Static Public Member Functions

static AllocationResult Failure ()
 
static AllocationResult FromObject (Tagged< HeapObject > heap_object)
 

Private Member Functions

 AllocationResult (Tagged< HeapObject > heap_object)
 

Private Attributes

Tagged< HeapObjectobject_
 

Detailed Description

Definition at line 26 of file allocation-result.h.

Constructor & Destructor Documentation

◆ AllocationResult() [1/2]

v8::internal::AllocationResult::AllocationResult ( )
default
Here is the caller graph for this function:

◆ AllocationResult() [2/2]

v8::internal::AllocationResult::AllocationResult ( Tagged< HeapObject > heap_object)
inlineexplicitprivate

Definition at line 65 of file allocation-result.h.

Member Function Documentation

◆ Failure()

static AllocationResult v8::internal::AllocationResult::Failure ( )
inlinestatic

Definition at line 28 of file allocation-result.h.

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

◆ FromObject()

static AllocationResult v8::internal::AllocationResult::FromObject ( Tagged< HeapObject > heap_object)
inlinestatic

Definition at line 30 of file allocation-result.h.

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

◆ IsFailure()

bool v8::internal::AllocationResult::IsFailure ( ) const
inline

Definition at line 38 of file allocation-result.h.

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

◆ operator bool()

v8::internal::AllocationResult::operator bool ( ) const
inlineexplicit

Definition at line 62 of file allocation-result.h.

Here is the call graph for this function:

◆ To()

template<typename T >
bool v8::internal::AllocationResult::To ( Tagged< T > * obj) const
inline

Definition at line 41 of file allocation-result.h.

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

◆ ToAddress()

Address v8::internal::AllocationResult::ToAddress ( ) const
inline

Definition at line 57 of file allocation-result.h.

Here is the call graph for this function:

◆ ToObject()

Tagged< HeapObject > v8::internal::AllocationResult::ToObject ( ) const
inline

Definition at line 52 of file allocation-result.h.

Here is the call graph for this function:

◆ ToObjectChecked()

Tagged< HeapObject > v8::internal::AllocationResult::ToObjectChecked ( ) const
inline

Definition at line 47 of file allocation-result.h.

Here is the call graph for this function:

Member Data Documentation

◆ object_

Tagged<HeapObject> v8::internal::AllocationResult::object_
private

Definition at line 68 of file allocation-result.h.


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