ソースを参照

Switch to luajit-2.0.3

Daniele Bartolini 11 年 前
コミット
aa1ae0cca4
27 ファイル変更69 行追加52 行削除
  1. 3 3
      third/x86_64/CMakeLists.txt
  2. 0 1
      third/x86_64/luajit/bin/luajit
  3. 1 0
      third/x86_64/luajit/bin/luajit
  4. BIN
      third/x86_64/luajit/bin/luajit-2.0.1
  5. 34 17
      third/x86_64/luajit/include/luajit-2.0/luaconf.h
  6. 5 5
      third/x86_64/luajit/include/luajit-2.0/luajit.h
  7. 1 1
      third/x86_64/luajit/include/luajit-2.0/lualib.h
  8. BIN
      third/x86_64/luajit/lib/libluajit-5.1.a
  9. 0 1
      third/x86_64/luajit/lib/libluajit-5.1.so
  10. 1 0
      third/x86_64/luajit/lib/libluajit-5.1.so
  11. 0 1
      third/x86_64/luajit/lib/libluajit-5.1.so.2
  12. 1 0
      third/x86_64/luajit/lib/libluajit-5.1.so.2
  13. BIN
      third/x86_64/luajit/lib/libluajit-5.1.so.2.0.1
  14. BIN
      third/x86_64/luajit/lib/libluajit-5.1.so.2.0.3
  15. 5 4
      third/x86_64/luajit/lib/pkgconfig/luajit.pc
  16. 2 2
      third/x86_64/luajit/share/luajit-2.0.3/jit/bc.lua
  17. 2 2
      third/x86_64/luajit/share/luajit-2.0.3/jit/bcsave.lua
  18. 1 1
      third/x86_64/luajit/share/luajit-2.0.3/jit/dis_arm.lua
  19. 1 1
      third/x86_64/luajit/share/luajit-2.0.3/jit/dis_mips.lua
  20. 1 1
      third/x86_64/luajit/share/luajit-2.0.3/jit/dis_mipsel.lua
  21. 1 1
      third/x86_64/luajit/share/luajit-2.0.3/jit/dis_ppc.lua
  22. 1 1
      third/x86_64/luajit/share/luajit-2.0.3/jit/dis_x64.lua
  23. 1 1
      third/x86_64/luajit/share/luajit-2.0.3/jit/dis_x86.lua
  24. 3 4
      third/x86_64/luajit/share/luajit-2.0.3/jit/dump.lua
  25. 2 2
      third/x86_64/luajit/share/luajit-2.0.3/jit/v.lua
  26. 2 2
      third/x86_64/luajit/share/luajit-2.0.3/jit/vmdef.lua
  27. 1 1
      third/x86_64/luajit/share/man/man1/luajit.1

+ 3 - 3
third/x86_64/CMakeLists.txt

@@ -1,8 +1,8 @@
 cmake_minimum_required(VERSION 2.8)
 
-install (FILES luajit/lib/libluajit-5.1.so.2.0.1 
+install (FILES luajit/lib/libluajit-5.1.so.2.0.3 
 			   luajit/lib/libluajit-5.1.so.2 DESTINATION bin)
 
-install (PROGRAMS luajit/bin/luajit-2.0.1 DESTINATION bin)
+install (PROGRAMS luajit/bin/luajit-2.0.3 DESTINATION bin)
 install (FILES luajit/bin/luajit DESTINATION bin)
-install (DIRECTORY luajit/share/luajit-2.0.1/jit DESTINATION bin)
+install (DIRECTORY luajit/share/luajit-2.0.3/jit DESTINATION bin)

+ 0 - 1
third/x86_64/luajit/bin/luajit

@@ -1 +0,0 @@
-luajit-2.0.1

+ 1 - 0
third/x86_64/luajit/bin/luajit

@@ -0,0 +1 @@
+luajit-2.0.3

BIN
third/x86_64/luajit/bin/luajit-2.0.1


+ 34 - 17
third/x86_64/luajit/include/luajit-2.0/luaconf.h

@@ -1,11 +1,14 @@
 /*
 ** Configuration header.
-** Copyright (C) 2005-2013 Mike Pall. See Copyright Notice in luajit.h
+** Copyright (C) 2005-2014 Mike Pall. See Copyright Notice in luajit.h
 */
 
 #ifndef luaconf_h
 #define luaconf_h
 
+#ifndef WINVER
+#define WINVER 0x0501
+#endif
 #include <limits.h>
 #include <stddef.h>
 
@@ -23,26 +26,40 @@
   ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
 #else
 /*
-** Note to distribution maintainers: do NOT patch the following line!
+** Note to distribution maintainers: do NOT patch the following lines!
 ** Please read ../doc/install.html#distro and pass PREFIX=/usr instead.
 */
-#define LUA_ROOT	"/usr/local/"
-#define LUA_LDIR	LUA_ROOT "share/lua/5.1/"
-#define LUA_CDIR	LUA_ROOT "lib/lua/5.1/"
-#ifdef LUA_XROOT
-#define LUA_JDIR	LUA_XROOT "share/luajit-2.0.1/"
-#define LUA_XPATH \
-  ";" LUA_XROOT "share/lua/5.1/?.lua;" LUA_XROOT "share/lua/5.1/?/init.lua"
-#define LUA_XCPATH	LUA_XROOT "lib/lua/5.1/?.so;"
+#ifndef LUA_MULTILIB
+#define LUA_MULTILIB	"lib"
+#endif
+#ifndef LUA_LMULTILIB
+#define LUA_LMULTILIB	"lib"
+#endif
+#define LUA_LROOT	"/usr/local"
+#define LUA_LUADIR	"/lua/5.1/"
+#define LUA_LJDIR	"/luajit-2.0.3/"
+
+#ifdef LUA_ROOT
+#define LUA_JROOT	LUA_ROOT
+#define LUA_RLDIR	LUA_ROOT "/share" LUA_LUADIR
+#define LUA_RCDIR	LUA_ROOT "/" LUA_MULTILIB LUA_LUADIR
+#define LUA_RLPATH	";" LUA_RLDIR "?.lua;" LUA_RLDIR "?/init.lua"
+#define LUA_RCPATH	";" LUA_RCDIR "?.so"
 #else
-#define LUA_JDIR	LUA_ROOT "share/luajit-2.0.1/"
-#define LUA_XPATH
-#define LUA_XCPATH
+#define LUA_JROOT	LUA_LROOT
+#define LUA_RLPATH
+#define LUA_RCPATH
 #endif
-#define LUA_PATH_DEFAULT \
-  "./?.lua;" LUA_JDIR"?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua" LUA_XPATH
-#define LUA_CPATH_DEFAULT \
-  "./?.so;" LUA_CDIR"?.so;" LUA_XCPATH LUA_CDIR"loadall.so"
+
+#define LUA_JPATH	";" LUA_JROOT "/share" LUA_LJDIR "?.lua"
+#define LUA_LLDIR	LUA_LROOT "/share" LUA_LUADIR
+#define LUA_LCDIR	LUA_LROOT "/" LUA_LMULTILIB LUA_LUADIR
+#define LUA_LLPATH	";" LUA_LLDIR "?.lua;" LUA_LLDIR "?/init.lua"
+#define LUA_LCPATH1	";" LUA_LCDIR "?.so"
+#define LUA_LCPATH2	";" LUA_LCDIR "loadall.so"
+
+#define LUA_PATH_DEFAULT	"./?.lua" LUA_JPATH LUA_LLPATH LUA_RLPATH
+#define LUA_CPATH_DEFAULT	"./?.so" LUA_LCPATH1 LUA_RCPATH LUA_LCPATH2
 #endif
 
 /* Environment variable names for path overrides and initialization code. */

+ 5 - 5
third/x86_64/luajit/include/luajit-2.0/luajit.h

@@ -1,7 +1,7 @@
 /*
 ** LuaJIT -- a Just-In-Time Compiler for Lua. http://luajit.org/
 **
-** Copyright (C) 2005-2013 Mike Pall. All rights reserved.
+** Copyright (C) 2005-2014 Mike Pall. All rights reserved.
 **
 ** Permission is hereby granted, free of charge, to any person obtaining
 ** a copy of this software and associated documentation files (the
@@ -30,10 +30,10 @@
 
 #include "lua.h"
 
-#define LUAJIT_VERSION		"LuaJIT 2.0.1"
-#define LUAJIT_VERSION_NUM	20001  /* Version 2.0.1 = 02.00.01. */
-#define LUAJIT_VERSION_SYM	luaJIT_version_2_0_1
-#define LUAJIT_COPYRIGHT	"Copyright (C) 2005-2013 Mike Pall"
+#define LUAJIT_VERSION		"LuaJIT 2.0.3"
+#define LUAJIT_VERSION_NUM	20003  /* Version 2.0.3 = 02.00.03. */
+#define LUAJIT_VERSION_SYM	luaJIT_version_2_0_3
+#define LUAJIT_COPYRIGHT	"Copyright (C) 2005-2014 Mike Pall"
 #define LUAJIT_URL		"http://luajit.org/"
 
 /* Modes for luaJIT_setmode. */

+ 1 - 1
third/x86_64/luajit/include/luajit-2.0/lualib.h

@@ -1,6 +1,6 @@
 /*
 ** Standard library header.
-** Copyright (C) 2005-2013 Mike Pall. See Copyright Notice in luajit.h
+** Copyright (C) 2005-2014 Mike Pall. See Copyright Notice in luajit.h
 */
 
 #ifndef _LUALIB_H

BIN
third/x86_64/luajit/lib/libluajit-5.1.a


+ 0 - 1
third/x86_64/luajit/lib/libluajit-5.1.so

@@ -1 +0,0 @@
-libluajit-5.1.so.2.0.1

+ 1 - 0
third/x86_64/luajit/lib/libluajit-5.1.so

@@ -0,0 +1 @@
+libluajit-5.1.so.2.0.3

+ 0 - 1
third/x86_64/luajit/lib/libluajit-5.1.so.2

@@ -1 +0,0 @@
-libluajit-5.1.so.2.0.1

+ 1 - 0
third/x86_64/luajit/lib/libluajit-5.1.so.2

@@ -0,0 +1 @@
+libluajit-5.1.so.2.0.3

BIN
third/x86_64/luajit/lib/libluajit-5.1.so.2.0.1


BIN
third/x86_64/luajit/lib/libluajit-5.1.so.2.0.3


+ 5 - 4
third/x86_64/luajit/lib/pkgconfig/luajit.pc

@@ -1,18 +1,19 @@
 # Package information for LuaJIT to be used by pkg-config.
 majver=2
 minver=0
-relver=1
+relver=3
 version=${majver}.${minver}.${relver}
 abiver=5.1
 
-prefix=/home/mikymod/Repositories/crown/third/x86_64/luajit/
+prefix=/home/dani/LuaJIT-2.0.3/install
+multilib=lib
 exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=${exec_prefix}/${multilib}
 libname=luajit-${abiver}
 includedir=${prefix}/include/luajit-${majver}.${minver}
 
 INSTALL_LMOD=${prefix}/share/lua/${abiver}
-INSTALL_CMOD=${prefix}/lib/lua/${abiver}
+INSTALL_CMOD=${prefix}/${multilib}/lua/${abiver}
 
 Name: LuaJIT
 Description: Just-in-time compiler for Lua

+ 2 - 2
third/x86_64/luajit/share/luajit-2.0.1/jit/bc.lua → third/x86_64/luajit/share/luajit-2.0.3/jit/bc.lua

@@ -1,7 +1,7 @@
 ----------------------------------------------------------------------------
 -- LuaJIT bytecode listing module.
 --
--- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
+-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
 -- Released under the MIT license. See Copyright Notice in luajit.h
 ----------------------------------------------------------------------------
 --
@@ -41,7 +41,7 @@
 
 -- Cache some library functions and objects.
 local jit = require("jit")
-assert(jit.version_num == 20001, "LuaJIT core/library version mismatch")
+assert(jit.version_num == 20003, "LuaJIT core/library version mismatch")
 local jutil = require("jit.util")
 local vmdef = require("jit.vmdef")
 local bit = require("bit")

+ 2 - 2
third/x86_64/luajit/share/luajit-2.0.1/jit/bcsave.lua → third/x86_64/luajit/share/luajit-2.0.3/jit/bcsave.lua

@@ -1,7 +1,7 @@
 ----------------------------------------------------------------------------
 -- LuaJIT module to save/list bytecode.
 --
--- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
+-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
 -- Released under the MIT license. See Copyright Notice in luajit.h
 ----------------------------------------------------------------------------
 --
@@ -11,7 +11,7 @@
 ------------------------------------------------------------------------------
 
 local jit = require("jit")
-assert(jit.version_num == 20001, "LuaJIT core/library version mismatch")
+assert(jit.version_num == 20003, "LuaJIT core/library version mismatch")
 local bit = require("bit")
 
 -- Symbol name prefix for LuaJIT bytecode.

+ 1 - 1
third/x86_64/luajit/share/luajit-2.0.1/jit/dis_arm.lua → third/x86_64/luajit/share/luajit-2.0.3/jit/dis_arm.lua

@@ -1,7 +1,7 @@
 ----------------------------------------------------------------------------
 -- LuaJIT ARM disassembler module.
 --
--- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
+-- Copyright (C) 2005-2014 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.

+ 1 - 1
third/x86_64/luajit/share/luajit-2.0.1/jit/dis_mips.lua → third/x86_64/luajit/share/luajit-2.0.3/jit/dis_mips.lua

@@ -1,7 +1,7 @@
 ----------------------------------------------------------------------------
 -- LuaJIT MIPS disassembler module.
 --
--- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
+-- Copyright (C) 2005-2014 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.

+ 1 - 1
third/x86_64/luajit/share/luajit-2.0.1/jit/dis_mipsel.lua → third/x86_64/luajit/share/luajit-2.0.3/jit/dis_mipsel.lua

@@ -1,7 +1,7 @@
 ----------------------------------------------------------------------------
 -- LuaJIT MIPSEL disassembler wrapper module.
 --
--- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
+-- Copyright (C) 2005-2014 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

+ 1 - 1
third/x86_64/luajit/share/luajit-2.0.1/jit/dis_ppc.lua → third/x86_64/luajit/share/luajit-2.0.3/jit/dis_ppc.lua

@@ -1,7 +1,7 @@
 ----------------------------------------------------------------------------
 -- LuaJIT PPC disassembler module.
 --
--- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
+-- Copyright (C) 2005-2014 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.

+ 1 - 1
third/x86_64/luajit/share/luajit-2.0.1/jit/dis_x64.lua → third/x86_64/luajit/share/luajit-2.0.3/jit/dis_x64.lua

@@ -1,7 +1,7 @@
 ----------------------------------------------------------------------------
 -- LuaJIT x64 disassembler wrapper module.
 --
--- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
+-- Copyright (C) 2005-2014 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

+ 1 - 1
third/x86_64/luajit/share/luajit-2.0.1/jit/dis_x86.lua → third/x86_64/luajit/share/luajit-2.0.3/jit/dis_x86.lua

@@ -1,7 +1,7 @@
 ----------------------------------------------------------------------------
 -- LuaJIT x86/x64 disassembler module.
 --
--- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
+-- Copyright (C) 2005-2014 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.

+ 3 - 4
third/x86_64/luajit/share/luajit-2.0.1/jit/dump.lua → third/x86_64/luajit/share/luajit-2.0.3/jit/dump.lua

@@ -1,7 +1,7 @@
 ----------------------------------------------------------------------------
 -- LuaJIT compiler dump module.
 --
--- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
+-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
 -- Released under the MIT license. See Copyright Notice in luajit.h
 ----------------------------------------------------------------------------
 --
@@ -36,6 +36,7 @@
 --  * m  Dump the generated machine code.
 --    x  Print each taken trace exit.
 --    X  Print each taken trace exit and the contents of all registers.
+--    a  Print the IR of aborted traces, too.
 --
 -- The output format can be set with the following characters:
 --
@@ -54,7 +55,7 @@
 
 -- Cache some library functions and objects.
 local jit = require("jit")
-assert(jit.version_num == 20001, "LuaJIT core/library version mismatch")
+assert(jit.version_num == 20003, "LuaJIT core/library version mismatch")
 local jutil = require("jit.util")
 local vmdef = require("jit.vmdef")
 local funcinfo, funcbc = jutil.funcinfo, jutil.funcbc
@@ -546,10 +547,8 @@ local function dump_trace(what, tr, func, pc, otr, oex)
     out:write("---- TRACE ", tr, " ", what)
     if otr then out:write(" ", otr, "/", oex) end
     out:write(" ", fmtfunc(func, pc), "\n")
-    recprefix = ""
   elseif what == "stop" or what == "abort" then
     out:write("---- TRACE ", tr, " ", what)
-    recprefix = nil
     if what == "abort" then
       out:write(" ", fmtfunc(func, pc), " -- ", fmterr(otr, oex), "\n")
     else

+ 2 - 2
third/x86_64/luajit/share/luajit-2.0.1/jit/v.lua → third/x86_64/luajit/share/luajit-2.0.3/jit/v.lua

@@ -1,7 +1,7 @@
 ----------------------------------------------------------------------------
 -- Verbose mode of the LuaJIT compiler.
 --
--- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
+-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
 -- Released under the MIT license. See Copyright Notice in luajit.h
 ----------------------------------------------------------------------------
 --
@@ -59,7 +59,7 @@
 
 -- Cache some library functions and objects.
 local jit = require("jit")
-assert(jit.version_num == 20001, "LuaJIT core/library version mismatch")
+assert(jit.version_num == 20003, "LuaJIT core/library version mismatch")
 local jutil = require("jit.util")
 local vmdef = require("jit.vmdef")
 local funcinfo, traceinfo = jutil.funcinfo, jutil.traceinfo

+ 2 - 2
third/x86_64/luajit/share/luajit-2.0.1/jit/vmdef.lua → third/x86_64/luajit/share/luajit-2.0.3/jit/vmdef.lua

@@ -96,7 +96,7 @@ traceerr = {
 "inner loop in root trace",
 "loop unroll limit reached",
 "bad argument type",
-"call to JIT-disabled function",
+"JIT compilation disabled for function",
 "call unroll limit reached",
 "down-recursion, restarting",
 "NYI: C function %p",
@@ -178,9 +178,9 @@ ffnames = {
 "math.tanh",
 "math.frexp",
 "math.modf",
-"math.log",
 "math.deg",
 "math.rad",
+"math.log",
 "math.atan2",
 "math.pow",
 "math.fmod",

+ 1 - 1
third/x86_64/luajit/share/man/man1/luajit.1

@@ -74,7 +74,7 @@ luajit \-jv \-e "for i=1,10 do for j=1,10 do for k=1,100 do end end end"
 Runs some nested loops and shows the resulting traces.
 .SH COPYRIGHT
 .PP
-\fBLuaJIT\fR is Copyright \(co 2005-2013 Mike Pall.
+\fBLuaJIT\fR is Copyright \(co 2005-2014 Mike Pall.
 .br
 \fBLuaJIT\fR is open source software, released under the MIT license.
 .SH SEE ALSO