Skip to content

Commit

Permalink
update luajit to 2021.1.12, PackageScripts.py add linux support.
Browse files Browse the repository at this point in the history
  • Loading branch information
u0u0 committed Feb 12, 2021
1 parent 06a0809 commit 8d38831
Show file tree
Hide file tree
Showing 34 changed files with 26 additions and 22 deletions.
Binary file modified external/lua/luajit/prebuilt/android/arm64-v8a/libluajit.a
Binary file not shown.
Binary file modified external/lua/luajit/prebuilt/android/armeabi-v7a/libluajit.a
Binary file not shown.
Binary file modified external/lua/luajit/prebuilt/android/x86/libluajit.a
Binary file not shown.
Binary file modified external/lua/luajit/prebuilt/ios/libluajit.a
Binary file not shown.
Binary file modified external/lua/luajit/prebuilt/linux/64-bit/libluajit.a
Binary file not shown.
Binary file modified external/lua/luajit/prebuilt/mac/libluajit.a
Binary file not shown.
Binary file modified external/lua/luajit/prebuilt/win32/lua51.dll
Binary file not shown.
5 changes: 3 additions & 2 deletions tools/PackageScripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ def initJitPath(mode):
else:
jitPath = joinDir(scriptRoot, "win32", "64", "luajit.exe")
elif(sysstr == "Linux"):
print("Liunux Support is coming sooooon")
sys.exit(-1)
jitPath = joinDir(scriptRoot, "linux", "luajit")
if "64" == mode:
jitPath = jitPath + "64"
elif(sysstr == "Darwin"):
jitPath = joinDir(scriptRoot, "mac", "luajit")
if "64" == mode:
Expand Down
2 changes: 1 addition & 1 deletion tools/jit/bc.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
Expand Down
2 changes: 1 addition & 1 deletion tools/jit/bcsave.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- LuaJIT module to save/list bytecode.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
Expand Down
2 changes: 1 addition & 1 deletion tools/jit/dis_arm.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- LuaJIT ARM disassembler module.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-- This is a helper module used by the LuaJIT machine code dumper module.
Expand Down
2 changes: 1 addition & 1 deletion tools/jit/dis_arm64.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- LuaJIT ARM64 disassembler module.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--
-- Contributed by Djordje Kovacevic and Stefan Pejic from RT-RK.com.
Expand Down
2 changes: 1 addition & 1 deletion tools/jit/dis_arm64be.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- LuaJIT ARM64BE disassembler wrapper module.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-- ARM64 instructions are always little-endian. So just forward to the
Expand Down
2 changes: 1 addition & 1 deletion tools/jit/dis_mips.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- LuaJIT MIPS disassembler module.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-- This is a helper module used by the LuaJIT machine code dumper module.
Expand Down
2 changes: 1 addition & 1 deletion tools/jit/dis_mips64.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- LuaJIT MIPS64 disassembler wrapper module.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-- This module just exports the big-endian functions from the
Expand Down
2 changes: 1 addition & 1 deletion tools/jit/dis_mips64el.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- LuaJIT MIPS64EL disassembler wrapper module.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-- This module just exports the little-endian functions from the
Expand Down
2 changes: 1 addition & 1 deletion tools/jit/dis_mips64r6.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- LuaJIT MIPS64R6 disassembler wrapper module.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-- This module just exports the r6 big-endian functions from the
Expand Down
2 changes: 1 addition & 1 deletion tools/jit/dis_mips64r6el.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- LuaJIT MIPS64R6EL disassembler wrapper module.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-- This module just exports the r6 little-endian functions from the
Expand Down
2 changes: 1 addition & 1 deletion tools/jit/dis_mipsel.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- LuaJIT MIPSEL disassembler wrapper module.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-- This module just exports the little-endian functions from the
Expand Down
2 changes: 1 addition & 1 deletion tools/jit/dis_ppc.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- LuaJIT PPC disassembler module.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-- This is a helper module used by the LuaJIT machine code dumper module.
Expand Down
2 changes: 1 addition & 1 deletion tools/jit/dis_x64.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- LuaJIT x64 disassembler wrapper module.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-- This module just exports the 64 bit functions from the combined
Expand Down
2 changes: 1 addition & 1 deletion tools/jit/dis_x86.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-- This is a helper module used by the LuaJIT machine code dumper module.
Expand Down
9 changes: 6 additions & 3 deletions tools/jit/dump.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- LuaJIT compiler dump module.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
Expand Down Expand Up @@ -608,12 +608,15 @@ end

------------------------------------------------------------------------------

local gpr64 = jit.arch:match("64")
local fprmips32 = jit.arch == "mips" or jit.arch == "mipsel"

-- Dump taken trace exits.
local function dump_texit(tr, ex, ngpr, nfpr, ...)
out:write("---- TRACE ", tr, " exit ", ex, "\n")
if dumpmode.X then
local regs = {...}
if jit.arch:sub(-2) == "64" then
if gpr64 then
for i=1,ngpr do
out:write(format(" %016x", regs[i]))
if i % 4 == 0 then out:write("\n") end
Expand All @@ -624,7 +627,7 @@ local function dump_texit(tr, ex, ngpr, nfpr, ...)
if i % 8 == 0 then out:write("\n") end
end
end
if jit.arch == "mips" or jit.arch == "mipsel" then
if fprmips32 then
for i=1,nfpr,2 do
out:write(format(" %+17.14g", regs[ngpr+i]))
if i % 8 == 7 then out:write("\n") end
Expand Down
2 changes: 1 addition & 1 deletion tools/jit/p.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- LuaJIT profiler.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
Expand Down
2 changes: 1 addition & 1 deletion tools/jit/v.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- Verbose mode of the LuaJIT compiler.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
Expand Down
2 changes: 1 addition & 1 deletion tools/jit/zone.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
----------------------------------------------------------------------------
-- LuaJIT profiler zones.
--
-- Copyright (C) 2005-2020 Mike Pall. All rights reserved.
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
Expand Down
Binary file added tools/linux/luajit
Binary file not shown.
Binary file added tools/linux/luajit64
Binary file not shown.
Binary file modified tools/mac/luajit
Binary file not shown.
Binary file modified tools/mac/luajit64
Binary file not shown.
Binary file modified tools/win32/64/lua51.dll
Binary file not shown.
Binary file modified tools/win32/64/luajit.exe
Binary file not shown.
Binary file modified tools/win32/lua51.dll
Binary file not shown.
Binary file modified tools/win32/luajit.exe
Binary file not shown.

0 comments on commit 8d38831

Please sign in to comment.