Files
wazero/internal/engine/compiler/arch_amd64.s
Takeshi Yoneda 9a9b361ac8 Vector values support in ahead-of-time compiler (#572)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2022-05-19 11:02:15 -06:00

10 lines
566 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.