Implement reference counting (#592)

This commit is contained in:
Daniel Wirtz
2019-06-05 23:15:39 +02:00
committed by GitHub
parent 3ed76a97f0
commit 0484a6b740
601 changed files with 261645 additions and 146131 deletions

View File

@ -1,16 +1,16 @@
import { E_NOTIMPLEMENTED } from "./util/error";
export namespace table {
// export function copy(dst: u32, src: u32, n: u32): void {
// __table_copy(dst, src, n);
// }
export function copy(dst: u32, src: u32, n: u32): void {
throw new Error(E_NOTIMPLEMENTED);
}
// Passive elements
export function init(elementIndex: u32, srcOffset: u32, dstOffset: u32, n: u32): void {
throw new Error(E_NOTIMPLEMENTED);
}
// export function init(elementIndex: u32, srcOffset: u32, dstOffset: u32, n: u32): void {
// __table_init(elementIndex, srcOffset, dstOffset, n);
// }
// export function drop(elementIndex: u32): void {
// __table_drop(elementIndex);
// }
export function drop(elementIndex: u32): void {
throw new Error(E_NOTIMPLEMENTED);
}
}