| Index: src/v8natives.js
|
| diff --git a/src/v8natives.js b/src/v8natives.js
|
| index 46dfab41b86c286a1661c26142cb45a91edf2355..1a50a84672e0067f442130cb5b7c21b147ad043a 100644
|
| --- a/src/v8natives.js
|
| +++ b/src/v8natives.js
|
| @@ -1862,34 +1862,3 @@ function SetUpFunction() {
|
| }
|
|
|
| SetUpFunction();
|
| -
|
| -
|
| -//----------------------------------------------------------------------------
|
| -
|
| -// TODO(rossberg): very simple abstraction for generic microtask queue.
|
| -// Eventually, we should move to a real event queue that allows to maintain
|
| -// relative ordering of different kinds of tasks.
|
| -
|
| -function RunMicrotasksJS() {
|
| - while (%SetMicrotaskPending(false)) {
|
| - var microtaskState = %GetMicrotaskState();
|
| - if (IS_UNDEFINED(microtaskState.queue))
|
| - return;
|
| -
|
| - var microtasks = microtaskState.queue;
|
| - microtaskState.queue = null;
|
| -
|
| - for (var i = 0; i < microtasks.length; i++) {
|
| - microtasks[i]();
|
| - }
|
| - }
|
| -}
|
| -
|
| -function EnqueueMicrotask(fn) {
|
| - var microtaskState = %GetMicrotaskState();
|
| - if (IS_UNDEFINED(microtaskState.queue) || IS_NULL(microtaskState.queue)) {
|
| - microtaskState.queue = new InternalArray;
|
| - }
|
| - microtaskState.queue.push(fn);
|
| - %SetMicrotaskPending(true);
|
| -}
|
|
|