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

Function testLoad

deps/v8/test/mjsunit/harmony/atomics.js:254–258  ·  view source on GitHub ↗
(signedValue, unsignedValue)

Source from the content-addressed store, hash-verified

252 var u32 = new Uint32Array(sab);
253
254 function testLoad(signedValue, unsignedValue) {
255 u32[0] = unsignedValue;
256 assertEquals(unsignedValue, Atomics.load(u32, 0));
257 assertEquals(signedValue, Atomics.load(i32, 0));
258 }
259
260 testLoad(0x3fffffff, 0x3fffffff); // 2**30-1 (always smi)
261 testLoad(0x40000000, 0x40000000); // 2**30 (smi if signed and 32-bits)

Callers 1

atomics.jsFile · 0.70

Calls 2

assertEqualsFunction · 0.50
loadMethod · 0.45

Tested by

no test coverage detected