static void RemoveMemoryAllocationCallback(MemoryAllocationCallback callback);
/**
- * 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 automatically
- * 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
* initialize from scratch. This function is called implicitly if
* you use the API without calling it first.
}
-void V8::RunMicrotasks(Isolate* isolate) {
- isolate->RunMicrotasks();
-}
-
-
-void V8::EnqueueMicrotask(Isolate* isolate, Handle<Function> microtask) {
- isolate->EnqueueMicrotask(microtask);
-}
-
-
-void V8::SetAutorunMicrotasks(Isolate* isolate, bool autorun) {
- isolate->SetAutorunMicrotasks(autorun);
-}
-
-
void V8::TerminateExecution(Isolate* isolate) {
i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
i_isolate->stack_guard()->RequestTerminateExecution();