|
Implement SharedArrayBuffer.
This adds a new external type (v8::SharedArrayBuffer) that uses a JSArrayBuffer
under the hood. It can be distinguished from an ArrayBuffer by the newly-added
is_shared() bit.
Currently there is no difference in functionality between a SharedArrayBuffer
and an ArrayBuffer. However, a future CL will add the Atomics API, which is
only available on an SharedArrayBuffer. All non-atomic accesses are identical
to ArrayBuffer accesses.
LOG=N
BUG=
Committed: https://crrev.com/aff8ebb0ebe165dceb03b567fe54633cf3f0a1f7
Cr-Commit-Position: refs/heads/master@{#28594}
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+550 lines, -256 lines) |
Patch |
|
M |
BUILD.gn
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
include/v8.h
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+116 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/api.h
|
View
|
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/api.cc
|
View
|
1
2
3
4
5
6
7
8
|
8 chunks |
+83 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/arraybuffer.js
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/bootstrapper.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+17 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/contexts.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/factory.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/factory.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/flag-definitions.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
A |
src/harmony-sharedarraybuffer.js
|
View
|
1
2
3
4
5
6
|
1 chunk |
+56 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/macros.py
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/objects-inl.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime-typedarray.cc
|
View
|
1
2
3
4
5
6
|
8 chunks |
+16 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/typedarray.js
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
test/cctest/test-api.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+130 lines, -0 lines |
0 comments
|
Download
|
|
A + |
test/mjsunit/harmony/sharedarraybuffer.js
|
View
|
1
2
|
18 chunks |
+80 lines, -225 lines |
0 comments
|
Download
|
|
M |
tools/gyp/v8.gyp
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 29 (8 generated)
|