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

Unified Diff: Source/bindings/core/v8/V8Initializer.cpp

Issue 1097773004: Sharing of SharedArrayBuffer via PostMessage transfer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: . Created 5 years, 6 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
Index: Source/bindings/core/v8/V8Initializer.cpp
diff --git a/Source/bindings/core/v8/V8Initializer.cpp b/Source/bindings/core/v8/V8Initializer.cpp
index 874d0f1c3ff5454281e787edf3b29145e529d17b..ec28b7a42b0433a0e8cda067ebd9d9b96de4adf5 100644
--- a/Source/bindings/core/v8/V8Initializer.cpp
+++ b/Source/bindings/core/v8/V8Initializer.cpp
@@ -359,6 +359,12 @@ static void initializeV8Common(v8::Isolate* isolate)
v8::V8::AddGCPrologueCallback(V8GCController::gcPrologue);
v8::V8::AddGCEpilogueCallback(V8GCController::gcEpilogue);
+ // TODO(binji): where should this go?
haraken 2015/06/11 05:59:28 I think this is a good place to put this. You can
+ if (RuntimeEnabledFeatures::sharedArrayBufferEnabled()) {
+ const char kSharedArrayBuffer[] = "--harmony-sharedarraybuffer";
haraken 2015/06/11 05:59:28 Add static.
jochen (gone - plz use gerrit) 2015/06/11 12:40:28 I'd rather first see test coverage on the v8 side
+ v8::V8::SetFlagsFromString(kSharedArrayBuffer, sizeof(kSharedArrayBuffer));
+ }
+
v8::Debug::SetLiveEditEnabled(isolate, false);
isolate->SetAutorunMicrotasks(false);

Powered by Google App Engine
This is Rietveld 408576698