Files
wazero/internal/engine/compiler/arch_amd64.s
2023-02-10 09:39:04 +09:00

10 lines
544 B
ArmAsm

#include "funcdata.h"
#include "textflag.h"
// nativecall(codeSegment, ce, moduleInstanceAddress)
TEXT ·nativecall(SB), NOSPLIT|NOFRAME, $0-24
MOVQ ce+8(FP), R13 // Load the address of *callEngine. into amd64ReservedRegisterForCallEngine.
MOVQ moduleInstanceAddress+16(FP), R12 // Load the address of *wasm.ModuleInstance into amd64CallingConventionModuleInstanceAddressRegister.
MOVQ codeSegment+0(FP), AX // Load the address of native code.
JMP AX // Jump to native code.