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

Unified Diff: src/execution.cc

Issue 64223010: Harmony promises (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: TODO addressing Elliott's comment Created 7 years, 1 month 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/execution.h ('k') | src/flag-definitions.h » ('j') | src/promise.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/execution.cc
diff --git a/src/execution.cc b/src/execution.cc
index 979641a9de53c1cd7ebfce9be9bf069699b0fe9f..b398e0eb1847c952acded8864aeb90206c4d2ed4 100644
--- a/src/execution.cc
+++ b/src/execution.cc
@@ -354,6 +354,20 @@ Handle<Object> Execution::TryGetConstructorDelegate(
}
+void Execution::RunMicrotasks(Isolate* isolate) {
+ ASSERT(isolate->microtasks_pending());
+ bool threw = false;
+ Execution::Call(
+ isolate,
+ isolate->run_microtasks(),
+ isolate->factory()->undefined_value(),
+ 0,
+ NULL,
+ &threw);
+ ASSERT(!threw);
+}
+
+
bool StackGuard::IsStackOverflow() {
ExecutionAccess access(isolate_);
return (thread_local_.jslimit_ != kInterruptLimit &&
« no previous file with comments | « src/execution.h ('k') | src/flag-definitions.h » ('j') | src/promise.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698