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

Function Test8Op64

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

Source from the content-addressed store, hash-verified

222}
223
224function Test8Op64(operation, func) {
225 let i8 = new Uint8Array(memory.buffer);
226 for (let i = 0; i < i8.length; i = inc(i)) {
227 let expected = 0xbe;
228 let value = 0x12n;
229 i8[i] = expected;
230 assertEquals(expected, Number(func(i * kMemtypeSize8, value)));
231 assertEquals(operation(expected, Number(value)), i8[i]);
232 }
233 VerifyBoundsCheck64(func, kMemtypeSize8, 10);
234}
235
236(function TestAtomicAdd() {
237 print(arguments.callee.name);

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