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

Unified Diff: src/api.cc

Issue 264333004: Introduce an api to query the microtask autorun state of an isolate (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « include/v8.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 8a99c278cb1da885fcda1f4ef5c34a0f3a6eef12..cbb4163c7c3db5308b0ca498d6a3971b28ab566e 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -6659,6 +6659,11 @@ void Isolate::SetAutorunMicrotasks(bool autorun) {
}
+bool Isolate::WillAutorunMicrotasks() const {
+ return reinterpret_cast<const i::Isolate*>(this)->autorun_microtasks();
+}
+
+
String::Utf8Value::Utf8Value(v8::Handle<v8::Value> obj)
: str_(NULL), length_(0) {
i::Isolate* isolate = i::Isolate::Current();
« no previous file with comments | « include/v8.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698