Disable SharedArrayBuffers from Web API
authormsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Jan 2018 01:53:41 +0000 (01:53 +0000)
committermsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Jan 2018 01:53:41 +0000 (01:53 +0000)
commitbdd8f54d0b36cb8c0304be669117d537bb8e0c32
tree401f7312ed511399f6c0d6e638da7de49357ab05
parent83e9dbb01470f4735cc0deb8e7b7723505375284
Disable SharedArrayBuffers from Web API
https://bugs.webkit.org/show_bug.cgi?id=181266

Reviewed by Saam Barati.

JSTests:

Disabled SharedArrayBuffer tests.

* stress/SharedArrayBuffer-opt.js:
* stress/SharedArrayBuffer.js:
* stress/array-buffer-byte-length.js:
* stress/atomics-add-uint32.js:
* stress/atomics-known-int-use.js:
* stress/atomics-neg-zero.js:
* stress/atomics-store-return.js:
* stress/lars-sab-workers.js:
* stress/regress-159779-1.js:
* stress/regress-159779-2.js:
* stress/regress-170473.js:
* test262.yaml:

Source/JavaScriptCore:

Removed SharedArrayBuffer prototype and structure from GlobalObject creation
to disable.

* runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::init):
(JSC::JSGlobalObject::visitChildren):
* runtime/JSGlobalObject.h:
(JSC::JSGlobalObject::arrayBufferPrototype const):
(JSC::JSGlobalObject::arrayBufferStructure const):

Source/WTF:

Turn off SharedArrayBuffers using a compile time flag ENABLE_SHARED_ARRAY_BUFFER.

* wtf/Platform.h:

LayoutTests:

Disabled SharedArrayBuffer tests.

* TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226386 268f45cc-cd09-0410-ab3c-d52691b4dbfc
20 files changed:
JSTests/ChangeLog
JSTests/stress/SharedArrayBuffer-opt.js
JSTests/stress/SharedArrayBuffer.js
JSTests/stress/array-buffer-byte-length.js
JSTests/stress/atomics-add-uint32.js
JSTests/stress/atomics-known-int-use.js
JSTests/stress/atomics-neg-zero.js
JSTests/stress/atomics-store-return.js
JSTests/stress/lars-sab-workers.js
JSTests/stress/regress-159779-1.js
JSTests/stress/regress-159779-2.js
JSTests/stress/regress-170473.js
JSTests/test262.yaml
LayoutTests/ChangeLog
LayoutTests/TestExpectations
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/JSGlobalObject.cpp
Source/JavaScriptCore/runtime/JSGlobalObject.h
Source/WTF/ChangeLog
Source/WTF/wtf/Platform.h