MCPcopy Index your code
hub / github.com/nodejs/node / checkMemory

Function checkMemory

deps/v8/test/mjsunit/wasm/stringrefs-exec.js:439–448  ·  view source on GitHub ↗
(offset, bytes)

Source from the content-addressed store, hash-verified

437 }
438 }
439 function checkMemory(offset, bytes) {
440 let slop = 64;
441 assertMemoryBytesZero(Math.max(0, offset - slop), offset);
442 for (let i = 0; i < bytes.length; i++) {
443 assertEquals(bytes[i], memory[offset + i]);
444 }
445 assertMemoryBytesZero(offset + bytes.length,
446 Math.min(memory.length,
447 offset + bytes.length + slop));
448 }
449
450 for (let str of interestingStrings) {
451 let wtf8 = encodeWtf8(str);

Callers 2

stringrefs-exec.jsFile · 0.85
checkEncodingFunction · 0.85

Calls 4

assertMemoryBytesZeroFunction · 0.85
assertEqualsFunction · 0.50
maxMethod · 0.45
minMethod · 0.45

Tested by

no test coverage detected