v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <objects.h>
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 Failure * | RetryAfterGC (AllocationSpace space) |
static Failure * | RetryAfterGC () |
static Failure * | Exception () |
static Failure * | InternalError () |
static Failure * | OutOfMemoryException () |
static Failure * | cast (MaybeObject *object) |
enum Type |
|
inline |
Definition at line 1012 of file objects-inl.h.
References ASSERT_EQ, v8::internal::kFailureTypeTagSize, v8::internal::kSpaceTagMask, Failure::RETRY_AFTER_GC, and Failure::type().
Referenced by Runtime::PerformGC().
|
inlinestatic |
Definition at line 496 of file objects-inl.h.
References ASSERT, and HAS_FAILURE_TAG.
Referenced by Isolate::is_out_of_memory(), Runtime::PerformGC(), v8::internal::RUNTIME_FUNCTION(), and Object::ShortPrint().
Definition at line 1024 of file objects-inl.h.
References Failure::EXCEPTION.
Referenced by JSProxy::DeletePropertyWithHandler(), PagedSpace::FindObject(), LargeObjectSpace::FindObject(), Runtime::ForceDeleteObjectProperty(), Runtime::ForceSetObjectProperty(), Runtime::GetObjectProperty(), Object::GetPropertyWithDefinedGetter(), JSProxy::GetPropertyWithHandler(), Isolate::ReThrow(), v8::internal::RUNTIME_FUNCTION(), Runtime::SetObjectProperty(), JSProxy::SetPropertyViaPrototypesWithHandler(), JSReceiver::SetPropertyWithDefinedSetter(), JSProxy::SetPropertyWithHandler(), Isolate::StackOverflow(), Isolate::TerminateExecution(), TEST(), Isolate::Throw(), and Object::ToSmi().
|
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().
|
inlinestatic |
Definition at line 1019 of file objects-inl.h.
References Failure::INTERNAL_ERROR.
Referenced by Heap::AllocateStruct(), and Object::ToObject().
|
inline |
Definition at line 1002 of file objects-inl.h.
References Failure::INTERNAL_ERROR, and Failure::type().
Referenced by v8::internal::RUNTIME_FUNCTION().
|
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().
|
inlinestatic |
Definition at line 1029 of file objects-inl.h.
References Failure::OUT_OF_MEMORY_EXCEPTION.
Referenced by HashTable< Shape, Key >::Allocate(), Heap::AllocateAsciiSymbol(), Heap::AllocateByteArray(), Heap::AllocateConsString(), Heap::AllocateExternalStringFromAscii(), Heap::AllocateExternalStringFromTwoByte(), Heap::AllocateInternalSymbol(), Heap::AllocateRawAsciiString(), Heap::AllocateRawFixedArray(), Heap::AllocateRawFixedDoubleArray(), Heap::AllocateRawTwoByteString(), Heap::AllocateTwoByteSymbol(), Isolate::is_catchable_by_javascript(), Isolate::ReportPendingMessages(), and v8::internal::RUNTIME_FUNCTION().
|
inlinestatic |
Definition at line 1045 of file objects-inl.h.
References ASSERT, v8::internal::kSpaceTagMask, and Failure::RETRY_AFTER_GC.
|
inlinestatic |
Definition at line 1040 of file objects-inl.h.
References v8::internal::NEW_SPACE.
Referenced by Heap::AllocateRaw(), PagedSpace::AllocateRaw(), LargeObjectSpace::AllocateRaw(), and TEST().
|
inline |
Definition at line 997 of file objects-inl.h.
References v8::internal::kFailureTypeTagMask.
Referenced by Failure::allocation_space(), Failure::IsInternalError(), and Failure::IsOutOfMemoryException().