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

Unified Diff: src/isolate.h

Issue 1069883002: WIP SharedArrayBuffer implementation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: merge master Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/hydrogen.cc ('k') | src/macros.py » ('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 ae38e71c7b8e2e07dd906bbec4666a7af2aefc1a..112dd4d5dc3b9c878107dcbd3e4ce4c30bbc1e0a 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -1150,6 +1150,14 @@ class Isolate {
return array_buffer_allocator_;
}
+ void set_shared_array_buffer_allocator(
+ v8::ArrayBuffer::Allocator* allocator) {
+ shared_array_buffer_allocator_ = allocator;
+ }
+ v8::ArrayBuffer::Allocator* shared_array_buffer_allocator() {
+ return shared_array_buffer_allocator_;
+ }
+
protected:
explicit Isolate(bool enable_serializer);
@@ -1379,6 +1387,7 @@ class Isolate {
List<Object*> partial_snapshot_cache_;
v8::ArrayBuffer::Allocator* array_buffer_allocator_;
+ v8::ArrayBuffer::Allocator* shared_array_buffer_allocator_;
friend class ExecutionAccess;
friend class HandleScopeImplementer;
« no previous file with comments | « src/hydrogen.cc ('k') | src/macros.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698