Revision: 21250
Author:   [email protected]
Date:     Mon May 12 06:27:38 2014 UTC
Log: Introduce an api to query the microtask autorun state of an isolate

BUG=none
[email protected], [email protected]
LOG=y

Review URL: https://codereview.chromium.org/264333004
http://code.google.com/p/v8/source/detail?r=21250

Modified:
 /branches/bleeding_edge/include/v8.h
 /branches/bleeding_edge/src/api.cc

=======================================
--- /branches/bleeding_edge/include/v8.h        Fri May  9 17:59:15 2014 UTC
+++ /branches/bleeding_edge/include/v8.h        Mon May 12 06:27:38 2014 UTC
@@ -4393,6 +4393,12 @@
    */
   void SetAutorunMicrotasks(bool autorun);

+  /**
+ * Experimental: Returns whether the Microtask Work Queue is automatically
+   * run when the script call depth decrements to zero.
+   */
+  bool WillAutorunMicrotasks() const;
+
  private:
   template<class K, class V, class Traits> friend class PersistentValueMap;

=======================================
--- /branches/bleeding_edge/src/api.cc  Fri May  9 18:31:08 2014 UTC
+++ /branches/bleeding_edge/src/api.cc  Mon May 12 06:27:38 2014 UTC
@@ -6657,6 +6657,11 @@
 void Isolate::SetAutorunMicrotasks(bool autorun) {
   reinterpret_cast<i::Isolate*>(this)->set_autorun_microtasks(autorun);
 }
+
+
+bool Isolate::WillAutorunMicrotasks() const {
+  return reinterpret_cast<const i::Isolate*>(this)->autorun_microtasks();
+}


 String::Utf8Value::Utf8Value(v8::Handle<v8::Value> obj)

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to