diff options
author | Mike Pall <mike> | 2021-10-27 21:56:07 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2021-10-27 21:56:07 +0200 |
commit | b4b2dce9fc3ffaaaede39b36d06415311e2aa516 (patch) | |
tree | b4a5d8c00ef2df31ca77ede1cf92f526cf13b332 | |
parent | bfcb74ed36d733bae249fe7642b7324a56be88d0 (diff) | |
download | luajit-b4b2dce9fc3ffaaaede39b36d06415311e2aa516.tar.gz luajit-b4b2dce9fc3ffaaaede39b36d06415311e2aa516.tar.bz2 luajit-b4b2dce9fc3ffaaaede39b36d06415311e2aa516.zip |
ARM64: Fix pcall() error case.
Reported by Alex Orlenko.
Diffstat (limited to '')
-rw-r--r-- | src/vm_arm64.dasc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vm_arm64.dasc b/src/vm_arm64.dasc index c7090ca3..eb87857f 100644 --- a/src/vm_arm64.dasc +++ b/src/vm_arm64.dasc | |||
@@ -1164,9 +1164,10 @@ static void build_subroutines(BuildCtx *ctx) | |||
1164 | |//-- Base library: catch errors ---------------------------------------- | 1164 | |//-- Base library: catch errors ---------------------------------------- |
1165 | | | 1165 | | |
1166 | |.ffunc pcall | 1166 | |.ffunc pcall |
1167 | | cmp NARGS8:RC, #8 | ||
1167 | | ldrb TMP0w, GL->hookmask | 1168 | | ldrb TMP0w, GL->hookmask |
1168 | | subs NARGS8:RC, NARGS8:RC, #8 | ||
1169 | | blo ->fff_fallback | 1169 | | blo ->fff_fallback |
1170 | | sub NARGS8:RC, NARGS8:RC, #8 | ||
1170 | | mov RB, BASE | 1171 | | mov RB, BASE |
1171 | | add BASE, BASE, #16 | 1172 | | add BASE, BASE, #16 |
1172 | | ubfx TMP0w, TMP0w, #HOOK_ACTIVE_SHIFT, #1 | 1173 | | ubfx TMP0w, TMP0w, #HOOK_ACTIVE_SHIFT, #1 |