From cf8327994db39d1f9ac864cc7a21770a0bf4f948 Mon Sep 17 00:00:00 2001 From: "jochen@chromium.org" Date: Mon, 12 May 2014 07:41:06 +0000 Subject: [PATCH] Drop unused static microtask API BUG=none LOG=y R=svenpanne@chromium.org Review URL: https://codereview.chromium.org/261413003 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21251 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- include/v8.h | 22 ---------------------- src/api.cc | 15 --------------- 2 files changed, 37 deletions(-) diff --git a/include/v8.h b/include/v8.h index 45b107f..e089b41 100644 --- a/include/v8.h +++ b/include/v8.h @@ -4761,28 +4761,6 @@ class V8_EXPORT V8 { 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 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. diff --git a/src/api.cc b/src/api.cc index 8b161bc..7f1276d 100644 --- a/src/api.cc +++ b/src/api.cc @@ -6447,21 +6447,6 @@ void V8::RemoveMemoryAllocationCallback(MemoryAllocationCallback callback) { } -void V8::RunMicrotasks(Isolate* isolate) { - isolate->RunMicrotasks(); -} - - -void V8::EnqueueMicrotask(Isolate* isolate, Handle 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(isolate); i_isolate->stack_guard()->RequestTerminateExecution(); -- 2.7.4