v8  3.25.30(node0.11.13)
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
 
void FailurePrint (FILE *out=stdout)
 
void FailurePrint (StringStream *accumulator)
 

Static Public Member Functions

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

Detailed Description

Definition at line 1715 of file objects.h.

Member Enumeration Documentation

enum Type
Enumerator
RETRY_AFTER_GC 
EXCEPTION 
INTERNAL_ERROR 
OUT_OF_MEMORY_EXCEPTION 

Definition at line 1718 of file objects.h.

Member Function Documentation

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

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

References ASSERT, HAS_FAILURE_TAG, and obj.

Referenced by Runtime::PerformGC(), v8::internal::RUNTIME_FUNCTION(), and Object::ShortPrint().

void FailurePrint ( FILE *  out = stdout)

Definition at line 1157 of file objects.cc.

References v8::internal::PrintF().

Referenced by Object::ShortPrint().

void FailurePrint ( StringStream accumulator)

Definition at line 1152 of file objects.cc.

References StringStream::Add().

Failure * InternalError ( )
inlinestatic

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

References Failure::INTERNAL_ERROR.

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

bool IsInternalError ( ) const
inline

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

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

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

Failure * RetryAfterGC ( AllocationSpace  space)
inlinestatic

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

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

Failure * RetryAfterGC ( )
inlinestatic
Failure::Type type ( ) const
inline

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