diff options
Diffstat (limited to 'tools/test-js-optimizer-asm-regs.js')
-rw-r--r-- | tools/test-js-optimizer-asm-regs.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/test-js-optimizer-asm-regs.js b/tools/test-js-optimizer-asm-regs.js index 0afced29..a8b637ce 100644 --- a/tools/test-js-optimizer-asm-regs.js +++ b/tools/test-js-optimizer-asm-regs.js @@ -41,5 +41,9 @@ function retf() { } // missing final return, need it as a float } -// EMSCRIPTEN_GENERATED_FUNCTIONS: ["asm", "_doit", "rett", "ret2t", "retf"] +function stackRestore(top) { + top = top|0; + STACKTOP = top; +} +// EMSCRIPTEN_GENERATED_FUNCTIONS: ["asm", "_doit", "rett", "ret2t", "retf", "stackRestore"] |