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

Side by Side Diff: include/v8.h

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 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 4371 matching lines...) Expand 10 before | Expand all | Expand 10 after
4382 * Experimental: Enqueues the callback to the Microtask Work Queue 4382 * Experimental: Enqueues the callback to the Microtask Work Queue
4383 */ 4383 */
4384 void EnqueueMicrotask(Handle<Function> microtask); 4384 void EnqueueMicrotask(Handle<Function> microtask);
4385 4385
4386 /** 4386 /**
4387 * Experimental: Controls whether the Microtask Work Queue is automatically 4387 * Experimental: Controls whether the Microtask Work Queue is automatically
4388 * run when the script call depth decrements to zero. 4388 * run when the script call depth decrements to zero.
4389 */ 4389 */
4390 void SetAutorunMicrotasks(bool autorun); 4390 void SetAutorunMicrotasks(bool autorun);
4391 4391
4392 /**
4393 * Experimental: Returns whether the Microtask Work Queue is automatically
4394 * run when the script call depth decrements to zero.
4395 */
4396 bool WillAutorunMicrotasks() const;
4397
4392 private: 4398 private:
4393 template<class K, class V, class Traits> friend class PersistentValueMap; 4399 template<class K, class V, class Traits> friend class PersistentValueMap;
4394 4400
4395 Isolate(); 4401 Isolate();
4396 Isolate(const Isolate&); 4402 Isolate(const Isolate&);
4397 ~Isolate(); 4403 ~Isolate();
4398 Isolate& operator=(const Isolate&); 4404 Isolate& operator=(const Isolate&);
4399 void* operator new(size_t size); 4405 void* operator new(size_t size);
4400 void operator delete(void*, size_t); 4406 void operator delete(void*, size_t);
4401 4407
(...skipping 2221 matching lines...) Expand 10 before | Expand all | Expand 10 after
6623 */ 6629 */
6624 6630
6625 6631
6626 } // namespace v8 6632 } // namespace v8
6627 6633
6628 6634
6629 #undef TYPE_CHECK 6635 #undef TYPE_CHECK
6630 6636
6631 6637
6632 #endif // V8_H_ 6638 #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