v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 5159 | skipping to change at line 5159 | |||
* restored when the new context is exited. | * restored when the new context is exited. | |||
*/ | */ | |||
void Enter(); | void Enter(); | |||
/** | /** | |||
* Exit this context. Exiting the current context restores the | * Exit this context. Exiting the current context restores the | |||
* context that was in place when entering the current context. | * context that was in place when entering the current context. | |||
*/ | */ | |||
void Exit(); | void Exit(); | |||
/** Returns true if the context has experienced an out of memory situatio | /** | |||
n. */ | * Returns true if the context has experienced an out of memory situation | |||
bool HasOutOfMemoryException() { return false; } | . | |||
* Since V8 always treats OOM as fatal error, this can no longer return t | ||||
rue. | ||||
* Therefore this is now deprecated. | ||||
* */ | ||||
V8_DEPRECATED("This can no longer happen. OOM is a fatal error.", | ||||
bool HasOutOfMemoryException()) { return false; } | ||||
/** Returns an isolate associated with a current context. */ | /** Returns an isolate associated with a current context. */ | |||
v8::Isolate* GetIsolate(); | v8::Isolate* GetIsolate(); | |||
/** | /** | |||
* Gets the embedder data with the given index, which must have been set by a | * Gets the embedder data with the given index, which must have been set by a | |||
* previous call to SetEmbedderData with the same index. Note that index 0 | * previous call to SetEmbedderData with the same index. Note that index 0 | |||
* currently has a special meaning for Chrome's debugger. | * currently has a special meaning for Chrome's debugger. | |||
*/ | */ | |||
V8_INLINE Local<Value> GetEmbedderData(int index); | V8_INLINE Local<Value> GetEmbedderData(int index); | |||
skipping to change at line 5480 | skipping to change at line 5485 | |||
static const int kStringEncodingMask = 0x4; | static const int kStringEncodingMask = 0x4; | |||
static const int kExternalTwoByteRepresentationTag = 0x02; | static const int kExternalTwoByteRepresentationTag = 0x02; | |||
static const int kExternalAsciiRepresentationTag = 0x06; | static const int kExternalAsciiRepresentationTag = 0x06; | |||
static const int kIsolateEmbedderDataOffset = 0 * kApiPointerSize; | static const int kIsolateEmbedderDataOffset = 0 * kApiPointerSize; | |||
static const int kIsolateRootsOffset = 5 * kApiPointerSize; | static const int kIsolateRootsOffset = 5 * kApiPointerSize; | |||
static const int kUndefinedValueRootIndex = 5; | static const int kUndefinedValueRootIndex = 5; | |||
static const int kNullValueRootIndex = 7; | static const int kNullValueRootIndex = 7; | |||
static const int kTrueValueRootIndex = 8; | static const int kTrueValueRootIndex = 8; | |||
static const int kFalseValueRootIndex = 9; | static const int kFalseValueRootIndex = 9; | |||
static const int kEmptyStringRootIndex = 159; | static const int kEmptyStringRootIndex = 160; | |||
static const int kNodeClassIdOffset = 1 * kApiPointerSize; | static const int kNodeClassIdOffset = 1 * kApiPointerSize; | |||
static const int kNodeFlagsOffset = 1 * kApiPointerSize + 3; | static const int kNodeFlagsOffset = 1 * kApiPointerSize + 3; | |||
static const int kNodeStateMask = 0xf; | static const int kNodeStateMask = 0xf; | |||
static const int kNodeStateIsWeakValue = 2; | static const int kNodeStateIsWeakValue = 2; | |||
static const int kNodeStateIsPendingValue = 3; | static const int kNodeStateIsPendingValue = 3; | |||
static const int kNodeStateIsNearDeathValue = 4; | static const int kNodeStateIsNearDeathValue = 4; | |||
static const int kNodeIsIndependentShift = 4; | static const int kNodeIsIndependentShift = 4; | |||
static const int kNodeIsPartiallyDependentShift = 5; | static const int kNodeIsPartiallyDependentShift = 5; | |||
End of changes. 2 change blocks. | ||||
4 lines changed or deleted | 10 lines changed or added | |||