Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(605)

Unified Diff: src/v8natives.js

Issue 290633010: Move microtask queueing logic from JavaScript to C++ (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Handle comments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
-}
« no previous file with comments | « src/runtime.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698