v8.h   v8.h 
skipping to change at line 4012 skipping to change at line 4012
void* internal_throws_; void* internal_throws_;
void* internal_assert_; void* internal_assert_;
// Prevent copying of Scope objects. // Prevent copying of Scope objects.
AllowJavascriptExecutionScope(const AllowJavascriptExecutionScope&); AllowJavascriptExecutionScope(const AllowJavascriptExecutionScope&);
AllowJavascriptExecutionScope& operator=( AllowJavascriptExecutionScope& operator=(
const AllowJavascriptExecutionScope&); const AllowJavascriptExecutionScope&);
}; };
/** /**
* Do not run microtasks while this scope is active, even if microtasks a
re
* automatically executed otherwise.
*/
class V8_EXPORT SuppressMicrotaskExecutionScope {
public:
explicit SuppressMicrotaskExecutionScope(Isolate* isolate);
~SuppressMicrotaskExecutionScope();
private:
internal::Isolate* isolate_;
// Prevent copying of Scope objects.
SuppressMicrotaskExecutionScope(const SuppressMicrotaskExecutionScope&)
;
SuppressMicrotaskExecutionScope& operator=(
const SuppressMicrotaskExecutionScope&);
};
/**
* Types of garbage collections that can be requested via * Types of garbage collections that can be requested via
* RequestGarbageCollectionForTesting. * RequestGarbageCollectionForTesting.
*/ */
enum GarbageCollectionType { enum GarbageCollectionType {
kFullGarbageCollection, kFullGarbageCollection,
kMinorGarbageCollection kMinorGarbageCollection
}; };
/** /**
* Creates a new isolate. Does not change the currently entered * Creates a new isolate. Does not change the currently entered
skipping to change at line 4260 skipping to change at line 4278
* execution ends. Executing scripts inside the callback do not trigger * execution ends. Executing scripts inside the callback do not trigger
* further callbacks. * further callbacks.
*/ */
void AddCallCompletedCallback(CallCompletedCallback callback); void AddCallCompletedCallback(CallCompletedCallback callback);
/** /**
* Removes callback that was installed by AddCallCompletedCallback. * Removes callback that was installed by AddCallCompletedCallback.
*/ */
void RemoveCallCompletedCallback(CallCompletedCallback callback); void RemoveCallCompletedCallback(CallCompletedCallback callback);
/**
* Experimental: Runs the Microtask Work Queue until empty
*/
void RunMicrotasks();
/**
* Experimental: Enqueues the callback to the Microtask Work Queue
*/
void EnqueueMicrotask(Handle<Function> microtask);
/**
* Experimental: Controls whether the Microtask Work Queue is automatical
ly
* run when the script call depth decrements to zero.
*/
void SetAutorunMicrotasks(bool autorun);
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 4614 skipping to change at line 4648
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 * Experimental: Runs the Microtask Work Queue until empty
*
* Deprecated: Use methods on Isolate instead.
*/ */
static void RunMicrotasks(Isolate* isolate); static void RunMicrotasks(Isolate* isolate);
/** /**
* Experimental: Enqueues the callback to the Microtask Work Queue * Experimental: Enqueues the callback to the Microtask Work Queue
*
* Deprecated: Use methods on Isolate instead.
*/ */
static void EnqueueMicrotask(Isolate* isolate, Handle<Function> microtask ); static void EnqueueMicrotask(Isolate* isolate, 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.
*
* Deprecated: Use methods on Isolate instead.
*/ */
static void SetAutorunMicrotasks(Isolate *source, bool autorun); 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();
 End of changes. 5 change blocks. 
0 lines changed or deleted 43 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/