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

Unified Diff: src/isolate.cc

Issue 263933002: Introduce a microtask suppression scope and move microtask methods to isolate (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 8 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/isolate.h ('k') | src/v8.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 72df9b4b2b131794190e025049fe65f4e8e51362..82ad5fc8bd9ce4b242a1f4818d804418b31a4e89 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -2252,4 +2252,17 @@ void Isolate::FireCallCompletedCallback() {
}
+void Isolate::RunMicrotasks() {
+ if (!microtask_pending())
+ return;
+
+ ASSERT(handle_scope_implementer()->CallDepthIsZero());
+
+ // Increase call depth to prevent recursive callbacks.
+ handle_scope_implementer()->IncrementCallDepth();
+ Execution::RunMicrotasks(this);
+ handle_scope_implementer()->DecrementCallDepth();
+}
+
+
} } // namespace v8::internal
« no previous file with comments | « src/isolate.h ('k') | src/v8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698