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

Unified Diff: src/isolate.h

Issue 2642293002: Add Isolate parameter to disallow Atomics.wait (Closed)
Patch Set: update bytecode_expectations Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/api.cc ('k') | src/messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index 441d995d69d47cb6921ef2d2756ea2ba1d8ea4a4..d008b265a6ada80622d0dec4dc28e5790f2d747f 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -1194,6 +1194,9 @@ class Isolate {
base::Mutex* simulator_i_cache_mutex() { return &simulator_i_cache_mutex_; }
#endif
+ void set_allow_atomics_wait(bool set) { allow_atomics_wait_ = set; }
+ bool allow_atomics_wait() { return allow_atomics_wait_; }
+
protected:
explicit Isolate(bool enable_serializer);
bool IsArrayOrObjectPrototype(Object* object);
@@ -1472,6 +1475,8 @@ class Isolate {
base::Mutex simulator_i_cache_mutex_;
#endif
+ bool allow_atomics_wait_;
+
friend class ExecutionAccess;
friend class HandleScopeImplementer;
friend class HeapTester;
« no previous file with comments | « src/api.cc ('k') | src/messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698