v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 4472 | skipping to change at line 4472 | |||
* further callbacks. | * further callbacks. | |||
*/ | */ | |||
static void AddCallCompletedCallback(CallCompletedCallback callback); | static void AddCallCompletedCallback(CallCompletedCallback callback); | |||
/** | /** | |||
* Removes callback that was installed by AddCallCompletedCallback. | * Removes callback that was installed by AddCallCompletedCallback. | |||
*/ | */ | |||
static void RemoveCallCompletedCallback(CallCompletedCallback callback); | static void RemoveCallCompletedCallback(CallCompletedCallback callback); | |||
/** | /** | |||
* Experimental: Runs the Microtask Work Queue until empty | ||||
*/ | ||||
static void RunMicrotasks(Isolate* isolate); | ||||
/** | ||||
* Experimental: Enqueues the callback to the Microtask Work Queue | ||||
*/ | ||||
static void EnqueueMicrotask(Isolate* isolate, Handle<Function> microtask | ||||
); | ||||
/** | ||||
* Experimental: Controls whether the Microtask Work Queue is automatical | ||||
ly | ||||
* run when the script call depth decrements to zero. | ||||
*/ | ||||
static void SetAutorunMicrotasks(Isolate *source, bool autorun); | ||||
/** | ||||
* Initializes from snapshot if possible. Otherwise, attempts to | * Initializes from snapshot if possible. Otherwise, attempts to | |||
* initialize from scratch. This function is called implicitly if | * initialize from scratch. This function is called implicitly if | |||
* you use the API without calling it first. | * you use the API without calling it first. | |||
*/ | */ | |||
static bool Initialize(); | static bool Initialize(); | |||
/** | /** | |||
* Allows the host application to provide a callback which can be used | * Allows the host application to provide a callback which can be used | |||
* as a source of entropy for random number generators. | * as a source of entropy for random number generators. | |||
*/ | */ | |||
skipping to change at line 5280 | skipping to change at line 5296 | |||
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 = 147; | static const int kEmptyStringRootIndex = 148; | |||
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. | ||||
1 lines changed or deleted | 19 lines changed or added | |||