diff options
author | Sam Clegg <sbc@chromium.org> | 2020-05-20 17:00:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 14:00:36 -0700 |
commit | e4d1e203c8bf8577e645dbf7ab265d1ec1c68bee (patch) | |
tree | cbf5da712297bf4d8af0bdd21c023e528dd2b03b /test/lld/main_module_table_2.wat.out | |
parent | 677a9b8e29ac9088c361b9b20f6d513c76355106 (diff) | |
download | binaryen-e4d1e203c8bf8577e645dbf7ab265d1ec1c68bee.tar.gz binaryen-e4d1e203c8bf8577e645dbf7ab265d1ec1c68bee.tar.bz2 binaryen-e4d1e203c8bf8577e645dbf7ab265d1ec1c68bee.zip |
Remove stackSave/stackAlloc/stackRestore code generation (#2852)
These are now implemented in assembly as part of emscripten's
compiler-rt.
See: https://github.com/emscripten-core/emscripten/pull/11166
Diffstat (limited to 'test/lld/main_module_table_2.wat.out')
-rw-r--r-- | test/lld/main_module_table_2.wat.out | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/test/lld/main_module_table_2.wat.out b/test/lld/main_module_table_2.wat.out index 2117bf243..df14789f0 100644 --- a/test/lld/main_module_table_2.wat.out +++ b/test/lld/main_module_table_2.wat.out @@ -2,7 +2,6 @@ (type $none_=>_none (func)) (type $i32_=>_none (func (param i32))) (type $i32_=>_i32 (func (param i32) (result i32))) - (type $none_=>_i32 (func (result i32))) (import "env" "table" (table $0 2 funcref)) (elem (global.get $__table_base) $__stdio_write) (import "env" "__stack_pointer" (global $sp_import i32)) @@ -12,38 +11,12 @@ (global $sp (mut i32) (global.get $sp_import)) (export "__stdio_write" (func $__stdio_write)) (export "__data_end" (global $global)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) (export "__growWasmMemory" (func $__growWasmMemory)) (export "__assign_got_enties" (func $__assign_got_enties)) (export "dynCall_v" (func $dynCall_v)) (func $__stdio_write (nop) ) - (func $stackSave (result i32) - (global.get $sp) - ) - (func $stackAlloc (param $0 i32) (result i32) - (local $1 i32) - (global.set $sp - (local.tee $1 - (i32.and - (i32.sub - (global.get $sp) - (local.get $0) - ) - (i32.const -16) - ) - ) - ) - (local.get $1) - ) - (func $stackRestore (param $0 i32) - (global.set $sp - (local.get $0) - ) - ) (func $__growWasmMemory (param $newSize i32) (result i32) (memory.grow (local.get $newSize) @@ -79,9 +52,6 @@ ], "exports": [ "__stdio_write", - "stackSave", - "stackAlloc", - "stackRestore", "__growWasmMemory", "__assign_got_enties", "dynCall_v" |