Update basic SharedArrayBuffer features (threading)

* add SharedArrayBuffer object
* update BackingStore to represent shared data block

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
HyukWoo Park 2021-06-10 16:04:10 +09:00 committed by Boram Bae
commit 324baba180
15 changed files with 319 additions and 13 deletions

View file

@ -33,7 +33,7 @@ namespace Escargot {
ArrayBufferObject* NAME = thisValue.asObject()->asArrayBufferObject(); \
NAME->throwTypeErrorIfDetached(state);
// https://www.ecma-international.org/ecma-262/10.0/#sec-arraybuffer-length
// https://262.ecma-international.org/#sec-arraybuffer-constructor
static Value builtinArrayBufferConstructor(ExecutionState& state, Value thisValue, size_t argc, Value* argv, Optional<Object*> newTarget)
{
if (!newTarget.hasValue()) {