summaryrefslogtreecommitdiff
path: root/auto_update_tests.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2019-01-16 13:22:39 -0800
committerGitHub <noreply@github.com>2019-01-16 13:22:39 -0800
commit777d33d40ff030f1711c40bf3cd5bc4bc36af313 (patch)
tree343d05d218b55dfd6e453f90d76d896cd84d1865 /auto_update_tests.py
parentcbb24eb4a0810640c9dcee2f6682c64f9bc6c512 (diff)
downloadbinaryen-777d33d40ff030f1711c40bf3cd5bc4bc36af313.tar.gz
binaryen-777d33d40ff030f1711c40bf3cd5bc4bc36af313.tar.bz2
binaryen-777d33d40ff030f1711c40bf3cd5bc4bc36af313.zip
Emscripten stack simplification (#1870)
This takes advantage of the recent memory simplification in emscripten, where JS static allocation is done at compile time. That means we know the stack's initial location at compile time, and can apply it. This is the binaryen side of that: * asm2wasm support for asm.js globals with an initial value var X = Y; where Y is not 0 (which is what the stack now is). * wasm-emscripten-finalize support for a flag --initial-stack-pointer=X, and remove the old code to import the stack's initial location.
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-xauto_update_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py
index 9d156472c..bef6a8908 100755
--- a/auto_update_tests.py
+++ b/auto_update_tests.py
@@ -87,7 +87,7 @@ def update_lld_tests():
if ext != '.out' and not os.path.exists(out_path):
continue
cmd = (WASM_EMSCRIPTEN_FINALIZE +
- [wast_path, '-S', '--global-base=568'] + ext_args)
+ [wast_path, '-S', '--global-base=568', '--initial-stack-pointer=16384'] + ext_args)
actual = run_command(cmd)
with open(out_path, 'w') as o:
o.write(actual)