Text file test/wasm32memlimit.dir/memory_wasm32.s

     1  // Copyright 2026 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  TEXT ·currentMemory(SB), NOSPLIT, $0-4
     8  	Get SP
     9  	CurrentMemory
    10  	I32Store ret+0(FP)
    11  	RET
    12  
    13  TEXT ·growMemory(SB), NOSPLIT, $0-8
    14  	Get SP
    15  	I32Load pages+0(FP)
    16  	GrowMemory
    17  	I32Store ret+4(FP)
    18  	RET
    19  

View as plain text