Text file
src/runtime/sys_wasmx.s
1 // Copyright 2018 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 //go:build wasm || wasm32
6
7 #include "textflag.h"
8
9 TEXT runtime·wasmDiv(SB), NOSPLIT, $0-0
10 Get R0
11 I64Const $-0x8000000000000000
12 I64Eq
13 If
14 Get R1
15 I64Const $-1
16 I64Eq
17 If
18 I64Const $-0x8000000000000000
19 Return
20 End
21 End
22 Get R0
23 Get R1
24 I64DivS
25 Return
26
27 TEXT runtime·exitThread(SB), NOSPLIT, $0-0
28 UNDEF
29
30 TEXT runtime·osyield(SB), NOSPLIT, $0-0
31 UNDEF
32
33 TEXT runtime·currentMemory(SB), NOSPLIT, $0
34 Get SP
35 CurrentMemory
36 I32Store ret+0(FP)
37 RET
38
View as plain text