v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 4292 | skipping to change at line 4292 | |||
* Experimental: Enqueues the callback to the Microtask Work Queue | * Experimental: Enqueues the callback to the Microtask Work Queue | |||
*/ | */ | |||
void EnqueueMicrotask(Handle<Function> microtask); | void EnqueueMicrotask(Handle<Function> microtask); | |||
/** | /** | |||
* Experimental: Controls whether the Microtask Work Queue is automatical ly | * Experimental: Controls whether the Microtask Work Queue is automatical ly | |||
* run when the script call depth decrements to zero. | * run when the script call depth decrements to zero. | |||
*/ | */ | |||
void SetAutorunMicrotasks(bool autorun); | void SetAutorunMicrotasks(bool autorun); | |||
/** | ||||
* Experimental: Returns whether the Microtask Work Queue is automaticall | ||||
y | ||||
* run when the script call depth decrements to zero. | ||||
*/ | ||||
bool WillAutorunMicrotasks() const; | ||||
private: | private: | |||
template<class K, class V, class Traits> friend class PersistentValueMap; | template<class K, class V, class Traits> friend class PersistentValueMap; | |||
Isolate(); | Isolate(); | |||
Isolate(const Isolate&); | Isolate(const Isolate&); | |||
~Isolate(); | ~Isolate(); | |||
Isolate& operator=(const Isolate&); | Isolate& operator=(const Isolate&); | |||
void* operator new(size_t size); | void* operator new(size_t size); | |||
void operator delete(void*, size_t); | void operator delete(void*, size_t); | |||
skipping to change at line 4645 | skipping to change at line 4651 | |||
static void AddMemoryAllocationCallback(MemoryAllocationCallback callback , | static void AddMemoryAllocationCallback(MemoryAllocationCallback callback , | |||
ObjectSpace space, | ObjectSpace space, | |||
AllocationAction action); | AllocationAction action); | |||
/** | /** | |||
* Removes callback that was installed by AddMemoryAllocationCallback. | * Removes callback that was installed by AddMemoryAllocationCallback. | |||
*/ | */ | |||
static void RemoveMemoryAllocationCallback(MemoryAllocationCallback callb ack); | static void RemoveMemoryAllocationCallback(MemoryAllocationCallback callb ack); | |||
/** | /** | |||
* Experimental: Runs the Microtask Work Queue until empty | ||||
* | ||||
* Deprecated: Use methods on Isolate instead. | ||||
*/ | ||||
static void RunMicrotasks(Isolate* isolate); | ||||
/** | ||||
* Experimental: Enqueues the callback to the Microtask Work Queue | ||||
* | ||||
* Deprecated: Use methods on Isolate instead. | ||||
*/ | ||||
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. | ||||
* | ||||
* Deprecated: Use methods on Isolate instead. | ||||
*/ | ||||
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. | |||
*/ | */ | |||
End of changes. 2 change blocks. | ||||
24 lines changed or deleted | 7 lines changed or added | |||