mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
implement string escapes
This commit is contained in:
parent
09ae6cbb56
commit
3270e6b501
4 changed files with 52 additions and 8 deletions
|
|
@ -112,7 +112,9 @@ export function lower(ast: Ast): wasm.Module {
|
|||
}
|
||||
});
|
||||
|
||||
cx.reservedHeapMemoryStart = (mod.datas[0].init.length & ~0x8) + 0x8;
|
||||
const HEAP_ALIGN = 0x08;
|
||||
cx.reservedHeapMemoryStart =
|
||||
(mod.datas[0].init.length + (HEAP_ALIGN - 1)) & ~(HEAP_ALIGN - 1);
|
||||
|
||||
addRt(cx, ast);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue