...

Text file src/runtime/sys_wasm.s

Documentation: runtime

     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#include "textflag.h"
     6
     7TEXT runtime·wasmDiv(SB), NOSPLIT, $0-0
     8	Get R0
     9	I64Const $-0x8000000000000000
    10	I64Eq
    11	If
    12		Get R1
    13		I64Const $-1
    14		I64Eq
    15		If
    16			I64Const $-0x8000000000000000
    17			Return
    18		End
    19	End
    20	Get R0
    21	Get R1
    22	I64DivS
    23	Return
    24
    25TEXT runtime·exitThread(SB), NOSPLIT, $0-0
    26	UNDEF
    27
    28TEXT runtime·osyield(SB), NOSPLIT, $0-0
    29	UNDEF
    30
    31TEXT runtime·currentMemory(SB), NOSPLIT, $0
    32	Get SP
    33	CurrentMemory
    34	I32Store ret+0(FP)
    35	RET
    36
    37TEXT runtime·growMemory(SB), NOSPLIT, $0
    38	Get SP
    39	I32Load pages+0(FP)
    40	GrowMemory
    41	I32Store ret+8(FP)
    42	RET

View as plain text