V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::MaybeObject Class Reference
Inheritance diagram for v8::internal::MaybeObject:
v8::internal::HeapObjectReference

Public Member Functions

 MaybeObject (Address ptr)
 
bool operator== (const MaybeObject &other) const
 
bool operator!= (const MaybeObject &other) const
 
Address ptr () const
 
MaybeObjectoperator-> ()
 
const MaybeObjectoperator-> () const
 
bool IsSmi () const
 
bool ToSmi (Smi *value)
 
Smi ToSmi () const
 
bool IsCleared () const
 
bool IsStrongOrWeak () const
 
bool IsStrong () const
 
bool GetHeapObjectIfStrong (HeapObject **result) const
 
HeapObjectGetHeapObjectAssumeStrong () const
 
bool IsWeak () const
 
bool IsWeakOrCleared () const
 
bool GetHeapObjectIfWeak (HeapObject **result) const
 
HeapObjectGetHeapObjectAssumeWeak () const
 
bool GetHeapObject (HeapObject **result) const
 
bool GetHeapObject (HeapObject **result, HeapObjectReferenceType *reference_type) const
 
HeapObjectGetHeapObject () const
 
ObjectGetHeapObjectOrSmi () const
 
bool IsObject () const
 
template<typename T , typename = typename std::enable_if< std::is_base_of<Object, T>::value>::type>
Tcast () const
 
template<typename T , typename = typename std::enable_if< std::is_base_of<ObjectPtr, T>::value>::type>
T cast () const
 
void ShortPrint (FILE *out=stdout)
 
void ShortPrint (StringStream *accumulator)
 
void ShortPrint (std::ostream &os)
 
void Print ()
 
void Print (std::ostream &os)
 

Static Public Member Functions

static MaybeObject FromSmi (Smi smi)
 
static MaybeObject FromObject (Object *object)
 
static MaybeObject FromObject (ObjectPtr object)
 
static MaybeObject MakeWeak (MaybeObject object)
 

Detailed Description

Definition at line 25 of file maybe-object.h.


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