v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 1441 | skipping to change at line 1441 | |||
/** | /** | |||
* Returns an array containing the names of the enumerable properties | * Returns an array containing the names of the enumerable properties | |||
* of this object, including properties from prototype objects. The | * of this object, including properties from prototype objects. The | |||
* array returned by this method contains the same values as would | * array returned by this method contains the same values as would | |||
* be enumerated by a for-in statement over this object. | * be enumerated by a for-in statement over this object. | |||
*/ | */ | |||
V8EXPORT Local<Array> GetPropertyNames(); | V8EXPORT Local<Array> GetPropertyNames(); | |||
/** | /** | |||
* This function has the same functionality as GetPropertyNames but | ||||
* the returned array doesn't contain the names of properties from | ||||
* prototype objects. | ||||
*/ | ||||
V8EXPORT Local<Array> GetOwnPropertyNames(); | ||||
/** | ||||
* Get the prototype object. This does not skip objects marked to | * Get the prototype object. This does not skip objects marked to | |||
* be skipped by __proto__ and it does not consult the security | * be skipped by __proto__ and it does not consult the security | |||
* handler. | * handler. | |||
*/ | */ | |||
V8EXPORT Local<Value> GetPrototype(); | V8EXPORT Local<Value> GetPrototype(); | |||
/** | /** | |||
* Set the prototype object. This does not skip objects marked to | * Set the prototype object. This does not skip objects marked to | |||
* be skipped by __proto__ and it does not consult the security | * be skipped by __proto__ and it does not consult the security | |||
* handler. | * handler. | |||
skipping to change at line 3033 | skipping to change at line 3040 | |||
*/ | */ | |||
static void TerminateExecution(Isolate* isolate = NULL); | static void TerminateExecution(Isolate* isolate = NULL); | |||
/** | /** | |||
* Is V8 terminating JavaScript execution. | * Is V8 terminating JavaScript execution. | |||
* | * | |||
* Returns true if JavaScript execution is currently terminating | * Returns true if JavaScript execution is currently terminating | |||
* because of a call to TerminateExecution. In that case there are | * because of a call to TerminateExecution. In that case there are | |||
* still JavaScript frames on the stack and the termination | * still JavaScript frames on the stack and the termination | |||
* exception is still active. | * exception is still active. | |||
* | ||||
* \param isolate The isolate in which to check. | ||||
*/ | */ | |||
static bool IsExecutionTerminating(); | static bool IsExecutionTerminating(Isolate* isolate = NULL); | |||
/** | /** | |||
* Releases any resources used by v8 and stops any utility threads | * Releases any resources used by v8 and stops any utility threads | |||
* that may be running. Note that disposing v8 is permanent, it | * that may be running. Note that disposing v8 is permanent, it | |||
* cannot be reinitialized. | * cannot be reinitialized. | |||
* | * | |||
* It should generally not be necessary to dispose v8 before exiting | * It should generally not be necessary to dispose v8 before exiting | |||
* a process, this should happen automatically. It is only necessary | * a process, this should happen automatically. It is only necessary | |||
* to use if the process needs the resources taken up by v8. | * to use if the process needs the resources taken up by v8. | |||
*/ | */ | |||
skipping to change at line 3651 | skipping to change at line 3660 | |||
static const int kHeapObjectMapOffset = 0; | static const int kHeapObjectMapOffset = 0; | |||
static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSi ze; | static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSi ze; | |||
static const int kStringResourceOffset = | static const int kStringResourceOffset = | |||
InternalConstants<kApiPointerSize>::kStringResourceOffset; | InternalConstants<kApiPointerSize>::kStringResourceOffset; | |||
static const int kForeignAddressOffset = kApiPointerSize; | static const int kForeignAddressOffset = kApiPointerSize; | |||
static const int kJSObjectHeaderSize = 3 * kApiPointerSize; | static const int kJSObjectHeaderSize = 3 * kApiPointerSize; | |||
static const int kFullStringRepresentationMask = 0x07; | static const int kFullStringRepresentationMask = 0x07; | |||
static const int kExternalTwoByteRepresentationTag = 0x02; | static const int kExternalTwoByteRepresentationTag = 0x02; | |||
static const int kJSObjectType = 0xa2; | static const int kJSObjectType = 0xa3; | |||
static const int kFirstNonstringType = 0x80; | static const int kFirstNonstringType = 0x80; | |||
static const int kForeignType = 0x85; | static const int kForeignType = 0x85; | |||
static inline bool HasHeapObjectTag(internal::Object* value) { | static inline bool HasHeapObjectTag(internal::Object* value) { | |||
return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == | return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == | |||
kHeapObjectTag); | kHeapObjectTag); | |||
} | } | |||
static inline bool HasSmiTag(internal::Object* value) { | static inline bool HasSmiTag(internal::Object* value) { | |||
return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); | return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); | |||
End of changes. 4 change blocks. | ||||
2 lines changed or deleted | 11 lines changed or added | |||