Text file src/runtime/memmove_wasm.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  #include "textflag.h"
     6  
     7  // See memmove Go doc for important implementation constraints.
     8  
     9  // func memmove(to, from unsafe.Pointer, n uintptr)
    10  TEXT runtime·memmove(SB), NOSPLIT, $0-24
    11  	MOVD to+0(FP), R0
    12  	MOVD from+8(FP), R1
    13  	MOVD n+16(FP), R2
    14  
    15  	Get R0
    16  	I32WrapI64
    17  	Get R1
    18  	I32WrapI64
    19  	Get R2
    20  	I32WrapI64
    21  	MemoryCopy
    22  	RET
    23  

View as plain text