diff options
author | Mike Pall <mike> | 2023-09-11 16:35:28 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2023-09-11 16:35:28 +0200 |
commit | 1c33f46314cc4e3cb52ac83c5b27419bc06b5154 (patch) | |
tree | dc0a2609e21612839aa657cf9129009247bfc9c5 /src/lj_crecord.c | |
parent | f63bc569fab1450def4c817f100e580dddb425c5 (diff) | |
download | luajit-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.c | 6 |
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; |