summaryrefslogtreecommitdiff
path: root/test/lld/safe_stack_standalone-wasm.wat.out
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2020-05-20 17:00:36 -0400
committerGitHub <noreply@github.com>2020-05-20 14:00:36 -0700
commite4d1e203c8bf8577e645dbf7ab265d1ec1c68bee (patch)
treecbf5da712297bf4d8af0bdd21c023e528dd2b03b /test/lld/safe_stack_standalone-wasm.wat.out
parent677a9b8e29ac9088c361b9b20f6d513c76355106 (diff)
downloadbinaryen-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/safe_stack_standalone-wasm.wat.out')
-rw-r--r--test/lld/safe_stack_standalone-wasm.wat.out51
1 files changed, 0 insertions, 51 deletions
diff --git a/test/lld/safe_stack_standalone-wasm.wat.out b/test/lld/safe_stack_standalone-wasm.wat.out
index 2a78fb9bb..e39b076ff 100644
--- a/test/lld/safe_stack_standalone-wasm.wat.out
+++ b/test/lld/safe_stack_standalone-wasm.wat.out
@@ -18,9 +18,6 @@
(export "__data_end" (global $global$2))
(export "main" (func $main))
(export "__set_stack_limit" (func $__set_stack_limit))
- (export "stackSave" (func $stackSave))
- (export "stackAlloc" (func $stackAlloc))
- (export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
(export "_start" (func $_start))
(func $__wasm_call_ctors
@@ -148,51 +145,6 @@
(local.get $0)
)
)
- (func $stackSave (result i32)
- (global.get $global$0)
- )
- (func $stackAlloc (param $0 i32) (result i32)
- (local $1 i32)
- (local $2 i32)
- (block
- (if
- (i32.lt_u
- (local.tee $2
- (local.tee $1
- (i32.and
- (i32.sub
- (global.get $global$0)
- (local.get $0)
- )
- (i32.const -16)
- )
- )
- )
- (global.get $__stack_limit)
- )
- (unreachable)
- )
- (global.set $global$0
- (local.get $2)
- )
- )
- (local.get $1)
- )
- (func $stackRestore (param $0 i32)
- (local $1 i32)
- (if
- (i32.lt_u
- (local.tee $1
- (local.get $0)
- )
- (global.get $__stack_limit)
- )
- (unreachable)
- )
- (global.set $global$0
- (local.get $1)
- )
- )
(func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
@@ -224,9 +176,6 @@
"__wasm_call_ctors",
"main",
"__set_stack_limit",
- "stackSave",
- "stackAlloc",
- "stackRestore",
"__growWasmMemory",
"_start"
],