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

Function Test16Op

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

Source from the content-addressed store, hash-verified

162}
163
164function Test16Op(operation, func) {
165 let i16 = new Uint16Array(memory.buffer);
166 for (let i = 0; i < i16.length; i = inc(i)) {
167 let expected = 0xd00d;
168 let value = 0x1111;
169 i16[i] = expected;
170 assertEquals(expected, func(i * kMemtypeSize16, value));
171 assertEquals(operation(expected, value), i16[i]);
172 }
173 VerifyBoundsCheck(func, kMemtypeSize16);
174}
175
176function Test8Op(operation, func) {
177 let i8 = new Uint8Array(memory.buffer);

Callers 1

atomics.jsFile · 0.85

Calls 4

VerifyBoundsCheckFunction · 0.85
incFunction · 0.70
funcFunction · 0.70
assertEqualsFunction · 0.50

Tested by

no test coverage detected