From 243dc132d39a51e2592c2bb03273b4fcba15a8e2 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Mon, 4 Sep 2017 00:11:57 -0300 Subject: [PATCH] Update LuaJIT to 2.0.5 --- CMakeLists.txt | 2 +- libs/LuaJIT/COPYRIGHT | 2 +- libs/LuaJIT/Makefile | 32 ++++--- libs/LuaJIT/README | 4 +- libs/LuaJIT/doc/bluequad-print.css | 2 +- libs/LuaJIT/doc/bluequad.css | 2 +- libs/LuaJIT/doc/changes.html | 48 +++++++++- libs/LuaJIT/doc/contact.html | 13 ++- libs/LuaJIT/doc/ext_c_api.html | 4 +- libs/LuaJIT/doc/ext_ffi.html | 4 +- libs/LuaJIT/doc/ext_ffi_api.html | 4 +- libs/LuaJIT/doc/ext_ffi_semantics.html | 4 +- libs/LuaJIT/doc/ext_ffi_tutorial.html | 4 +- libs/LuaJIT/doc/ext_jit.html | 4 +- libs/LuaJIT/doc/extensions.html | 10 +- libs/LuaJIT/doc/faq.html | 4 +- libs/LuaJIT/doc/install.html | 44 ++++----- libs/LuaJIT/doc/luajit.html | 6 +- libs/LuaJIT/doc/running.html | 6 +- libs/LuaJIT/doc/status.html | 10 +- libs/LuaJIT/dynasm/dasm_arm.h | 2 +- libs/LuaJIT/dynasm/dasm_arm.lua | 2 +- libs/LuaJIT/dynasm/dasm_mips.h | 2 +- libs/LuaJIT/dynasm/dasm_mips.lua | 2 +- libs/LuaJIT/dynasm/dasm_ppc.h | 2 +- libs/LuaJIT/dynasm/dasm_ppc.lua | 2 +- libs/LuaJIT/dynasm/dasm_proto.h | 2 +- libs/LuaJIT/dynasm/dasm_x64.lua | 2 +- libs/LuaJIT/dynasm/dasm_x86.h | 5 +- libs/LuaJIT/dynasm/dasm_x86.lua | 13 +-- libs/LuaJIT/dynasm/dynasm.lua | 4 +- libs/LuaJIT/etc/luajit.1 | 2 +- libs/LuaJIT/etc/luajit.pc | 2 +- libs/LuaJIT/src/Makefile | 57 ++++++------ libs/LuaJIT/src/host/buildvm.c | 2 +- libs/LuaJIT/src/host/buildvm.h | 2 +- libs/LuaJIT/src/host/buildvm_asm.c | 5 +- libs/LuaJIT/src/host/buildvm_fold.c | 4 +- libs/LuaJIT/src/host/buildvm_lib.c | 2 +- libs/LuaJIT/src/host/buildvm_peobj.c | 2 +- libs/LuaJIT/src/host/genminilua.lua | 11 ++- libs/LuaJIT/src/host/minilua.c | 2 +- libs/LuaJIT/src/jit/bc.lua | 4 +- libs/LuaJIT/src/jit/bcsave.lua | 6 +- libs/LuaJIT/src/jit/dis_arm.lua | 4 +- libs/LuaJIT/src/jit/dis_mips.lua | 6 +- libs/LuaJIT/src/jit/dis_mipsel.lua | 2 +- libs/LuaJIT/src/jit/dis_ppc.lua | 4 +- libs/LuaJIT/src/jit/dis_x64.lua | 2 +- libs/LuaJIT/src/jit/dis_x86.lua | 2 +- libs/LuaJIT/src/jit/dump.lua | 16 ++-- libs/LuaJIT/src/jit/v.lua | 4 +- libs/LuaJIT/src/lib_aux.c | 2 +- libs/LuaJIT/src/lib_base.c | 2 +- libs/LuaJIT/src/lib_bit.c | 2 +- libs/LuaJIT/src/lib_debug.c | 2 +- libs/LuaJIT/src/lib_ffi.c | 4 +- libs/LuaJIT/src/lib_init.c | 2 +- libs/LuaJIT/src/lib_io.c | 17 +++- libs/LuaJIT/src/lib_jit.c | 3 +- libs/LuaJIT/src/lib_math.c | 2 +- libs/LuaJIT/src/lib_os.c | 4 +- libs/LuaJIT/src/lib_package.c | 2 +- libs/LuaJIT/src/lib_string.c | 2 +- libs/LuaJIT/src/lib_table.c | 2 +- libs/LuaJIT/src/lj.supp | 15 +++ libs/LuaJIT/src/lj_alloc.c | 2 +- libs/LuaJIT/src/lj_api.c | 2 +- libs/LuaJIT/src/lj_arch.h | 25 ++++- libs/LuaJIT/src/lj_asm.c | 2 +- libs/LuaJIT/src/lj_asm.h | 2 +- libs/LuaJIT/src/lj_asm_arm.h | 5 +- libs/LuaJIT/src/lj_asm_mips.h | 23 ++--- libs/LuaJIT/src/lj_asm_ppc.h | 5 +- libs/LuaJIT/src/lj_asm_x86.h | 124 ++++++++++++++++++++++--- libs/LuaJIT/src/lj_bc.c | 2 +- libs/LuaJIT/src/lj_bc.h | 2 +- libs/LuaJIT/src/lj_bcdump.h | 2 +- libs/LuaJIT/src/lj_bcread.c | 2 +- libs/LuaJIT/src/lj_bcwrite.c | 2 +- libs/LuaJIT/src/lj_carith.c | 2 +- libs/LuaJIT/src/lj_carith.h | 2 +- libs/LuaJIT/src/lj_ccall.c | 2 +- libs/LuaJIT/src/lj_ccall.h | 2 +- libs/LuaJIT/src/lj_ccallback.c | 2 +- libs/LuaJIT/src/lj_ccallback.h | 2 +- libs/LuaJIT/src/lj_cconv.c | 2 +- libs/LuaJIT/src/lj_cconv.h | 2 +- libs/LuaJIT/src/lj_cdata.c | 2 +- libs/LuaJIT/src/lj_cdata.h | 2 +- libs/LuaJIT/src/lj_clib.c | 10 +- libs/LuaJIT/src/lj_clib.h | 2 +- libs/LuaJIT/src/lj_cparse.c | 21 +++-- libs/LuaJIT/src/lj_cparse.h | 2 +- libs/LuaJIT/src/lj_crecord.c | 5 +- libs/LuaJIT/src/lj_crecord.h | 2 +- libs/LuaJIT/src/lj_ctype.c | 2 +- libs/LuaJIT/src/lj_ctype.h | 16 ++-- libs/LuaJIT/src/lj_debug.c | 2 +- libs/LuaJIT/src/lj_debug.h | 2 +- libs/LuaJIT/src/lj_def.h | 2 +- libs/LuaJIT/src/lj_dispatch.c | 2 +- libs/LuaJIT/src/lj_dispatch.h | 2 +- libs/LuaJIT/src/lj_emit_arm.h | 4 +- libs/LuaJIT/src/lj_emit_mips.h | 2 +- libs/LuaJIT/src/lj_emit_ppc.h | 2 +- libs/LuaJIT/src/lj_emit_x86.h | 2 +- libs/LuaJIT/src/lj_err.c | 12 ++- libs/LuaJIT/src/lj_err.h | 2 +- libs/LuaJIT/src/lj_errmsg.h | 2 +- libs/LuaJIT/src/lj_ff.h | 2 +- libs/LuaJIT/src/lj_ffrecord.c | 17 ++-- libs/LuaJIT/src/lj_ffrecord.h | 2 +- libs/LuaJIT/src/lj_frame.h | 6 +- libs/LuaJIT/src/lj_func.c | 6 +- libs/LuaJIT/src/lj_func.h | 2 +- libs/LuaJIT/src/lj_gc.c | 21 +++-- libs/LuaJIT/src/lj_gc.h | 2 +- libs/LuaJIT/src/lj_gdbjit.c | 2 +- libs/LuaJIT/src/lj_gdbjit.h | 2 +- libs/LuaJIT/src/lj_ir.c | 2 +- libs/LuaJIT/src/lj_ir.h | 2 +- libs/LuaJIT/src/lj_ircall.h | 10 +- libs/LuaJIT/src/lj_iropt.h | 6 +- libs/LuaJIT/src/lj_jit.h | 2 +- libs/LuaJIT/src/lj_lex.c | 2 +- libs/LuaJIT/src/lj_lex.h | 2 +- libs/LuaJIT/src/lj_lib.c | 2 +- libs/LuaJIT/src/lj_lib.h | 2 +- libs/LuaJIT/src/lj_load.c | 2 +- libs/LuaJIT/src/lj_mcode.c | 17 ++-- libs/LuaJIT/src/lj_mcode.h | 2 +- libs/LuaJIT/src/lj_meta.c | 2 +- libs/LuaJIT/src/lj_meta.h | 2 +- libs/LuaJIT/src/lj_obj.c | 2 +- libs/LuaJIT/src/lj_obj.h | 2 +- libs/LuaJIT/src/lj_opt_dce.c | 2 +- libs/LuaJIT/src/lj_opt_fold.c | 18 ++-- libs/LuaJIT/src/lj_opt_loop.c | 2 +- libs/LuaJIT/src/lj_opt_mem.c | 2 +- libs/LuaJIT/src/lj_opt_narrow.c | 54 ++++++----- libs/LuaJIT/src/lj_opt_sink.c | 7 +- libs/LuaJIT/src/lj_opt_split.c | 5 +- libs/LuaJIT/src/lj_parse.c | 16 ++-- libs/LuaJIT/src/lj_parse.h | 2 +- libs/LuaJIT/src/lj_record.c | 23 +++-- libs/LuaJIT/src/lj_record.h | 2 +- libs/LuaJIT/src/lj_snap.c | 30 +++--- libs/LuaJIT/src/lj_snap.h | 2 +- libs/LuaJIT/src/lj_state.c | 2 +- libs/LuaJIT/src/lj_state.h | 2 +- libs/LuaJIT/src/lj_str.c | 2 +- libs/LuaJIT/src/lj_str.h | 2 +- libs/LuaJIT/src/lj_strscan.c | 2 +- libs/LuaJIT/src/lj_strscan.h | 2 +- libs/LuaJIT/src/lj_tab.c | 2 +- libs/LuaJIT/src/lj_tab.h | 2 +- libs/LuaJIT/src/lj_target.h | 2 +- libs/LuaJIT/src/lj_target_arm.h | 2 +- libs/LuaJIT/src/lj_target_mips.h | 9 +- libs/LuaJIT/src/lj_target_ppc.h | 2 +- libs/LuaJIT/src/lj_target_x86.h | 2 +- libs/LuaJIT/src/lj_trace.c | 18 +++- libs/LuaJIT/src/lj_trace.h | 2 +- libs/LuaJIT/src/lj_traceerr.h | 4 +- libs/LuaJIT/src/lj_udata.c | 2 +- libs/LuaJIT/src/lj_udata.h | 2 +- libs/LuaJIT/src/lj_vm.h | 2 +- libs/LuaJIT/src/lj_vmevent.c | 2 +- libs/LuaJIT/src/lj_vmevent.h | 2 +- libs/LuaJIT/src/lj_vmmath.c | 2 +- libs/LuaJIT/src/ljamalg.c | 2 +- libs/LuaJIT/src/luaconf.h | 4 +- libs/LuaJIT/src/luajit.c | 2 +- libs/LuaJIT/src/luajit.h | 10 +- libs/LuaJIT/src/lualib.h | 2 +- libs/LuaJIT/src/msvcbuild.bat | 6 +- libs/LuaJIT/src/ps4build.bat | 4 +- libs/LuaJIT/src/vm_arm.dasc | 2 +- libs/LuaJIT/src/vm_mips.dasc | 43 +++++---- libs/LuaJIT/src/vm_ppc.dasc | 2 +- libs/LuaJIT/src/vm_ppcspe.dasc | 2 +- libs/LuaJIT/src/vm_x86.dasc | 26 +++++- 183 files changed, 738 insertions(+), 487 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9cdb170d..3876c89b 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,7 +122,7 @@ endif() set(MEGA_ZLIB_VER "1.2.8") set(MEGA_PHYSFS_VER "2.0.3") set(MEGA_LUA51_VER "5.1.5") -set(MEGA_LUAJIT_VER "2.0.4") +set(MEGA_LUAJIT_VER "2.0.5") set(MEGA_LIBOGG_VER "1.3.2") set(MEGA_LIBVORBIS_VER "1.3.5") set(MEGA_LIBTHEORA_VER "1.1.1") diff --git a/libs/LuaJIT/COPYRIGHT b/libs/LuaJIT/COPYRIGHT index 1ef7df62..6ed40025 100644 --- a/libs/LuaJIT/COPYRIGHT +++ b/libs/LuaJIT/COPYRIGHT @@ -1,7 +1,7 @@ =============================================================================== LuaJIT -- a Just-In-Time Compiler for Lua. http://luajit.org/ -Copyright (C) 2005-2015 Mike Pall. All rights reserved. +Copyright (C) 2005-2017 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 "Software"), to deal diff --git a/libs/LuaJIT/Makefile b/libs/LuaJIT/Makefile index 0cbe741a..ecce9ec5 100644 --- a/libs/LuaJIT/Makefile +++ b/libs/LuaJIT/Makefile @@ -10,12 +10,12 @@ # For MSVC, please follow the instructions given in src/msvcbuild.bat. # For MinGW and Cygwin, cd to src and run make with the Makefile there. # -# Copyright (C) 2005-2015 Mike Pall. See Copyright Notice in luajit.h +# Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h ############################################################################## MAJVER= 2 MINVER= 0 -RELVER= 4 +RELVER= 5 VERSION= $(MAJVER).$(MINVER).$(RELVER) ABIVER= 5.1 @@ -46,17 +46,18 @@ INSTALL_PKGCONFIG= $(INSTALL_LIB)/pkgconfig INSTALL_TNAME= luajit-$(VERSION) INSTALL_TSYMNAME= luajit INSTALL_ANAME= libluajit-$(ABIVER).a -INSTALL_SONAME= libluajit-$(ABIVER).so.$(MAJVER).$(MINVER).$(RELVER) -INSTALL_SOSHORT= libluajit-$(ABIVER).so -INSTALL_DYLIBNAME= libluajit-$(ABIVER).$(MAJVER).$(MINVER).$(RELVER).dylib +INSTALL_SOSHORT1= libluajit-$(ABIVER).so +INSTALL_SOSHORT2= libluajit-$(ABIVER).so.$(MAJVER) +INSTALL_SONAME= $(INSTALL_SOSHORT2).$(MINVER).$(RELVER) INSTALL_DYLIBSHORT1= libluajit-$(ABIVER).dylib INSTALL_DYLIBSHORT2= libluajit-$(ABIVER).$(MAJVER).dylib +INSTALL_DYLIBNAME= libluajit-$(ABIVER).$(MAJVER).$(MINVER).$(RELVER).dylib INSTALL_PCNAME= luajit.pc INSTALL_STATIC= $(INSTALL_LIB)/$(INSTALL_ANAME) INSTALL_DYN= $(INSTALL_LIB)/$(INSTALL_SONAME) -INSTALL_SHORT1= $(INSTALL_LIB)/$(INSTALL_SOSHORT) -INSTALL_SHORT2= $(INSTALL_LIB)/$(INSTALL_SOSHORT) +INSTALL_SHORT1= $(INSTALL_LIB)/$(INSTALL_SOSHORT1) +INSTALL_SHORT2= $(INSTALL_LIB)/$(INSTALL_SOSHORT2) INSTALL_T= $(INSTALL_BIN)/$(INSTALL_TNAME) INSTALL_TSYM= $(INSTALL_BIN)/$(INSTALL_TSYMNAME) INSTALL_PC= $(INSTALL_PKGCONFIG)/$(INSTALL_PCNAME) @@ -87,12 +88,17 @@ FILES_JITLIB= bc.lua v.lua dump.lua dis_x86.lua dis_x64.lua dis_arm.lua \ dis_ppc.lua dis_mips.lua dis_mipsel.lua bcsave.lua vmdef.lua ifeq (,$(findstring Windows,$(OS))) - ifeq (Darwin,$(shell uname -s)) - INSTALL_SONAME= $(INSTALL_DYLIBNAME) - INSTALL_SHORT1= $(INSTALL_LIB)/$(INSTALL_DYLIBSHORT1) - INSTALL_SHORT2= $(INSTALL_LIB)/$(INSTALL_DYLIBSHORT2) - LDCONFIG= : - endif + HOST_SYS:= $(shell uname -s) +else + HOST_SYS= Windows +endif +TARGET_SYS?= $(HOST_SYS) + +ifeq (Darwin,$(TARGET_SYS)) + INSTALL_SONAME= $(INSTALL_DYLIBNAME) + INSTALL_SOSHORT1= $(INSTALL_DYLIBSHORT1) + INSTALL_SOSHORT2= $(INSTALL_DYLIBSHORT2) + LDCONFIG= : endif ############################################################################## diff --git a/libs/LuaJIT/README b/libs/LuaJIT/README index 44366af5..6cb7cebb 100644 --- a/libs/LuaJIT/README +++ b/libs/LuaJIT/README @@ -1,11 +1,11 @@ -README for LuaJIT 2.0.4 +README for LuaJIT 2.0.5 ----------------------- LuaJIT is a Just-In-Time (JIT) compiler for the Lua programming language. Project Homepage: http://luajit.org/ -LuaJIT is Copyright (C) 2005-2015 Mike Pall. +LuaJIT is Copyright (C) 2005-2017 Mike Pall. LuaJIT is free software, released under the MIT license. See full Copyright Notice in the COPYRIGHT file or in luajit.h. diff --git a/libs/LuaJIT/doc/bluequad-print.css b/libs/LuaJIT/doc/bluequad-print.css index 07f5c84a..62e1c165 100644 --- a/libs/LuaJIT/doc/bluequad-print.css +++ b/libs/LuaJIT/doc/bluequad-print.css @@ -1,4 +1,4 @@ -/* Copyright (C) 2004-2015 Mike Pall. +/* Copyright (C) 2004-2017 Mike Pall. * * You are welcome to use the general ideas of this design for your own sites. * But please do not steal the stylesheet, the layout or the color scheme. diff --git a/libs/LuaJIT/doc/bluequad.css b/libs/LuaJIT/doc/bluequad.css index ae531430..be2c4bf2 100644 --- a/libs/LuaJIT/doc/bluequad.css +++ b/libs/LuaJIT/doc/bluequad.css @@ -1,4 +1,4 @@ -/* Copyright (C) 2004-2015 Mike Pall. +/* Copyright (C) 2004-2017 Mike Pall. * * You are welcome to use the general ideas of this design for your own sites. * But please do not steal the stylesheet, the layout or the color scheme. diff --git a/libs/LuaJIT/doc/changes.html b/libs/LuaJIT/doc/changes.html index d7b83ce6..4a4d4fb9 100644 --- a/libs/LuaJIT/doc/changes.html +++ b/libs/LuaJIT/doc/changes.html @@ -4,7 +4,7 @@ LuaJIT Change History - + @@ -63,7 +63,7 @@ div.major { max-width: 600px; padding: 1em; margin: 1em 0 1em 0; }

This is a list of changes between the released versions of LuaJIT.
-The current stable version is LuaJIT 2.0.4.
+The current stable version is LuaJIT 2.0.5.

Please check the @@ -72,6 +72,48 @@ to see whether newer versions are available.

+

LuaJIT 2.0.5 — 2017-05-01

+
    +
  • Add workaround for MSVC 2015 stdio changes.
  • +
  • Limit mcode alloc probing, depending on the available pool size.
  • +
  • Fix overly restrictive range calculation in mcode allocation.
  • +
  • Fix out-of-scope goto handling in parser.
  • +
  • Remove internal __mode = "K" and replace with safe check.
  • +
  • Add "proto" field to jit.util.funcinfo().
  • +
  • Fix GC step size calculation.
  • +
  • Initialize uv->immutable for upvalues of loaded chunks.
  • +
  • Fix for cdata vs. non-cdata arithmetics/comparisons.
  • +
  • Drop leftover regs in 'for' iterator assignment, too.
  • +
  • Fix PHI remarking in SINK pass.
  • +
  • Don't try to record outermost pcall() return to lower frame.
  • +
  • Add guard for obscure aliasing between open upvalues and SSA slots.
  • +
  • Remove assumption that lj_math_random_step() doesn't clobber FPRs.
  • +
  • Fix handling of non-numeric strings in arithmetic coercions.
  • +
  • Fix recording of select(n, ...) with off-trace varargs
  • +
  • Fix install for cross-builds.
  • +
  • Don't allocate unused 2nd result register in JIT compiler backend.
  • +
  • Drop marks from replayed instructions when sinking.
  • +
  • Fix unsinking check.
  • +
  • Properly handle OOM in trace_save().
  • +
  • Limit number of arguments given to io.lines() and fp:lines().
  • +
  • Fix narrowing of TOBIT.
  • +
  • OSX: Fix build with recent XCode.
  • +
  • x86/x64: Don't spill an explicit REF_BASE in the IR.
  • +
  • x86/x64: Fix instruction length decoder.
  • +
  • x86/x64: Search for exit jumps with instruction length decoder.
  • +
  • ARM: Fix BLX encoding for Thumb interworking calls.
  • +
  • MIPS: Don't use RID_GP as a scratch register.
  • +
  • MIPS: Fix emitted code for U32 to float conversion.
  • +
  • MIPS: Backport workaround for compact unwind tables.
  • +
  • MIPS: Fix cross-endian jit.bcsave.
  • +
  • MIPS: Fix BC_ISNEXT fallback path.
  • +
  • MIPS: Fix use of ffgccheck delay slots in interpreter.
  • +
  • FFI: Fix FOLD rules for int64_t comparisons.
  • +
  • FFI: Fix SPLIT pass for CONV i64.u64.
  • +
  • FFI: Fix ipairs() recording.
  • +
  • FFI: Don't propagate qualifiers into subtypes of complex.
  • +
+

LuaJIT 2.0.4 — 2015-05-14

  • Fix stack check in narrowing optimization.
  • @@ -968,7 +1010,7 @@ This is the initial non-public release of LuaJIT.

+If you want to report bugs, propose fixes or suggest enhancements, +please use the +GitHub issue tracker. +

+

Please send general questions to the » LuaJIT mailing list. +

+

You can also send any questions you have directly to me:

@@ -84,7 +91,7 @@ xD("fyZKB8xv\"FJytmz8.KAB0u52D")

Copyright

All documentation is -Copyright © 2005-2015 Mike Pall. +Copyright © 2005-2017 Mike Pall.

@@ -92,7 +99,7 @@ Copyright © 2005-2015 Mike Pall.