v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Failure Class Reference

#include <objects.h>

Inheritance diagram for Failure:
Collaboration diagram for Failure:

Public Types

enum  Type { RETRY_AFTER_GC = 0, EXCEPTION = 1, INTERNAL_ERROR = 2, OUT_OF_MEMORY_EXCEPTION = 3 }
 

Public Member Functions

Type type () const
 
AllocationSpace allocation_space () const
 
bool IsInternalError () const
 
bool IsOutOfMemoryException () const
 
void FailurePrint ()
 
void FailurePrint (FILE *out)
 
void FailurePrint (StringStream *accumulator)
 

Static Public Member Functions

static FailureRetryAfterGC (AllocationSpace space)
 
static FailureRetryAfterGC ()
 
static FailureException ()
 
static FailureInternalError ()
 
static FailureOutOfMemoryException ()
 
static Failurecast (MaybeObject *object)
 

Detailed Description

Definition at line 1084 of file objects.h.

Member Enumeration Documentation

enum Type
Enumerator
RETRY_AFTER_GC 
EXCEPTION 
INTERNAL_ERROR 
OUT_OF_MEMORY_EXCEPTION 

Definition at line 1087 of file objects.h.

Member Function Documentation

AllocationSpace allocation_space ( ) const
inline
Failure * cast ( MaybeObject *  object)
inlinestatic
void FailurePrint ( )
inline

Definition at line 1112 of file objects.h.

Referenced by Object::ShortPrint().

void FailurePrint ( FILE *  out)

Definition at line 832 of file objects.cc.

References v8::internal::PrintF().

void FailurePrint ( StringStream accumulator)

Definition at line 827 of file objects.cc.

References StringStream::Add().

Failure * InternalError ( )
inlinestatic

Definition at line 1019 of file objects-inl.h.

References Failure::INTERNAL_ERROR.

Referenced by Heap::AllocateStruct(), and Object::ToObject().

bool IsInternalError ( ) const
inline

Definition at line 1002 of file objects-inl.h.

References Failure::INTERNAL_ERROR, and Failure::type().

Referenced by v8::internal::RUNTIME_FUNCTION().

bool IsOutOfMemoryException ( ) const
inline

Definition at line 1007 of file objects-inl.h.

References Failure::OUT_OF_MEMORY_EXCEPTION, and Failure::type().

Referenced by Isolate::is_out_of_memory().

Failure * RetryAfterGC ( AllocationSpace  space)
inlinestatic

Definition at line 1045 of file objects-inl.h.

References ASSERT, v8::internal::kSpaceTagMask, and Failure::RETRY_AFTER_GC.

Failure * RetryAfterGC ( )
inlinestatic

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