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

Unified Diff: src/d8.cc

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/contexts.h ('k') | src/factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index 7a300efe0ee621f79b4621a903913b0d9149449a..a5ac840435ff027b73f72a0b3d77c798d63ce9b8 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -229,6 +229,7 @@ ScriptCompiler::CachedData* CompileForCachedData(
ShellArrayBufferAllocator allocator;
Isolate::CreateParams create_params;
create_params.array_buffer_allocator = &allocator;
+ create_params.shared_array_buffer_allocator = &allocator;
Isolate* temp_isolate = Isolate::New(create_params);
ScriptCompiler::CachedData* result = NULL;
{
@@ -1324,6 +1325,7 @@ void SourceGroup::ExecuteInThread() {
ShellArrayBufferAllocator allocator;
Isolate::CreateParams create_params;
create_params.array_buffer_allocator = &allocator;
+ create_params.shared_array_buffer_allocator = &allocator;
Isolate* isolate = Isolate::New(create_params);
do {
next_semaphore_.Wait();
@@ -1655,8 +1657,10 @@ int Shell::Main(int argc, char* argv[]) {
MockArrayBufferAllocator mock_arraybuffer_allocator;
if (options.mock_arraybuffer_allocator) {
create_params.array_buffer_allocator = &mock_arraybuffer_allocator;
+ create_params.shared_array_buffer_allocator = &mock_arraybuffer_allocator;
} else {
create_params.array_buffer_allocator = &array_buffer_allocator;
+ create_params.shared_array_buffer_allocator = &array_buffer_allocator;
}
#if !defined(V8_SHARED) && defined(ENABLE_GDB_JIT_INTERFACE)
if (i::FLAG_gdbjit) {
« no previous file with comments | « src/contexts.h ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698