github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/internal/engine/wazevo/entrypoint_amd64.go (about)

     1  //go:build amd64 && !tinygo
     2  
     3  package wazevo
     4  
     5  import _ "unsafe"
     6  
     7  // entrypoint is implemented by the backend.
     8  //
     9  //go:linkname entrypoint github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64.entrypoint
    10  func entrypoint(preambleExecutable, functionExecutable *byte, executionContextPtr uintptr, moduleContextPtr *byte, paramResultStackPtr *uint64, goAllocatedStackSlicePtr uintptr)
    11  
    12  // entrypoint is implemented by the backend.
    13  //
    14  //go:linkname afterGoFunctionCallEntrypoint github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64.afterGoFunctionCallEntrypoint
    15  func afterGoFunctionCallEntrypoint(executable *byte, executionContextPtr uintptr, stackPointer, framePointer uintptr)