(min, max, shared)
| 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); |
no test coverage detected