mirror of
https://github.com/love2d/megasource.git
synced 2026-08-19 12:14:41 +02:00
update LuaJIT to the latest commit (5a18d45)
This commit is contained in:
+16
-10
@@ -1,6 +1,6 @@
|
||||
|// Low-level VM code for x86 CPUs.
|
||||
|// Bytecode interpreter, fast functions and helper functions.
|
||||
|// Copyright (C) 2005-2022 Mike Pall. See Copyright Notice in luajit.h
|
||||
|// Copyright (C) 2005-2023 Mike Pall. See Copyright Notice in luajit.h
|
||||
|
|
||||
|.if P64
|
||||
|.arch x64
|
||||
@@ -3314,19 +3314,25 @@ static void build_subroutines(BuildCtx *ctx)
|
||||
|
|
||||
| // Copy stack slots.
|
||||
| movzx ecx, byte CCSTATE->nsp
|
||||
| sub ecx, 1
|
||||
|.if X64
|
||||
| sub ecx, 8
|
||||
| js >2
|
||||
|1:
|
||||
|.if X64
|
||||
| mov rax, [CCSTATE+rcx*8+offsetof(CCallState, stack)]
|
||||
| mov [rsp+rcx*8+CCALL_SPS_EXTRA*8], rax
|
||||
|.else
|
||||
| mov eax, [CCSTATE+ecx*4+offsetof(CCallState, stack)]
|
||||
| mov [esp+ecx*4], eax
|
||||
|.endif
|
||||
| sub ecx, 1
|
||||
| mov rax, [CCSTATE+rcx+offsetof(CCallState, stack)]
|
||||
| mov [rsp+rcx+CCALL_SPS_EXTRA*8], rax
|
||||
| sub ecx, 8
|
||||
| jns <1
|
||||
|2:
|
||||
|.else
|
||||
| sub ecx, 4
|
||||
| js >2
|
||||
|1:
|
||||
| mov eax, [CCSTATE+ecx+offsetof(CCallState, stack)]
|
||||
| mov [esp+ecx], eax
|
||||
| sub ecx, 4
|
||||
| jns <1
|
||||
|2:
|
||||
|.endif
|
||||
|
|
||||
|.if X64
|
||||
| movzx eax, byte CCSTATE->nfpr
|
||||
|
||||
Reference in New Issue
Block a user