...
Source file
src/runtime/sys_wasm.go
Documentation: runtime
1
2
3
4
5 package runtime
6
7 import (
8 "internal/goarch"
9 "runtime/internal/sys"
10 "unsafe"
11 )
12
13 type m0Stack struct {
14 _ [8192 * sys.StackGuardMultiplier]byte
15 }
16
17 var wasmStack m0Stack
18
19 func wasmDiv()
20
21 func wasmTruncS()
22 func wasmTruncU()
23
24
25 func wasmExit(code int32)
26
27
28
29 func gostartcall(buf *gobuf, fn, ctxt unsafe.Pointer) {
30 sp := buf.sp
31 sp -= goarch.PtrSize
32 *(*uintptr)(unsafe.Pointer(sp)) = buf.pc
33 buf.sp = sp
34 buf.pc = uintptr(fn)
35 buf.ctxt = ctxt
36 }
37
View as plain text