diff options
author | Mike Pall <mike> | 2023-09-17 10:09:58 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2023-09-17 10:09:58 +0200 |
commit | 42ca6e120feebca85f1618da1c80cfa80b1d63ca (patch) | |
tree | 5121e57ede761978fe1bf71f5aae764372a657f4 /src | |
parent | 7a77a3cd85ed49498cc3b17e70c46ad518aebb72 (diff) | |
download | luajit-42ca6e120feebca85f1618da1c80cfa80b1d63ca.tar.gz luajit-42ca6e120feebca85f1618da1c80cfa80b1d63ca.tar.bz2 luajit-42ca6e120feebca85f1618da1c80cfa80b1d63ca.zip |
ARM64: Set fixed interpreter registers before rethrow.
Thanks to Peter Cawley. #593
Diffstat (limited to 'src')
-rw-r--r-- | src/vm_arm64.dasc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vm_arm64.dasc b/src/vm_arm64.dasc index 34d29982..61a3ba6d 100644 --- a/src/vm_arm64.dasc +++ b/src/vm_arm64.dasc | |||
@@ -2029,13 +2029,13 @@ static void build_subroutines(BuildCtx *ctx) | |||
2029 | |.if JIT | 2029 | |.if JIT |
2030 | | ldr L, SAVE_L | 2030 | | ldr L, SAVE_L |
2031 | |1: | 2031 | |1: |
2032 | | movz TISNUM, #(LJ_TISNUM>>1)&0xffff, lsl #48 | ||
2033 | | movz TISNUMhi, #(LJ_TISNUM>>1)&0xffff, lsl #16 | ||
2034 | | movn TISNIL, #0 | ||
2032 | | cmn CARG1w, #LUA_ERRERR | 2035 | | cmn CARG1w, #LUA_ERRERR |
2033 | | bhs >9 // Check for error from exit. | 2036 | | bhs >9 // Check for error from exit. |
2034 | | lsl RC, CARG1, #3 | ||
2035 | | ldr LFUNC:CARG2, [BASE, FRAME_FUNC] | 2037 | | ldr LFUNC:CARG2, [BASE, FRAME_FUNC] |
2036 | | movz TISNUM, #(LJ_TISNUM>>1)&0xffff, lsl #48 | 2038 | | lsl RC, CARG1, #3 |
2037 | | movz TISNUMhi, #(LJ_TISNUM>>1)&0xffff, lsl #16 | ||
2038 | | movn TISNIL, #0 | ||
2039 | | and LFUNC:CARG2, CARG2, #LJ_GCVMASK | 2039 | | and LFUNC:CARG2, CARG2, #LJ_GCVMASK |
2040 | | str RCw, SAVE_MULTRES | 2040 | | str RCw, SAVE_MULTRES |
2041 | | str BASE, L->base | 2041 | | str BASE, L->base |