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

Issue 1097773004: Sharing of SharedArrayBuffer via PostMessage transfer (Closed)

Created:
5 years, 8 months ago by binji
Modified:
5 years, 5 months ago
CC:
aandrey+blink_chromium.org, arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, blink-reviews-wtf_chromium.org, Rik, Inactive, danakj, dglazkov+blink, Dominik Röttsches, dshwang, krit, eae+blinkwatch, f(malita), jbroman, Justin Novosad, kinuko, Mikhail, nhiroki, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, sof, vivekg_samsung, vivekg
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Sharing of SharedArrayBuffer via PostMessage transfer. BUG=497295 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199111

Patch Set 1 #

Patch Set 2 : merge master #

Patch Set 3 : use blink feature flag #

Patch Set 4 : update for non-split typedarray hierarchy #

Total comments: 16

Patch Set 5 : fixes #

Patch Set 6 : . #

Total comments: 6

Patch Set 7 : . #

Total comments: 25

Patch Set 8 : fixes #

Patch Set 9 : merge master #

Patch Set 10 : merge master #

Patch Set 11 : merge again #

Patch Set 12 : Add worker global interface listing expectations #

Total comments: 2

Patch Set 13 : added virtual test suite #

Patch Set 14 : fix test failures #

Patch Set 15 : no status #

Patch Set 16 : additional flag in virtual test suite #

Unified diffs Side-by-side diffs Delta from patch set Stats (+390 lines, -49 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/VirtualTestSuites View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -0 lines 0 comments Download
A LayoutTests/fast/workers/resources/worker-sharedarraybuffer-transfer.js View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
A LayoutTests/fast/workers/worker-sharedarraybuffer-transfer.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +104 lines, -0 lines 0 comments Download
A LayoutTests/fast/workers/worker-sharedarraybuffer-transfer-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/virtual/sharedarraybuffer/fast/workers/README.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/virtual/sharedarraybuffer/fast/workers/worker-sharedarraybuffer-transfer-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +53 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/ScriptValueSerializer.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +5 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/ScriptValueSerializer.cpp View 1 2 3 4 5 6 7 8 9 11 chunks +73 lines, -13 lines 0 comments Download
M Source/bindings/core/v8/SerializationTag.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/core/v8/SerializedScriptValue.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/core/v8/SerializedScriptValue.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +36 lines, -18 lines 0 comments Download
M Source/bindings/scripts/v8_interface.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M Source/bindings/scripts/v8_types.py View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/templates/interface.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +16 lines, -8 lines 0 comments Download
M Source/bindings/tests/results/core/V8ArrayBuffer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/core/V8ArrayBufferView.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/core/V8DataView.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8Uint8ClampedArray.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -1 line 0 comments Download
M Source/core/dom/DOMArrayBufferBase.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/SharedArrayBuffer.idl View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -3 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M Source/wtf/ArrayBuffer.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 25 (4 generated)
binji
PTAL. I'm not sure about adding a new base class for DOMArrayBuffer, but it seemed ...
5 years, 6 months ago (2015-06-08 17:23:37 UTC) #2
haraken
+yukishiino for DOMArrayBuffer stuff
5 years, 6 months ago (2015-06-08 23:40:25 UTC) #4
Yuki
https://codereview.chromium.org/1097773004/diff/60001/Source/core/dom/DOMSharedArrayBuffer.cpp File Source/core/dom/DOMSharedArrayBuffer.cpp (right): https://codereview.chromium.org/1097773004/diff/60001/Source/core/dom/DOMSharedArrayBuffer.cpp#newcode14 Source/core/dom/DOMSharedArrayBuffer.cpp:14: v8::Handle<v8::Object> DOMSharedArrayBuffer::wrap(v8::Isolate* isolate, v8::Handle<v8::Object> creationContext) v8::Handle is obsolete. Please ...
5 years, 6 months ago (2015-06-09 06:18:08 UTC) #5
binji
https://codereview.chromium.org/1097773004/diff/60001/Source/core/dom/DOMSharedArrayBuffer.cpp File Source/core/dom/DOMSharedArrayBuffer.cpp (right): https://codereview.chromium.org/1097773004/diff/60001/Source/core/dom/DOMSharedArrayBuffer.cpp#newcode14 Source/core/dom/DOMSharedArrayBuffer.cpp:14: v8::Handle<v8::Object> DOMSharedArrayBuffer::wrap(v8::Isolate* isolate, v8::Handle<v8::Object> creationContext) On 2015/06/09 at 06:18:07, ...
5 years, 6 months ago (2015-06-10 06:04:39 UTC) #6
Yuki
https://codereview.chromium.org/1097773004/diff/100001/Source/core/dom/DOMTypedArray.cpp File Source/core/dom/DOMTypedArray.cpp (right): https://codereview.chromium.org/1097773004/diff/100001/Source/core/dom/DOMTypedArray.cpp#newcode36 Source/core/dom/DOMTypedArray.cpp:36: v8Buffer = toV8(buffer.get(), creationContext, isolate); nit: You can write ...
5 years, 6 months ago (2015-06-10 07:44:56 UTC) #7
binji
https://codereview.chromium.org/1097773004/diff/100001/Source/core/dom/DOMTypedArray.cpp File Source/core/dom/DOMTypedArray.cpp (right): https://codereview.chromium.org/1097773004/diff/100001/Source/core/dom/DOMTypedArray.cpp#newcode36 Source/core/dom/DOMTypedArray.cpp:36: v8Buffer = toV8(buffer.get(), creationContext, isolate); On 2015/06/10 at 07:44:55, ...
5 years, 6 months ago (2015-06-10 20:53:40 UTC) #8
Yuki
lgtm for DOMArrayBuffer-related files. https://codereview.chromium.org/1097773004/diff/120001/Source/wtf/ArrayBufferContents.cpp File Source/wtf/ArrayBufferContents.cpp (right): https://codereview.chromium.org/1097773004/diff/120001/Source/wtf/ArrayBufferContents.cpp#newcode130 Source/wtf/ArrayBufferContents.cpp:130: allocateMemory(sizeInBytes, policy, data); nit: Better ...
5 years, 6 months ago (2015-06-11 05:16:14 UTC) #9
haraken
- It seems this CL is doing multiple things in one go. Can we split ...
5 years, 6 months ago (2015-06-11 05:59:29 UTC) #10
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1097773004/diff/120001/Source/bindings/core/v8/V8Initializer.cpp File Source/bindings/core/v8/V8Initializer.cpp (right): https://codereview.chromium.org/1097773004/diff/120001/Source/bindings/core/v8/V8Initializer.cpp#newcode364 Source/bindings/core/v8/V8Initializer.cpp:364: const char kSharedArrayBuffer[] = "--harmony-sharedarraybuffer"; I'd rather first see ...
5 years, 6 months ago (2015-06-11 12:40:28 UTC) #11
binji
Updated this CL after landing https://codereview.chromium.org/1179373004, https://codereview.chromium.org/1186863005 and https://codereview.chromium.org/1183763003. PTAL
5 years, 5 months ago (2015-07-09 18:06:14 UTC) #12
haraken
Thanks for splitting the patch! Now the logic looks much clearer. LGTM.
5 years, 5 months ago (2015-07-10 00:50:30 UTC) #13
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1097773004/diff/220001/Source/bindings/core/v8/V8Initializer.cpp File Source/bindings/core/v8/V8Initializer.cpp (right): https://codereview.chromium.org/1097773004/diff/220001/Source/bindings/core/v8/V8Initializer.cpp#newcode364 Source/bindings/core/v8/V8Initializer.cpp:364: v8::V8::SetFlagsFromString(kSharedArrayBuffer, sizeof(kSharedArrayBuffer)); we should first land this once shared ...
5 years, 5 months ago (2015-07-10 09:07:40 UTC) #14
binji
https://codereview.chromium.org/1097773004/diff/220001/Source/bindings/core/v8/V8Initializer.cpp File Source/bindings/core/v8/V8Initializer.cpp (right): https://codereview.chromium.org/1097773004/diff/220001/Source/bindings/core/v8/V8Initializer.cpp#newcode364 Source/bindings/core/v8/V8Initializer.cpp:364: v8::V8::SetFlagsFromString(kSharedArrayBuffer, sizeof(kSharedArrayBuffer)); On 2015/07/10 at 09:07:40, jochen wrote: > ...
5 years, 5 months ago (2015-07-10 18:34:46 UTC) #15
jochen (gone - plz use gerrit)
On 2015/07/10 at 18:34:46, binji wrote: > https://codereview.chromium.org/1097773004/diff/220001/Source/bindings/core/v8/V8Initializer.cpp > File Source/bindings/core/v8/V8Initializer.cpp (right): > > https://codereview.chromium.org/1097773004/diff/220001/Source/bindings/core/v8/V8Initializer.cpp#newcode364 ...
5 years, 5 months ago (2015-07-10 18:43:51 UTC) #16
binji
> adding a runtime flag is fine. but passing a flag that enables a not ...
5 years, 5 months ago (2015-07-10 18:48:53 UTC) #17
binji
Discussed a path forward with jochen@ offline. Sounds like using a virtual test suite is ...
5 years, 5 months ago (2015-07-15 23:44:38 UTC) #18
jochen (gone - plz use gerrit)
On 2015/07/15 at 23:44:38, binji wrote: > Discussed a path forward with jochen@ offline. Sounds ...
5 years, 5 months ago (2015-07-16 10:47:25 UTC) #19
binji
On 2015/07/16 at 10:47:25, jochen wrote: > On 2015/07/15 at 23:44:38, binji wrote: > > ...
5 years, 5 months ago (2015-07-16 17:28:31 UTC) #20
jochen (gone - plz use gerrit)
lgtm
5 years, 5 months ago (2015-07-17 09:29:43 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1097773004/300001
5 years, 5 months ago (2015-07-17 16:08:25 UTC) #24
commit-bot: I haz the power
5 years, 5 months ago (2015-07-17 16:12:37 UTC) #25
Message was sent while issue was closed.
Committed patchset #16 (id:300001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=199111

Powered by Google App Engine
This is Rietveld 408576698