Atomics: features fixes, harness features, etc.

This commit is contained in:
Rick Waldron 2018-05-22 15:10:33 -04:00
parent c5527b6d16
commit 5ebd632d8f
21 changed files with 24 additions and 24 deletions

View File

@ -5,7 +5,7 @@
esid: sec-atomics.add
description: Test Atomics.add on arrays that allow atomic operations.
includes: [testAtomics.js, testBigIntTypedArray.js]
features: [ArrayBuffer, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray]
features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray]
---*/
var sab = new SharedArrayBuffer(1024);

View File

@ -5,7 +5,7 @@
esid: sec-atomics.and
description: Test Atomics.and on arrays that allow atomic operations
includes: [testAtomics.js, testBigIntTypedArray.js]
features: [ArrayBuffer, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray]
features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray]
---*/
var sab = new SharedArrayBuffer(1024);

View File

@ -5,7 +5,7 @@
esid: sec-atomics.compareexchange
description: Test Atomics.compareExchange on arrays that allow atomic operations.
includes: [testAtomics.js, testBigIntTypedArray.js]
features: [ArrayBuffer, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray]
features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray]
---*/
var sab = new SharedArrayBuffer(1024);

View File

@ -5,7 +5,7 @@
esid: sec-atomics.exchange
description: Test Atomics.exchange on arrays that allow atomic operations.
includes: [testAtomics.js, testBigIntTypedArray.js]
features: [ArrayBuffer, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray]
features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray]
---*/
var sab = new SharedArrayBuffer(1024);

View File

@ -5,7 +5,7 @@
esid: sec-atomics.islockfree
description: >
Test isLockFree on various non-intuitive arguments
features: [arrow-function, Atomics]
features: [arrow-function, Atomics, SharedArrayBuffer, ArrayBuffer, DataView, BigInt, let, TypedArray, for-of]
includes: [testAtomics.js, testBigIntTypedArray.js]
---*/

View File

@ -5,7 +5,7 @@
esid: sec-atomics.load
description: Test Atomics.load on arrays that allow atomic operations.
includes: [testAtomics.js, testBigIntTypedArray.js]
features: [ArrayBuffer, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray]
features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray]
---*/
var sab = new SharedArrayBuffer(1024);

View File

@ -5,7 +5,7 @@
esid: sec-atomics.or
description: Test Atomics.or on arrays that allow atomic operations
includes: [testAtomics.js, testBigIntTypedArray.js]
features: [ArrayBuffer, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray]
features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray]
---*/
var sab = new SharedArrayBuffer(1024);

View File

@ -5,7 +5,7 @@
esid: sec-atomics.sub
description: Test Atomics.sub on arrays that allow atomic operations
includes: [testAtomics.js, testBigIntTypedArray.js]
features: [ArrayBuffer, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray]
features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray]
---*/
var sab = new SharedArrayBuffer(1024);

View File

@ -6,7 +6,7 @@ esid: sec-atomics.wait
description: >
Waiter does not spuriously wake on index which is subject to Add operation
includes: [atomicsHelper.js]
features: [Atomics, BigInt, SharedArrayBuffer, TypedArray]
features: [ArrayBuffer, DataView, let, arrow-function, for-of, Atomics, BigInt, SharedArrayBuffer, TypedArray]
---*/
const TIMEOUT = 2000;

View File

@ -6,7 +6,7 @@ esid: sec-atomics.wait
description: >
Waiter does not spuriously wake on index which is subject to And operation
includes: [testAtomics.js]
features: [Atomics, BigInt, SharedArrayBuffer, TypedArray]
features: [ArrayBuffer, DataView, let, arrow-function, for-of, Atomics, BigInt, SharedArrayBuffer, TypedArray]
---*/
const TIMEOUT = 2000;
const i64a = new BigInt64Array(

View File

@ -6,7 +6,7 @@ esid: sec-atomics.wait
description: >
Waiter does not spuriously wake on index which is subject to compareExchange operation
includes: [testAtomics.js]
features: [Atomics, BigInt, SharedArrayBuffer, TypedArray]
features: [Atomics, BigInt, SharedArrayBuffer, TypedArray, ArrayBuffer, DataView, let, arrow-function, for-of]
---*/
const TIMEOUT = 2000;
const i64a = new BigInt64Array(

View File

@ -6,7 +6,7 @@ esid: sec-atomics.wait
description: >
Waiter does not spuriously wake on index which is subject to exchange operation
includes: [testAtomics.js]
features: [Atomics, BigInt, SharedArrayBuffer, TypedArray]
features: [Atomics, BigInt, SharedArrayBuffer, TypedArray, ArrayBuffer, DataView, let, arrow-function, for-of]
---*/
const TIMEOUT = 2000;
const i64a = new BigInt64Array(

View File

@ -6,7 +6,7 @@ esid: sec-atomics.wait
description: >
Waiter does not spuriously wake on index which is subject to Or operation
includes: [testAtomics.js]
features: [Atomics, BigInt, SharedArrayBuffer, TypedArray]
features: [Atomics, BigInt, SharedArrayBuffer, TypedArray, ArrayBuffer, DataView, let, arrow-function, for-of, Atomics, BigInt, SharedArrayBuffer, TypedArray]
---*/
const TIMEOUT = 2000;
const i64a = new BigInt64Array(

View File

@ -6,7 +6,7 @@ esid: sec-atomics.wait
description: >
Demonstrates that Atomics.store(...) is causing a waiting
includes: [testAtomics.js]
features: [Atomics, BigInt, SharedArrayBuffer, TypedArray]
features: [Atomics, BigInt, SharedArrayBuffer, TypedArray, ArrayBuffer, DataView, let, arrow-function, for-of, Atomics, BigInt, SharedArrayBuffer, TypedArray]
---*/
const TIMEOUT = 2000;
const i64a = new BigInt64Array(

View File

@ -6,7 +6,7 @@ esid: sec-atomics.wait
description: >
Waiter does not spuriously wake on index which is subject to Sub operation
includes: [testAtomics.js]
features: [Atomics, BigInt, SharedArrayBuffer, TypedArray]
features: [Atomics, BigInt, SharedArrayBuffer, TypedArray, ArrayBuffer, DataView, let, arrow-function, for-of, Atomics, BigInt, SharedArrayBuffer, TypedArray]
---*/
const TIMEOUT = 2000;
const i64a = new BigInt64Array(

View File

@ -6,7 +6,7 @@ esid: sec-atomics.wait
description: >
Waiter does not spuriously wake on index which is subject to xor operation
includes: [testAtomics.js]
features: [Atomics, BigInt, SharedArrayBuffer, TypedArray]
features: [Atomics, BigInt, SharedArrayBuffer, TypedArray, ArrayBuffer, DataView, let, arrow-function, for-of, Atomics, BigInt, SharedArrayBuffer, TypedArray]
---*/
const TIMEOUT = 2000;
const i64a = new BigInt64Array(

View File

@ -19,7 +19,7 @@ info: |
a. If typeName is not "Int32Array" or "BigInt64Array",
throw a TypeError exception.
features: [Atomics, BigInt, SharedArrayBuffer, TypedArray]
features: [Atomics, BigInt, SharedArrayBuffer, TypedArray, ArrayBuffer, DataView, let, arrow-function, for-of, Atomics, BigInt, SharedArrayBuffer, TypedArray]
includes: [testAtomics.js, testBigIntTypedArray.js]
---*/

View File

@ -6,7 +6,7 @@ esid: sec-atomics.wait
description: >
Waiter does not spuriously wake on index which is subject to Add operation
includes: [atomicsHelper.js]
features: [Atomics, SharedArrayBuffer, TypedArray]
features: [ArrayBuffer, DataView, let, arrow-function, for-of, Atomics, BigInt, SharedArrayBuffer, TypedArray]
---*/
const TIMEOUT = 2000;

View File

@ -45,7 +45,7 @@ const i32a = new Int32Array(
$262.agent.broadcast(i32a.buffer);
$262.agent.sleep(100); // halfway through timeout
// wake at index 0
// wake at index 0, undefined => 0
assert.sameValue(
Atomics.wake(i32a, undefined, 1),
1,
@ -54,10 +54,10 @@ assert.sameValue(
assert.sameValue(getReport(), 'ok', 'getReport() returns "ok"');
// wake again at index 0
// wake again at index 0, default => 0
assert.sameValue(
Atomics.wake(i32a /* default values used */),
Atomics.wake(i32a /*, default values used */),
1,
'Atomics.wake(i32a) returns 1'
'Atomics.wake(i32a /*, default values used */) returns 1'
);
assert.sameValue(getReport(), 'ok', 'getReport() returns "ok"');

View File

@ -6,7 +6,7 @@ esid: sec-atomics.wake
description: >
Test that Atomics.wake wakes zero waiters if the count is NaN
includes: [testAtomics.js]
features: [Atomics, SharedArrayBuffer, TypedArray]
features: [ArrayBuffer, DataView, let, arrow-function, for-of, Atomics, BigInt, SharedArrayBuffer, TypedArray]
---*/
$262.agent.start(`

View File

@ -5,7 +5,7 @@
esid: sec-atomics.xor
description: Test Atomics.xor on arrays that allow atomic operations
includes: [testAtomics.js, testBigIntTypedArray.js]
features: [ArrayBuffer, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray]
features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray]
---*/
var sab = new SharedArrayBuffer(1024);