diff --git a/test/built-ins/Atomics/wait/bigint/nan-for-timeout.js b/test/built-ins/Atomics/wait/bigint/nan-for-timeout.js index d3df2ef078..87ac7a679f 100644 --- a/test/built-ins/Atomics/wait/bigint/nan-for-timeout.js +++ b/test/built-ins/Atomics/wait/bigint/nan-for-timeout.js @@ -39,5 +39,5 @@ $262.agent.waitUntil(i64a, RUNNING, 1n); // Try to yield control to ensure the agent actually started to wait. $262.agent.tryYield(); -assert.sameValue(Atomics.wake(i64a, 0), 1, 'Atomics.wake(i64a, 0) returns 1'); +assert.sameValue(Atomics.notify(i64a, 0), 1, 'Atomics.notify(i64a, 0) returns 1'); assert.sameValue($262.agent.getReport(), 'ok', '$262.agent.getReport() returns "ok"'); diff --git a/test/built-ins/Atomics/wait/bigint/negative-timeout-agent.js b/test/built-ins/Atomics/wait/bigint/negative-timeout-agent.js index f2edf290af..15085d371b 100644 --- a/test/built-ins/Atomics/wait/bigint/negative-timeout-agent.js +++ b/test/built-ins/Atomics/wait/bigint/negative-timeout-agent.js @@ -36,4 +36,4 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i64a, 0), 0, 'Atomics.wake(i64a, 0) returns 0'); +assert.sameValue(Atomics.notify(i64a, 0), 0, 'Atomics.notify(i64a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-no-operation.js b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-no-operation.js index 369e39d93f..df6942dc6e 100644 --- a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-no-operation.js +++ b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-no-operation.js @@ -56,4 +56,4 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i64a, 0), 0, 'Atomics.wake(i64a, 0) returns 0'); +assert.sameValue(Atomics.notify(i64a, 0), 0, 'Atomics.notify(i64a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-add.js b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-add.js index a1de60a4ab..a8e16f1a01 100644 --- a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-add.js +++ b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-add.js @@ -4,7 +4,7 @@ /*--- esid: sec-atomics.wait description: > - Waiter does not spuriously wake on index which is subject to Add operation + Waiter does not spuriously notify on index which is subject to Add operation includes: [atomicsHelper.js] features: [Atomics, BigInt, SharedArrayBuffer, TypedArray] ---*/ @@ -49,6 +49,6 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i64a, 0), 0, 'Atomics.wake(i64a, 0) returns 0'); +assert.sameValue(Atomics.notify(i64a, 0), 0, 'Atomics.notify(i64a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-and.js b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-and.js index 11a851f474..80358b7bbe 100644 --- a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-and.js +++ b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-and.js @@ -4,7 +4,7 @@ /*--- esid: sec-atomics.wait description: > - Waiter does not spuriously wake on index which is subject to And operation + Waiter does not spuriously nofity on index which is subject to And operation includes: [atomicsHelper.js] features: [Atomics, BigInt, SharedArrayBuffer, TypedArray] ---*/ @@ -49,6 +49,6 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i64a, 0), 0, 'Atomics.wake(i64a, 0) returns 0'); +assert.sameValue(Atomics.notify(i64a, 0), 0, 'Atomics.notify(i64a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-compareExchange.js b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-compareExchange.js index c7c7e95705..91b69dc05a 100644 --- a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-compareExchange.js +++ b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-compareExchange.js @@ -4,7 +4,7 @@ /*--- esid: sec-atomics.wait description: > - Waiter does not spuriously wake on index which is subject to compareExchange operation + Waiter does not spuriously notify on index which is subject to compareExchange operation includes: [atomicsHelper.js] features: [Atomics, BigInt, SharedArrayBuffer, TypedArray] ---*/ @@ -49,4 +49,4 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i64a, 0), 0, 'Atomics.wake(i64a, 0) returns 0'); +assert.sameValue(Atomics.notify(i64a, 0), 0, 'Atomics.notify(i64a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-exchange.js b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-exchange.js index 3d32007565..4625a899ce 100644 --- a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-exchange.js +++ b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-exchange.js @@ -4,7 +4,7 @@ /*--- esid: sec-atomics.wait description: > - Waiter does not spuriously wake on index which is subject to exchange operation + Waiter does not spuriously notify on index which is subject to exchange operation includes: [atomicsHelper.js] features: [Atomics, BigInt, SharedArrayBuffer, TypedArray] ---*/ @@ -49,4 +49,9 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); +<<<<<<< HEAD assert.sameValue(Atomics.wake(i64a, 0), 0, 'Atomics.wake(i64a, 0) returns 0'); +======= +assert.sameValue(Atomics.notify(i64a, 0), 0, 'Atomics.notify(i64a, 0) returns 0'); + +>>>>>>> e6e13b293e... First renaming for wake to notify in the wait folder diff --git a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-or.js b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-or.js index d965025fb9..3c705fbce1 100644 --- a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-or.js +++ b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-or.js @@ -4,7 +4,7 @@ /*--- esid: sec-atomics.wait description: > - Waiter does not spuriously wake on index which is subject to Or operation + Waiter does not spuriously notify on index which is subject to Or operation includes: [atomicsHelper.js] features: [Atomics, BigInt, SharedArrayBuffer, TypedArray] ---*/ @@ -49,4 +49,4 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i64a, 0), 0, 'Atomics.wake(i64a, 0) returns 0'); +assert.sameValue(Atomics.notify(i64a, 0), 0, 'Atomics.notify(i64a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-store.js b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-store.js index a3950ad1e7..5d0b8a7d4d 100644 --- a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-store.js +++ b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-store.js @@ -49,4 +49,4 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i64a, 0), 0, 'Atomics.wake(i64a, 0) returns 0'); +assert.sameValue(Atomics.notify(i64a, 0), 0, 'Atomics.notify(i64a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-sub.js b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-sub.js index 947d38a1ba..b066d03bad 100644 --- a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-sub.js +++ b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-sub.js @@ -4,7 +4,7 @@ /*--- esid: sec-atomics.wait description: > - Waiter does not spuriously wake on index which is subject to Sub operation + Waiter does not spuriously notify on index which is subject to Sub operation includes: [atomicsHelper.js] features: [Atomics, BigInt, SharedArrayBuffer, TypedArray] ---*/ @@ -49,4 +49,4 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i64a, 0), 0, 'Atomics.wake(i64a, 0) returns 0'); +assert.sameValue(Atomics.notify(i64a, 0), 0, 'Atomics.notify(i64a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-xor.js b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-xor.js index abf0103ff7..9cc06769a6 100644 --- a/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-xor.js +++ b/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-xor.js @@ -4,7 +4,7 @@ /*--- esid: sec-atomics.wait description: > - Waiter does not spuriously wake on index which is subject to xor operation + Waiter does not spuriously notify on index which is subject to xor operation includes: [atomicsHelper.js] features: [Atomics, BigInt, SharedArrayBuffer, TypedArray] ---*/ @@ -49,4 +49,4 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i64a, 0), 0, 'Atomics.wake(i64a, 0) returns 0'); +assert.sameValue(Atomics.notify(i64a, 0), 0, 'Atomics.notify(i64a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/bigint/waiterlist-block-indexedposition-wake.js b/test/built-ins/Atomics/wait/bigint/waiterlist-block-indexedposition-wake.js index c45df83d28..3f0e138663 100644 --- a/test/built-ins/Atomics/wait/bigint/waiterlist-block-indexedposition-wake.js +++ b/test/built-ins/Atomics/wait/bigint/waiterlist-block-indexedposition-wake.js @@ -56,20 +56,20 @@ $262.agent.broadcast(i64a.buffer); // Wait until all agents started. $262.agent.waitUntil(i64a, RUNNING, BigInt(NUMAGENT)); -// Wake index 1, wakes nothing -assert.sameValue(Atomics.wake(i64a, 1), 0, 'Atomics.wake(i64a, 1) returns 0'); +// Notify index 1, notifies nothing +assert.sameValue(Atomics.notify(i64a, 1), 0, 'Atomics.notify(i64a, 1) returns 0'); -// Wake index 3, wakes nothing -assert.sameValue(Atomics.wake(i64a, 3), 0, 'Atomics.wake(i64a, 3) returns 0'); +// Notify index 3, notifies nothing +assert.sameValue(Atomics.notify(i64a, 3), 0, 'Atomics.notify(i64a, 3) returns 0'); -// Wake index 2, wakes 1 +// Notify index 2, notifies 1 var woken = 0; -while ((woken = Atomics.wake(i64a, 2)) === 0) ; -assert.sameValue(woken, 1, 'Atomics.wake(i64a, 2) returns 1'); +while ((woken = Atomics.notify(i64a, 2)) === 0) ; +assert.sameValue(woken, 1, 'Atomics.notify(i64a, 2) returns 1'); assert.sameValue($262.agent.getReport(), 'ok', '$262.agent.getReport() returns "ok"'); -// Wake index 0, wakes 1 +// Notify index 0, notifies 1 var woken = 0; -while ((woken = Atomics.wake(i64a, 0)) === 0) ; -assert.sameValue(woken, 1, 'Atomics.wake(i64a, 0) returns 1'); +while ((woken = Atomics.notify(i64a, 0)) === 0) ; +assert.sameValue(woken, 1, 'Atomics.notify(i64a, 0) returns 1'); assert.sameValue($262.agent.getReport(), 'ok', '$262.agent.getReport() returns "ok"'); diff --git a/test/built-ins/Atomics/wait/bigint/waiterlist-order-of-operations-is-fifo.js b/test/built-ins/Atomics/wait/bigint/waiterlist-order-of-operations-is-fifo.js index 6c33fba139..769dac832a 100644 --- a/test/built-ins/Atomics/wait/bigint/waiterlist-order-of-operations-is-fifo.js +++ b/test/built-ins/Atomics/wait/bigint/waiterlist-order-of-operations-is-fifo.js @@ -77,13 +77,13 @@ for (var i = 0; i < NUMAGENT; i++) { Atomics.store(i64a, LOCK_INDEX, 0n); } -// Agents must wake in the order they waited. +// Agents must notify in the order they waited. for (var i = 0; i < NUMAGENT; i++) { var woken = 0; - while ((woken = Atomics.wake(i64a, WAIT_INDEX, 1)) === 0) ; + while ((woken = Atomics.notify(i64a, WAIT_INDEX, 1)) === 0) ; assert.sameValue(woken, 1, - 'Atomics.wake(i64a, WAIT_INDEX, 1) returns 1, at index = ' + i); + 'Atomics.notify(i64a, WAIT_INDEX, 1) returns 1, at index = ' + i); assert.sameValue($262.agent.getReport(), 'ok', '$262.agent.getReport() returns "ok", at index = ' + i); diff --git a/test/built-ins/Atomics/wait/bigint/was-woken-before-timeout.js b/test/built-ins/Atomics/wait/bigint/was-woken-before-timeout.js index 829b1479da..2ae8b384e2 100644 --- a/test/built-ins/Atomics/wait/bigint/was-woken-before-timeout.js +++ b/test/built-ins/Atomics/wait/bigint/was-woken-before-timeout.js @@ -50,7 +50,7 @@ $262.agent.waitUntil(i64a, RUNNING, 1n); // Try to yield control to ensure the agent actually started to wait. $262.agent.tryYield(); -assert.sameValue(Atomics.wake(i64a, 0), 1, 'Atomics.wake(i64a, 0) returns 1'); +assert.sameValue(Atomics.notify(i64a, 0), 1, 'Atomics.notify(i64a, 0) returns 1'); const lapse = $262.agent.getReport(); diff --git a/test/built-ins/Atomics/wait/false-for-timeout-agent.js b/test/built-ins/Atomics/wait/false-for-timeout-agent.js index e2ecf01c3d..d25a44b72d 100644 --- a/test/built-ins/Atomics/wait/false-for-timeout-agent.js +++ b/test/built-ins/Atomics/wait/false-for-timeout-agent.js @@ -81,4 +81,4 @@ assert(lapse >= 0, 'The result of `(lapse >= 0)` is true (timeout should be a mi assert(lapse <= $262.agent.MAX_TIME_EPSILON, 'The result of `(lapse <= $262.agent.MAX_TIME_EPSILON)` is true'); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/nan-for-timeout.js b/test/built-ins/Atomics/wait/nan-for-timeout.js index 6b17d7a867..08dea96c3c 100644 --- a/test/built-ins/Atomics/wait/nan-for-timeout.js +++ b/test/built-ins/Atomics/wait/nan-for-timeout.js @@ -39,5 +39,5 @@ $262.agent.waitUntil(i32a, RUNNING, 1); // Try to yield control to ensure the agent actually started to wait. $262.agent.tryYield(); -assert.sameValue(Atomics.wake(i32a, 0), 1, 'Atomics.wake(i32a, 0) returns 1'); +assert.sameValue(Atomics.notify(i32a, 0), 1, 'Atomics.notify(i32a, 0) returns 1'); assert.sameValue($262.agent.getReport(), "ok", '$262.agent.getReport() returns "ok"'); diff --git a/test/built-ins/Atomics/wait/negative-timeout-agent.js b/test/built-ins/Atomics/wait/negative-timeout-agent.js index 92dca63955..4b505cf5b0 100644 --- a/test/built-ins/Atomics/wait/negative-timeout-agent.js +++ b/test/built-ins/Atomics/wait/negative-timeout-agent.js @@ -36,4 +36,4 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/no-spurious-wakeup-on-add.js b/test/built-ins/Atomics/wait/no-spurious-wakeup-on-add.js index 69a9b5d457..6757300aad 100644 --- a/test/built-ins/Atomics/wait/no-spurious-wakeup-on-add.js +++ b/test/built-ins/Atomics/wait/no-spurious-wakeup-on-add.js @@ -4,7 +4,7 @@ /*--- esid: sec-atomics.wait description: > - Waiter does not spuriously wake on index which is subject to Add operation + Waiter does not spuriously notify on index which is subject to Add operation includes: [atomicsHelper.js] features: [Atomics, SharedArrayBuffer, TypedArray] ---*/ @@ -49,4 +49,4 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/no-spurious-wakeup-on-and.js b/test/built-ins/Atomics/wait/no-spurious-wakeup-on-and.js index 94546ce76c..64efe55af8 100644 --- a/test/built-ins/Atomics/wait/no-spurious-wakeup-on-and.js +++ b/test/built-ins/Atomics/wait/no-spurious-wakeup-on-and.js @@ -4,7 +4,7 @@ /*--- esid: sec-atomics.wait description: > - Waiter does not spuriously wake on index which is subject to And operation + Waiter does not spuriously notify on index which is subject to And operation includes: [atomicsHelper.js] features: [Atomics, SharedArrayBuffer, TypedArray] ---*/ @@ -49,4 +49,4 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/no-spurious-wakeup-on-compareExchange.js b/test/built-ins/Atomics/wait/no-spurious-wakeup-on-compareExchange.js index 63c54cbf2a..adc190c001 100644 --- a/test/built-ins/Atomics/wait/no-spurious-wakeup-on-compareExchange.js +++ b/test/built-ins/Atomics/wait/no-spurious-wakeup-on-compareExchange.js @@ -4,7 +4,7 @@ /*--- esid: sec-atomics.wait description: > - Waiter does not spuriously wake on index which is subject to compareExchange operation + Waiter does not spuriously notify on index which is subject to compareExchange operation includes: [atomicsHelper.js] features: [Atomics, SharedArrayBuffer, TypedArray] ---*/ @@ -49,4 +49,4 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/no-spurious-wakeup-on-exchange.js b/test/built-ins/Atomics/wait/no-spurious-wakeup-on-exchange.js index 5aa8061d2f..93b880b61e 100644 --- a/test/built-ins/Atomics/wait/no-spurious-wakeup-on-exchange.js +++ b/test/built-ins/Atomics/wait/no-spurious-wakeup-on-exchange.js @@ -4,7 +4,7 @@ /*--- esid: sec-atomics.wait description: > - Waiter does not spuriously wake on index which is subject to exchange operation + Waiter does not spuriously notify on index which is subject to exchange operation includes: [atomicsHelper.js] features: [Atomics, SharedArrayBuffer, TypedArray] ---*/ @@ -49,4 +49,4 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/no-spurious-wakeup-on-or.js b/test/built-ins/Atomics/wait/no-spurious-wakeup-on-or.js index 5e65beeb5c..0f73bafacd 100644 --- a/test/built-ins/Atomics/wait/no-spurious-wakeup-on-or.js +++ b/test/built-ins/Atomics/wait/no-spurious-wakeup-on-or.js @@ -4,7 +4,7 @@ /*--- esid: sec-atomics.wait description: > - Waiter does not spuriously wake on index which is subject to Or operation + Waiter does not spuriously notify on index which is subject to Or operation includes: [atomicsHelper.js] features: [Atomics, SharedArrayBuffer, TypedArray] ---*/ @@ -49,4 +49,4 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/no-spurious-wakeup-on-store.js b/test/built-ins/Atomics/wait/no-spurious-wakeup-on-store.js index 2307a684e3..95a8d8a8a7 100644 --- a/test/built-ins/Atomics/wait/no-spurious-wakeup-on-store.js +++ b/test/built-ins/Atomics/wait/no-spurious-wakeup-on-store.js @@ -4,7 +4,7 @@ /*--- esid: sec-atomics.wait description: > - Waiter does not spuriously wake on index which is subject to Store operation + Waiter does not spuriously notify on index which is subject to Store operation includes: [atomicsHelper.js] features: [Atomics, SharedArrayBuffer, TypedArray] ---*/ @@ -49,4 +49,4 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/no-spurious-wakeup-on-sub.js b/test/built-ins/Atomics/wait/no-spurious-wakeup-on-sub.js index d748364b2e..bf260d7a02 100644 --- a/test/built-ins/Atomics/wait/no-spurious-wakeup-on-sub.js +++ b/test/built-ins/Atomics/wait/no-spurious-wakeup-on-sub.js @@ -4,7 +4,7 @@ /*--- esid: sec-atomics.wait description: > - Waiter does not spuriously wake on index which is subject to Sub operation + Waiter does not spuriously notify on index which is subject to Sub operation includes: [atomicsHelper.js] features: [Atomics, SharedArrayBuffer, TypedArray] ---*/ @@ -49,4 +49,4 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/no-spurious-wakeup-on-xor.js b/test/built-ins/Atomics/wait/no-spurious-wakeup-on-xor.js index 319d876eaf..dbb38f8e74 100644 --- a/test/built-ins/Atomics/wait/no-spurious-wakeup-on-xor.js +++ b/test/built-ins/Atomics/wait/no-spurious-wakeup-on-xor.js @@ -4,7 +4,7 @@ /*--- esid: sec-atomics.wait description: > - Waiter does not spuriously wake on index which is subject to xor operation + Waiter does not spuriously notify on index which is subject to xor operation includes: [atomicsHelper.js] features: [Atomics, SharedArrayBuffer, TypedArray] ---*/ @@ -49,4 +49,4 @@ assert.sameValue( 'timed-out', '$262.agent.getReport() returns "timed-out"' ); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/null-for-timeout-agent.js b/test/built-ins/Atomics/wait/null-for-timeout-agent.js index 2ac79ee924..265ebefb9e 100644 --- a/test/built-ins/Atomics/wait/null-for-timeout-agent.js +++ b/test/built-ins/Atomics/wait/null-for-timeout-agent.js @@ -81,4 +81,4 @@ assert(lapse >= 0, 'The result of `(lapse >= 0)` is true (timeout should be a mi assert(lapse <= $262.agent.MAX_TIME_EPSILON, 'The result of `(lapse <= $262.agent.MAX_TIME_EPSILON)` is true (timeout should be a max of $262.agent.MAX_TIME_EPSILON)'); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/object-for-timeout-agent.js b/test/built-ins/Atomics/wait/object-for-timeout-agent.js index ba91897915..3e216b1256 100644 --- a/test/built-ins/Atomics/wait/object-for-timeout-agent.js +++ b/test/built-ins/Atomics/wait/object-for-timeout-agent.js @@ -87,4 +87,4 @@ assert(lapse >= 0, 'The result of `(lapse >= 0)` is true (timeout should be a mi assert(lapse <= $262.agent.MAX_TIME_EPSILON, 'The result of `(lapse <= $262.agent.MAX_TIME_EPSILON)` is true (timeout should be a max of $$262.agent.MAX_TIME_EPSILON)'); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/poisoned-object-for-timeout-throws-agent.js b/test/built-ins/Atomics/wait/poisoned-object-for-timeout-throws-agent.js index a3bb792b78..d6352bac29 100644 --- a/test/built-ins/Atomics/wait/poisoned-object-for-timeout-throws-agent.js +++ b/test/built-ins/Atomics/wait/poisoned-object-for-timeout-throws-agent.js @@ -85,4 +85,4 @@ assert(lapse >= 0, 'The result of `(lapse >= 0)` is true (timeout should be a mi assert(lapse <= $262.agent.MAX_TIME_EPSILON, 'The result of `(lapse <= $262.agent.MAX_TIME_EPSILON)` is true (timeout should be a max of $$262.agent.MAX_TIME_EPSILON)'); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/symbol-for-index-throws-agent.js b/test/built-ins/Atomics/wait/symbol-for-index-throws-agent.js index 728520ddf0..d323e6a5a4 100644 --- a/test/built-ins/Atomics/wait/symbol-for-index-throws-agent.js +++ b/test/built-ins/Atomics/wait/symbol-for-index-throws-agent.js @@ -97,4 +97,4 @@ const lapse = $262.agent.getReport(); assert(lapse >= 0, 'The result of `(lapse >= 0)` is true (The result of `(lapse >= 0)` is true (timeout should be a min of 0ms))'); assert(lapse <= $262.agent.MAX_TIME_EPSILON, 'The result of `(lapse <= $262.agent.MAX_TIME_EPSILON)` is true (The result of `(lapse <= $262.agent.MAX_TIME_EPSILON)` is true (timeout should be a max of $$262.agent.MAX_TIME_EPSILON))'); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/symbol-for-timeout-throws-agent.js b/test/built-ins/Atomics/wait/symbol-for-timeout-throws-agent.js index f745ef583b..96b1d731e4 100644 --- a/test/built-ins/Atomics/wait/symbol-for-timeout-throws-agent.js +++ b/test/built-ins/Atomics/wait/symbol-for-timeout-throws-agent.js @@ -72,4 +72,4 @@ const lapse = $262.agent.getReport(); assert(lapse >= 0, 'The result of `(lapse >= 0)` is true (timeout should be a min of 0ms)'); assert(lapse <= $262.agent.MAX_TIME_EPSILON, 'The result of `(lapse <= $262.agent.MAX_TIME_EPSILON)` is true (timeout should be a max of $$262.agent.MAX_TIME_EPSILON)'); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/symbol-for-value-throws-agent.js b/test/built-ins/Atomics/wait/symbol-for-value-throws-agent.js index c0e96c3c19..7cc4f4ca1e 100644 --- a/test/built-ins/Atomics/wait/symbol-for-value-throws-agent.js +++ b/test/built-ins/Atomics/wait/symbol-for-value-throws-agent.js @@ -88,4 +88,4 @@ const lapse = $262.agent.getReport(); assert(lapse >= 0, 'The result of `(lapse >= 0)` is true (timeout should be a min of 0ms)'); assert(lapse <= $262.agent.MAX_TIME_EPSILON, 'The result of `(lapse <= $262.agent.MAX_TIME_EPSILON)` is true (timeout should be a max of $$262.agent.MAX_TIME_EPSILON)'); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/true-for-timeout-agent.js b/test/built-ins/Atomics/wait/true-for-timeout-agent.js index 3b2de2ad9f..ef0ef6f277 100644 --- a/test/built-ins/Atomics/wait/true-for-timeout-agent.js +++ b/test/built-ins/Atomics/wait/true-for-timeout-agent.js @@ -81,4 +81,4 @@ assert(lapse >= 0, 'The result of `(lapse >= 0)` is true (timeout should be a mi assert(lapse <= $262.agent.MAX_TIME_EPSILON, 'The result of `(lapse <= $262.agent.MAX_TIME_EPSILON)` is true (timeout should be a max of $$262.agent.MAX_TIME_EPSILON)'); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/undefined-for-timeout.js b/test/built-ins/Atomics/wait/undefined-for-timeout.js index 4e7cebe7f1..52688b9ed5 100644 --- a/test/built-ins/Atomics/wait/undefined-for-timeout.js +++ b/test/built-ins/Atomics/wait/undefined-for-timeout.js @@ -20,7 +20,7 @@ features: [Atomics, SharedArrayBuffer, TypedArray] const WAIT_INDEX = 0; // Index all agents are waiting on const RUNNING = 1; const NUMAGENT = 2; // Total number of agents started -const WAKECOUNT = 2; // Total number of agents to wake up +const WAKECOUNT = 2; // Total number of agents to notify up $262.agent.start(` $262.agent.receiveBroadcast(function(sab) { @@ -55,9 +55,9 @@ $262.agent.waitUntil(i32a, RUNNING, NUMAGENT); $262.agent.tryYield(); assert.sameValue( - Atomics.wake(i32a, WAIT_INDEX, WAKECOUNT), + Atomics.notify(i32a, WAIT_INDEX, WAKECOUNT), WAKECOUNT, - 'Atomics.wake(i32a, WAIT_INDEX, WAKECOUNT) returns the value of `WAKECOUNT` (2)' + 'Atomics.notify(i32a, WAIT_INDEX, WAKECOUNT) returns the value of `WAKECOUNT` (2)' ); const reports = []; diff --git a/test/built-ins/Atomics/wait/undefined-index-defaults-to-zero.js b/test/built-ins/Atomics/wait/undefined-index-defaults-to-zero.js index 14ba084ced..3d207c1a11 100644 --- a/test/built-ins/Atomics/wait/undefined-index-defaults-to-zero.js +++ b/test/built-ins/Atomics/wait/undefined-index-defaults-to-zero.js @@ -45,6 +45,6 @@ $262.agent.waitUntil(i32a, RUNNING, 1); // Try to yield control to ensure the agent actually started to wait. $262.agent.tryYield(); -assert.sameValue(Atomics.wake(i32a, 0), 1, 'Atomics.wake(i32a, 0) returns 1'); // wake at index 0 -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); // wake again at index 0, and 0 agents should be woken +assert.sameValue(Atomics.notify(i32a, 0), 1, 'Atomics.notify(i32a, 0) returns 1'); // notify at index 0 +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); // notify again at index 0, and 0 agents should be woken assert.sameValue($262.agent.getReport(), 'ok', '$262.agent.getReport() returns "ok"'); diff --git a/test/built-ins/Atomics/wait/wait-index-value-not-equal.js b/test/built-ins/Atomics/wait/wait-index-value-not-equal.js index af9d56b603..5d9babd78e 100644 --- a/test/built-ins/Atomics/wait/wait-index-value-not-equal.js +++ b/test/built-ins/Atomics/wait/wait-index-value-not-equal.js @@ -54,4 +54,4 @@ assert.sameValue( 'not-equal', '$262.agent.getReport() returns "not-equal"' ); -assert.sameValue(Atomics.wake(i32a, 0), 0, 'Atomics.wake(i32a, 0) returns 0'); +assert.sameValue(Atomics.notify(i32a, 0), 0, 'Atomics.notify(i32a, 0) returns 0'); diff --git a/test/built-ins/Atomics/wait/waiterlist-block-indexedposition-wake.js b/test/built-ins/Atomics/wait/waiterlist-block-indexedposition-wake.js index ba6896cceb..592c46ee5e 100644 --- a/test/built-ins/Atomics/wait/waiterlist-block-indexedposition-wake.js +++ b/test/built-ins/Atomics/wait/waiterlist-block-indexedposition-wake.js @@ -56,20 +56,20 @@ $262.agent.broadcast(i32a.buffer); // Wait until all agents started. $262.agent.waitUntil(i32a, RUNNING, NUMAGENT); -// Wake index 1, wakes nothing -assert.sameValue(Atomics.wake(i32a, 1), 0, 'Atomics.wake(i32a, 1) returns 0'); +// Wake index 1, notifies nothing +assert.sameValue(Atomics.notify(i32a, 1), 0, 'Atomics.notify(i32a, 1) returns 0'); -// Wake index 3, wakes nothing -assert.sameValue(Atomics.wake(i32a, 3), 0, 'Atomics.wake(i32a, 3) returns 0'); +// Wake index 3, notifies nothing +assert.sameValue(Atomics.notify(i32a, 3), 0, 'Atomics.notify(i32a, 3) returns 0'); -// Wake index 2, wakes 1 +// Wake index 2, notifies 1 var woken = 0; -while ((woken = Atomics.wake(i32a, 2)) === 0) ; -assert.sameValue(woken, 1, 'Atomics.wake(i32a, 2) returns 1'); +while ((woken = Atomics.notify(i32a, 2)) === 0) ; +assert.sameValue(woken, 1, 'Atomics.notify(i32a, 2) returns 1'); assert.sameValue($262.agent.getReport(), 'ok', '$262.agent.getReport() returns "ok"'); -// Wake index 0, wakes 1 +// Wake index 0, notifies 1 var woken = 0; -while ((woken = Atomics.wake(i32a, 0)) === 0) ; -assert.sameValue(woken, 1, 'Atomics.wake(i32a, 0) returns 1'); +while ((woken = Atomics.notify(i32a, 0)) === 0) ; +assert.sameValue(woken, 1, 'Atomics.notify(i32a, 0) returns 1'); assert.sameValue($262.agent.getReport(), 'ok', '$262.agent.getReport() returns "ok"'); diff --git a/test/built-ins/Atomics/wait/waiterlist-order-of-operations-is-fifo.js b/test/built-ins/Atomics/wait/waiterlist-order-of-operations-is-fifo.js index 81c1030a8a..c5a731f334 100644 --- a/test/built-ins/Atomics/wait/waiterlist-order-of-operations-is-fifo.js +++ b/test/built-ins/Atomics/wait/waiterlist-order-of-operations-is-fifo.js @@ -77,13 +77,13 @@ for (var i = 0; i < NUMAGENT; i++) { Atomics.store(i32a, LOCK_INDEX, 0); } -// Agents must wake in the order they waited. +// Agents must notify in the order they waited. for (var i = 0; i < NUMAGENT; i++) { var woken = 0; - while ((woken = Atomics.wake(i32a, WAIT_INDEX, 1)) === 0) ; + while ((woken = Atomics.notify(i32a, WAIT_INDEX, 1)) === 0) ; assert.sameValue(woken, 1, - 'Atomics.wake(i32a, WAIT_INDEX, 1) returns 1, at index = ' + i); + 'Atomics.notify(i32a, WAIT_INDEX, 1) returns 1, at index = ' + i); assert.sameValue($262.agent.getReport(), 'ok', '$262.agent.getReport() returns "ok", at index = ' + i); diff --git a/test/built-ins/Atomics/wait/was-woken-before-timeout.js b/test/built-ins/Atomics/wait/was-woken-before-timeout.js index d1fa5944e8..eebd1f88c4 100644 --- a/test/built-ins/Atomics/wait/was-woken-before-timeout.js +++ b/test/built-ins/Atomics/wait/was-woken-before-timeout.js @@ -50,7 +50,7 @@ $262.agent.waitUntil(i32a, RUNNING, 1); // Try to yield control to ensure the agent actually started to wait. $262.agent.tryYield(); -assert.sameValue(Atomics.wake(i32a, 0), 1, 'Atomics.wake(i32a, 0) returns 1'); +assert.sameValue(Atomics.notify(i32a, 0), 1, 'Atomics.notify(i32a, 0) returns 1'); const lapse = $262.agent.getReport();