OLD | NEW |
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 5122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5133 /** | 5133 /** |
5134 * Runs microtasks if no kRunMicrotasks scope is currently active. | 5134 * Runs microtasks if no kRunMicrotasks scope is currently active. |
5135 */ | 5135 */ |
5136 static void PerformCheckpoint(Isolate* isolate); | 5136 static void PerformCheckpoint(Isolate* isolate); |
5137 | 5137 |
5138 /** | 5138 /** |
5139 * Returns current depth of nested kRunMicrotasks scopes. | 5139 * Returns current depth of nested kRunMicrotasks scopes. |
5140 */ | 5140 */ |
5141 static int GetCurrentDepth(Isolate* isolate); | 5141 static int GetCurrentDepth(Isolate* isolate); |
5142 | 5142 |
| 5143 /** |
| 5144 * Returns true while microtasks are being executed. |
| 5145 */ |
| 5146 static bool IsRunningMicrotasks(Isolate* isolate); |
| 5147 |
5143 private: | 5148 private: |
5144 internal::Isolate* const isolate_; | 5149 internal::Isolate* const isolate_; |
5145 bool run_; | 5150 bool run_; |
5146 | 5151 |
5147 // Prevent copying. | 5152 // Prevent copying. |
5148 MicrotasksScope(const MicrotasksScope&); | 5153 MicrotasksScope(const MicrotasksScope&); |
5149 MicrotasksScope& operator=(const MicrotasksScope&); | 5154 MicrotasksScope& operator=(const MicrotasksScope&); |
5150 }; | 5155 }; |
5151 | 5156 |
5152 | 5157 |
(...skipping 3618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8771 */ | 8776 */ |
8772 | 8777 |
8773 | 8778 |
8774 } // namespace v8 | 8779 } // namespace v8 |
8775 | 8780 |
8776 | 8781 |
8777 #undef TYPE_CHECK | 8782 #undef TYPE_CHECK |
8778 | 8783 |
8779 | 8784 |
8780 #endif // INCLUDE_V8_H_ | 8785 #endif // INCLUDE_V8_H_ |
OLD | NEW |