MCPcopy Create free account
hub / github.com/nodejs/node / Test64Op

Function Test64Op

deps/v8/test/mjsunit/wasm/atomics.js:188–198  ·  view source on GitHub ↗
(operation, func)

Source from the content-addressed store, hash-verified

186}
187
188function Test64Op(operation, func) {
189 let i64 = new BigUint64Array(memory.buffer);
190 for (let i = 0; i < i64.length; i = inc(i)) {
191 let expected = 987659876543210n;
192 let value = 111111111111111n;
193 i64[i] = expected;
194 assertEquals(expected, func(i * kMemtypeSize64, value));
195 assertEquals(operation(expected, value), i64[i]);
196 }
197 VerifyBoundsCheck64(func, kMemtypeSize64);
198}
199
200function Test32Op64(operation, func) {
201 let i32 = new Uint32Array(memory.buffer);

Callers 1

atomics.jsFile · 0.85

Calls 4

VerifyBoundsCheck64Function · 0.85
incFunction · 0.70
funcFunction · 0.70
assertEqualsFunction · 0.50

Tested by

no test coverage detected