aboutsummaryrefslogtreecommitdiff
path: root/src/lj_crecord.c
diff options
context:
space:
mode:
authorMike Pall <mike>2023-09-11 16:35:28 +0200
committerMike Pall <mike>2023-09-11 16:35:28 +0200
commit1c33f46314cc4e3cb52ac83c5b27419bc06b5154 (patch)
treedc0a2609e21612839aa657cf9129009247bfc9c5 /src/lj_crecord.c
parentf63bc569fab1450def4c817f100e580dddb425c5 (diff)
downloadluajit-1c33f46314cc4e3cb52ac83c5b27419bc06b5154.tar.gz
luajit-1c33f46314cc4e3cb52ac83c5b27419bc06b5154.tar.bz2
luajit-1c33f46314cc4e3cb52ac83c5b27419bc06b5154.zip
Windows/ARM64: Support Windows calling conventions.
Dear Microsoft: your butchering of the (perfectly fine) ARM64 ABI is a disgrace. Thanks to Peter Cawley. #593
Diffstat (limited to 'src/lj_crecord.c')
-rw-r--r--src/lj_crecord.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lj_crecord.c b/src/lj_crecord.c
index d7a522fb..55d0b3ef 100644
--- a/src/lj_crecord.c
+++ b/src/lj_crecord.c
@@ -1118,13 +1118,9 @@ static TRef crec_call_args(jit_State *J, RecordFFData *rd,
1118 ngpr = 1; 1118 ngpr = 1;
1119 else if (ctype_cconv(ct->info) == CTCC_FASTCALL) 1119 else if (ctype_cconv(ct->info) == CTCC_FASTCALL)
1120 ngpr = 2; 1120 ngpr = 2;
1121#elif LJ_TARGET_ARM64 1121#elif LJ_TARGET_ARM64 && LJ_TARGET_OSX
1122#if LJ_ABI_WIN
1123#error "NYI: ARM64 Windows ABI calling conventions"
1124#elif LJ_TARGET_OSX
1125 int ngpr = CCALL_NARG_GPR; 1122 int ngpr = CCALL_NARG_GPR;
1126#endif 1123#endif
1127#endif
1128 1124
1129 /* Skip initial attributes. */ 1125 /* Skip initial attributes. */
1130 fid = ct->sib; 1126 fid = ct->sib;