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

Method addMemory64

deps/v8/test/mjsunit/wasm/wasm-module-builder.js:1498–1507  ·  view source on GitHub ↗
(min, max, shared)

Source from the content-addressed store, hash-verified

1496 }
1497
1498 addMemory64(min, max, shared) {
1499 // Note: All imported memories are added before declared ones (see the check
1500 // in {addImportedMemory}).
1501 const imported_memories =
1502 this.imports.filter(i => i.kind == kExternalMemory).length;
1503 const mem_index = imported_memories + this.memories.length;
1504 this.memories.push(
1505 {min: min, max: max, shared: shared || false, is_memory64: true});
1506 return mem_index;
1507 }
1508
1509 addExplicitSection(bytes) {
1510 this.explicit.push(bytes);

Calls 2

filterMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected