Rename wast to wat

This commit is contained in:
dcodeIO
2018-02-17 11:09:22 +01:00
parent 6b459259f9
commit e50a23bf75
123 changed files with 8534 additions and 176 deletions

View File

@ -10,6 +10,7 @@ const ALIGN_MASK: usize = ALIGN_SIZE - 1;
var HEAP_OFFSET: usize = HEAP_BASE;
@global
export function allocate_memory(size: usize): usize {
if (!size) return 0;
var ptr = HEAP_OFFSET;
@ -25,10 +26,12 @@ export function allocate_memory(size: usize): usize {
return ptr;
}
@global
export function free_memory(ptr: usize): void {
// nop
}
@global
export function reset_memory(): void {
HEAP_OFFSET = HEAP_BASE;
}