Skip to content

Commit 6e1af7d

Browse files
committed
Add rust_psm_replace_stack
1 parent 6452a64 commit 6e1af7d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

psm/src/arch/wasm32.o

66 Bytes
Binary file not shown.

psm/src/arch/wasm32.s

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,15 @@ rust_psm_on_stack:
4646
local.get 3
4747
global.set __stack_pointer
4848
end_function
49+
50+
.globl rust_psm_replace_stack
51+
.type rust_psm_replace_stack,@function
52+
rust_psm_replace_stack:
53+
.functype rust_psm_replace_stack (i32, i32, i32) -> ()
54+
local.get 2
55+
global.set __stack_pointer
56+
local.get 0
57+
local.get 1
58+
call_indirect (i32) -> ()
59+
unreachable
60+
end_function

0 commit comments

Comments
 (0)