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

Unified Diff: src/v8natives.js

Issue 150103012: Revert "Implement Microtask Delivery Queue" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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/cctest.gyp » ('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 24b0c51c19f6b2c43a025e09003d9174ef6cb0fd..df663c025e927a79222e031ab8eee14d004f67a8 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -1889,15 +1889,10 @@ SetUpFunction();
// Eventually, we should move to a real event queue that allows to maintain
// relative ordering of different kinds of tasks.
-RunMicrotasks.queue = new InternalArray;
+RunMicrotasks.runners = new InternalArray;
function RunMicrotasks() {
while (%SetMicrotaskPending(false)) {
- var microtasks = RunMicrotasks.queue;
- RunMicrotasks.queue = new InternalArray;
-
- for (var i = 0; i < microtasks.length; i++) {
- microtasks[i]();
- }
+ for (var i in RunMicrotasks.runners) RunMicrotasks.runners[i]();
}
}
« no previous file with comments | « src/runtime.cc ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698