Text file src/runtime/memclr_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 memclrNoHeapPointers Go doc for important implementation constraints.
     8  
     9  // func memclrNoHeapPointers(ptr unsafe.Pointer, n uintptr)
    10  TEXT runtime·memclrNoHeapPointers(SB), NOSPLIT, $0-16
    11  	MOVD ptr+0(FP), R0
    12  	MOVD n+8(FP), R1
    13  
    14  	Get R0
    15  	I32WrapI64
    16  	I32Const $0
    17  	Get R1
    18  	I32WrapI64
    19  	MemoryFill
    20  	RET
    21  

View as plain text