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

Function Test16Op64

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

Source from the content-addressed store, hash-verified

210}
211
212function Test16Op64(operation, func) {
213 let i16 = new Uint16Array(memory.buffer);
214 for (let i = 0; i < i16.length; i = inc(i)) {
215 let expected = 0xd00d;
216 let value = 0x1111n;
217 i16[i] = expected;
218 assertEquals(expected, Number(func(i * kMemtypeSize16, value)));
219 assertEquals(operation(expected, Number(value)), i16[i]);
220 }
221 VerifyBoundsCheck64(func, kMemtypeSize16);
222}
223
224function Test8Op64(operation, func) {
225 let i8 = new Uint8Array(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