From 777d33d40ff030f1711c40bf3cd5bc4bc36af313 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 16 Jan 2019 13:22:39 -0800 Subject: 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. --- auto_update_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auto_update_tests.py') 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) -- cgit v1.2.3