Source File
go_call.go
Belonging Package
github.com/tetratelabs/wazero/internal/engine/wazevo/backend
package backendimport// GoFunctionCallRequiredStackSize returns the size of the stack required for the Go function call.// argBegin is the index of the first argument in the signature which is not either execution context or module context.func ( *ssa.Signature, int) (, int64) {var , int64for , := range .Params[:] {:= int64(.Size())if < 8 {= 8 // We use uint64 for all basic types, except SIMD v128.}+=}for , := range .Results {:= int64(.Size())if < 8 {= 8 // We use uint64 for all basic types, except SIMD v128.}+=}if > {=} else {=}=// Align to 16 bytes.= ( + 15) &^ 15return}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |