| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index c4d3f251c318173946ab614ff661c3da679eb6fa..34edd0a7419ad64f56c875aca0298d3b9f79c8b1 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -934,6 +934,7 @@ class MaybeObject BASE_EMBEDDED {
|
| public:
|
| inline bool IsFailure();
|
| inline bool IsRetryAfterGC();
|
| + inline bool IsOutOfMemory();
|
| inline bool IsException();
|
| INLINE(bool IsTheHole());
|
| INLINE(bool IsUninitialized());
|
| @@ -1727,11 +1728,15 @@ class Failure: public MaybeObject {
|
| inline AllocationSpace allocation_space() const;
|
|
|
| inline bool IsInternalError() const;
|
| + inline bool IsOutOfMemoryException() const;
|
|
|
| static inline Failure* RetryAfterGC(AllocationSpace space);
|
| static inline Failure* RetryAfterGC(); // NEW_SPACE
|
| static inline Failure* Exception();
|
| static inline Failure* InternalError();
|
| + // TODO(jkummerow): The value is temporary instrumentation. Remove it
|
| + // when it has served its purpose.
|
| + static inline Failure* OutOfMemoryException(intptr_t value);
|
| // Casting.
|
| static inline Failure* cast(MaybeObject* object);
|
|
|
|
|