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

Side by Side Diff: include/v8.h

Issue 2829223002: Add setter to Isolate for allowing Atomics.wait (Closed)
Patch Set: add test Created 3 years, 8 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
« 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 6601 matching lines...) Expand 10 before | Expand all | Expand 10 after
6612 /** 6612 /**
6613 * Specifies an optional nullptr-terminated array of raw addresses in the 6613 * Specifies an optional nullptr-terminated array of raw addresses in the
6614 * embedder that V8 can match against during serialization and use for 6614 * embedder that V8 can match against during serialization and use for
6615 * deserialization. This array and its content must stay valid for the 6615 * deserialization. This array and its content must stay valid for the
6616 * entire lifetime of the isolate. 6616 * entire lifetime of the isolate.
6617 */ 6617 */
6618 intptr_t* external_references; 6618 intptr_t* external_references;
6619 6619
6620 /** 6620 /**
6621 * Whether calling Atomics.wait (a function that may block) is allowed in 6621 * Whether calling Atomics.wait (a function that may block) is allowed in
6622 * this isolate. 6622 * this isolate. This can also be configured via SetAllowAtomicsWait.
6623 */ 6623 */
6624 bool allow_atomics_wait; 6624 bool allow_atomics_wait;
6625 6625
6626 /** 6626 /**
6627 * This is an unfinished experimental feature, and is only exposed 6627 * This is an unfinished experimental feature, and is only exposed
6628 * here for internal testing purposes. DO NOT USE. 6628 * here for internal testing purposes. DO NOT USE.
6629 * 6629 *
6630 * This specifies the callback called by the upcoming dynamic 6630 * This specifies the callback called by the upcoming dynamic
6631 * import() language feature to load modules. 6631 * import() language feature to load modules.
6632 */ 6632 */
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
7472 * pending activity for the handle. 7472 * pending activity for the handle.
7473 */ 7473 */
7474 void VisitWeakHandles(PersistentHandleVisitor* visitor); 7474 void VisitWeakHandles(PersistentHandleVisitor* visitor);
7475 7475
7476 /** 7476 /**
7477 * Check if this isolate is in use. 7477 * Check if this isolate is in use.
7478 * True if at least one thread Enter'ed this isolate. 7478 * True if at least one thread Enter'ed this isolate.
7479 */ 7479 */
7480 bool IsInUse(); 7480 bool IsInUse();
7481 7481
7482 /**
7483 * Set whether calling Atomics.wait (a function that may block) is allowed in
7484 * this isolate. This can also be configured via
7485 * CreateParams::allow_atomics_wait.
7486 */
7487 void SetAllowAtomicsWait(bool allow);
7488
7482 Isolate() = delete; 7489 Isolate() = delete;
7483 ~Isolate() = delete; 7490 ~Isolate() = delete;
7484 Isolate(const Isolate&) = delete; 7491 Isolate(const Isolate&) = delete;
7485 Isolate& operator=(const Isolate&) = delete; 7492 Isolate& operator=(const Isolate&) = delete;
7486 void* operator new(size_t size) = delete; 7493 void* operator new(size_t size) = delete;
7487 void operator delete(void*, size_t) = delete; 7494 void operator delete(void*, size_t) = delete;
7488 7495
7489 private: 7496 private:
7490 template <class K, class V, class Traits> 7497 template <class K, class V, class Traits>
7491 friend class PersistentValueMapBase; 7498 friend class PersistentValueMapBase;
(...skipping 2580 matching lines...) Expand 10 before | Expand all | Expand 10 after
10072 */ 10079 */
10073 10080
10074 10081
10075 } // namespace v8 10082 } // namespace v8
10076 10083
10077 10084
10078 #undef TYPE_CHECK 10085 #undef TYPE_CHECK
10079 10086
10080 10087
10081 #endif // INCLUDE_V8_H_ 10088 #endif // INCLUDE_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