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

Side by Side Diff: include/v8.h

Issue 620673005: Introduce HasPendingMicrotasks API. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 4811 matching lines...) Expand 10 before | Expand all | Expand 10 after
4822 */ 4822 */
4823 void SetAutorunMicrotasks(bool autorun); 4823 void SetAutorunMicrotasks(bool autorun);
4824 4824
4825 /** 4825 /**
4826 * Experimental: Returns whether the Microtask Work Queue is automatically 4826 * Experimental: Returns whether the Microtask Work Queue is automatically
4827 * run when the script call depth decrements to zero. 4827 * run when the script call depth decrements to zero.
4828 */ 4828 */
4829 bool WillAutorunMicrotasks() const; 4829 bool WillAutorunMicrotasks() const;
4830 4830
4831 /** 4831 /**
4832 * Experimental: Returns whether the Microtask Work Queue has any more
4833 * callbacks to run, not including the one that is currently being executed,
4834 * if any.
4835 */
4836 bool HasPendingMicrotasks() const;
4837
4838 /**
4832 * Sets a callback for counting the number of times a feature of V8 is used. 4839 * Sets a callback for counting the number of times a feature of V8 is used.
4833 */ 4840 */
4834 void SetUseCounterCallback(UseCounterCallback callback); 4841 void SetUseCounterCallback(UseCounterCallback callback);
4835 4842
4836 /** 4843 /**
4837 * Enables the host application to provide a mechanism for recording 4844 * Enables the host application to provide a mechanism for recording
4838 * statistics counters. 4845 * statistics counters.
4839 */ 4846 */
4840 void SetCounterFunction(CounterLookupCallback); 4847 void SetCounterFunction(CounterLookupCallback);
4841 4848
(...skipping 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after
7041 */ 7048 */
7042 7049
7043 7050
7044 } // namespace v8 7051 } // namespace v8
7045 7052
7046 7053
7047 #undef TYPE_CHECK 7054 #undef TYPE_CHECK
7048 7055
7049 7056
7050 #endif // V8_H_ 7057 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698