summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wasm2js.h2
-rw-r--r--test/wasm2js/atomics_32.2asm.js2
-rw-r--r--test/wasm2js/atomics_32.2asm.js.opt2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm2js.h b/src/wasm2js.h
index ba5798285..7c9bef0ba 100644
--- a/src/wasm2js.h
+++ b/src/wasm2js.h
@@ -2868,7 +2868,7 @@ void Wasm2JSGlue::emitSpecialSupport() {
} else if (import->base == ABI::wasm2js::ATOMIC_RMW_I64) {
out << R"(
function wasm2js_atomic_rmw_i64(op, bytes, offset, ptr, valueLow, valueHigh) {
- assert(bytes == 8); // TODO: support 1, 2, 4 as well
+ // TODO: support bytes=1, 2, 4 as well as 8.
var view = new BigInt64Array(bufferView.buffer); // TODO cache
ptr = (ptr + offset) >> 3;
var value = BigInt(valueLow >>> 0) | (BigInt(valueHigh >>> 0) << BigInt(32));
diff --git a/test/wasm2js/atomics_32.2asm.js b/test/wasm2js/atomics_32.2asm.js
index 1b09d634d..89425ac94 100644
--- a/test/wasm2js/atomics_32.2asm.js
+++ b/test/wasm2js/atomics_32.2asm.js
@@ -40,7 +40,7 @@ memorySegments[1] = base64DecodeToExistingUint8Array(new Uint8Array(6), 0, "d29y
}
function wasm2js_atomic_rmw_i64(op, bytes, offset, ptr, valueLow, valueHigh) {
- assert(bytes == 8); // TODO: support 1, 2, 4 as well
+ // TODO: support bytes=1, 2, 4 as well as 8.
var view = new BigInt64Array(bufferView.buffer); // TODO cache
ptr = (ptr + offset) >> 3;
var value = BigInt(valueLow >>> 0) | (BigInt(valueHigh >>> 0) << BigInt(32));
diff --git a/test/wasm2js/atomics_32.2asm.js.opt b/test/wasm2js/atomics_32.2asm.js.opt
index 1b62f99b3..94f25dc2c 100644
--- a/test/wasm2js/atomics_32.2asm.js.opt
+++ b/test/wasm2js/atomics_32.2asm.js.opt
@@ -40,7 +40,7 @@ memorySegments[1] = base64DecodeToExistingUint8Array(new Uint8Array(6), 0, "d29y
}
function wasm2js_atomic_rmw_i64(op, bytes, offset, ptr, valueLow, valueHigh) {
- assert(bytes == 8); // TODO: support 1, 2, 4 as well
+ // TODO: support bytes=1, 2, 4 as well as 8.
var view = new BigInt64Array(bufferView.buffer); // TODO cache
ptr = (ptr + offset) >> 3;
var value = BigInt(valueLow >>> 0) | (BigInt(valueHigh >>> 0) << BigInt(32));