From c952bbcab781edcd16ca8ea135fdd2a0af842ffd Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Tue, 1 Dec 2015 14:19:13 -0400 Subject: [PATCH] Update LuaJIT to 2.0.4. --- CMakeLists.txt | 2 +- libs/LuaJIT/COPYRIGHT | 2 +- libs/LuaJIT/Makefile | 4 +- libs/LuaJIT/README | 4 +- libs/LuaJIT/doc/bluequad-print.css | 2 +- libs/LuaJIT/doc/bluequad.css | 2 +- libs/LuaJIT/doc/changes.html | 56 +++++++++++++++- libs/LuaJIT/doc/contact.html | 6 +- 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 | 6 +- libs/LuaJIT/doc/ext_jit.html | 6 +- libs/LuaJIT/doc/extensions.html | 4 +- libs/LuaJIT/doc/faq.html | 4 +- libs/LuaJIT/doc/install.html | 65 +++++++++++------- libs/LuaJIT/doc/luajit.html | 14 ++-- libs/LuaJIT/doc/running.html | 6 +- libs/LuaJIT/doc/status.html | 17 ++--- libs/LuaJIT/dynasm/dasm_arm.h | 2 +- libs/LuaJIT/dynasm/dasm_arm.lua | 9 ++- 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 | 2 +- libs/LuaJIT/dynasm/dasm_x86.lua | 10 ++- libs/LuaJIT/dynasm/dynasm.lua | 4 +- libs/LuaJIT/etc/luajit.1 | 2 +- libs/LuaJIT/etc/luajit.pc | 2 +- libs/LuaJIT/src/Makefile | 20 +++--- libs/LuaJIT/src/Makefile.dep | 2 +- libs/LuaJIT/src/host/buildvm.c | 2 +- libs/LuaJIT/src/host/buildvm.h | 2 +- libs/LuaJIT/src/host/buildvm_asm.c | 4 +- libs/LuaJIT/src/host/buildvm_fold.c | 2 +- libs/LuaJIT/src/host/buildvm_lib.c | 2 +- libs/LuaJIT/src/host/buildvm_peobj.c | 2 +- libs/LuaJIT/src/host/genminilua.lua | 2 +- libs/LuaJIT/src/jit/bc.lua | 4 +- libs/LuaJIT/src/jit/bcsave.lua | 6 +- libs/LuaJIT/src/jit/dis_arm.lua | 2 +- libs/LuaJIT/src/jit/dis_mips.lua | 2 +- libs/LuaJIT/src/jit/dis_mipsel.lua | 2 +- libs/LuaJIT/src/jit/dis_ppc.lua | 2 +- libs/LuaJIT/src/jit/dis_x64.lua | 2 +- libs/LuaJIT/src/jit/dis_x86.lua | 2 +- libs/LuaJIT/src/jit/dump.lua | 4 +- libs/LuaJIT/src/jit/v.lua | 4 +- libs/LuaJIT/src/lib_aux.c | 4 +- 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 | 3 +- libs/LuaJIT/src/lib_init.c | 2 +- libs/LuaJIT/src/lib_io.c | 4 +- libs/LuaJIT/src/lib_jit.c | 2 +- libs/LuaJIT/src/lib_math.c | 2 +- libs/LuaJIT/src/lib_os.c | 13 +++- 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_alloc.c | 14 ++-- libs/LuaJIT/src/lj_api.c | 2 +- libs/LuaJIT/src/lj_arch.h | 17 ++++- libs/LuaJIT/src/lj_asm.c | 8 ++- libs/LuaJIT/src/lj_asm.h | 2 +- libs/LuaJIT/src/lj_asm_arm.h | 2 +- libs/LuaJIT/src/lj_asm_mips.h | 2 +- libs/LuaJIT/src/lj_asm_ppc.h | 4 +- libs/LuaJIT/src/lj_asm_x86.h | 22 ++++-- 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 | 10 +-- 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 | 3 +- libs/LuaJIT/src/lj_cconv.h | 2 +- libs/LuaJIT/src/lj_cdata.c | 20 +++--- libs/LuaJIT/src/lj_cdata.h | 2 +- libs/LuaJIT/src/lj_clib.c | 2 +- libs/LuaJIT/src/lj_clib.h | 2 +- libs/LuaJIT/src/lj_cparse.c | 2 +- libs/LuaJIT/src/lj_cparse.h | 2 +- libs/LuaJIT/src/lj_crecord.c | 82 ++++++++++++++--------- libs/LuaJIT/src/lj_crecord.h | 2 +- libs/LuaJIT/src/lj_ctype.c | 2 +- libs/LuaJIT/src/lj_ctype.h | 2 +- libs/LuaJIT/src/lj_debug.c | 8 ++- libs/LuaJIT/src/lj_debug.h | 2 +- libs/LuaJIT/src/lj_def.h | 10 ++- libs/LuaJIT/src/lj_dispatch.c | 2 +- libs/LuaJIT/src/lj_dispatch.h | 2 +- libs/LuaJIT/src/lj_emit_arm.h | 2 +- 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 | 31 ++++++--- 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 | 2 +- libs/LuaJIT/src/lj_ffrecord.h | 2 +- libs/LuaJIT/src/lj_frame.h | 2 +- libs/LuaJIT/src/lj_func.c | 2 +- libs/LuaJIT/src/lj_func.h | 2 +- libs/LuaJIT/src/lj_gc.c | 6 +- libs/LuaJIT/src/lj_gc.h | 2 +- libs/LuaJIT/src/lj_gdbjit.c | 4 +- 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 | 2 +- libs/LuaJIT/src/lj_jit.h | 3 +- libs/LuaJIT/src/lj_lex.c | 3 +- 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 | 19 +++++- 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 | 3 +- libs/LuaJIT/src/lj_opt_fold.c | 31 +++++---- libs/LuaJIT/src/lj_opt_loop.c | 2 +- libs/LuaJIT/src/lj_opt_mem.c | 23 +++---- libs/LuaJIT/src/lj_opt_narrow.c | 16 +++-- libs/LuaJIT/src/lj_opt_sink.c | 2 +- libs/LuaJIT/src/lj_opt_split.c | 2 +- libs/LuaJIT/src/lj_parse.c | 8 ++- libs/LuaJIT/src/lj_parse.h | 2 +- libs/LuaJIT/src/lj_record.c | 10 ++- libs/LuaJIT/src/lj_record.h | 2 +- libs/LuaJIT/src/lj_snap.c | 7 +- libs/LuaJIT/src/lj_snap.h | 2 +- libs/LuaJIT/src/lj_state.c | 4 +- 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 | 11 +-- 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 | 2 +- libs/LuaJIT/src/lj_target_ppc.h | 2 +- libs/LuaJIT/src/lj_target_x86.h | 2 +- libs/LuaJIT/src/lj_trace.c | 3 +- libs/LuaJIT/src/lj_trace.h | 2 +- libs/LuaJIT/src/lj_traceerr.h | 2 +- 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 | 20 +++--- libs/LuaJIT/src/luajit.h | 10 +-- libs/LuaJIT/src/lualib.h | 2 +- libs/LuaJIT/src/msvcbuild.bat | 2 +- libs/LuaJIT/src/psvitabuild.bat | 93 ++++++++++++++++++++++++++ libs/LuaJIT/src/vm_arm.dasc | 15 ++--- libs/LuaJIT/src/vm_mips.dasc | 4 +- libs/LuaJIT/src/vm_ppc.dasc | 39 ++++++++--- libs/LuaJIT/src/vm_ppcspe.dasc | 2 +- libs/LuaJIT/src/vm_x86.dasc | 19 +++--- 182 files changed, 724 insertions(+), 401 deletions(-) create mode 100644 libs/LuaJIT/src/psvitabuild.bat diff --git a/CMakeLists.txt b/CMakeLists.txt index 9886a78d..de1916fc 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -131,7 +131,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.3") +set(MEGA_LUAJIT_VER "2.0.4") set(MEGA_LIBOGG_VER "1.3.1") set(MEGA_LIBVORBIS_VER "1.3.3") set(MEGA_LIBTHEORA_VER "1.1") diff --git a/libs/LuaJIT/COPYRIGHT b/libs/LuaJIT/COPYRIGHT index 08936dfb..1ef7df62 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-2014 Mike Pall. All rights reserved. +Copyright (C) 2005-2015 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 b23b6481..0cbe741a 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-2014 Mike Pall. See Copyright Notice in luajit.h +# Copyright (C) 2005-2015 Mike Pall. See Copyright Notice in luajit.h ############################################################################## MAJVER= 2 MINVER= 0 -RELVER= 3 +RELVER= 4 VERSION= $(MAJVER).$(MINVER).$(RELVER) ABIVER= 5.1 diff --git a/libs/LuaJIT/README b/libs/LuaJIT/README index 902a6d2e..44366af5 100644 --- a/libs/LuaJIT/README +++ b/libs/LuaJIT/README @@ -1,11 +1,11 @@ -README for LuaJIT 2.0.3 +README for LuaJIT 2.0.4 ----------------------- LuaJIT is a Just-In-Time (JIT) compiler for the Lua programming language. Project Homepage: http://luajit.org/ -LuaJIT is Copyright (C) 2005-2014 Mike Pall. +LuaJIT is Copyright (C) 2005-2015 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 21da8688..07f5c84a 100644 --- a/libs/LuaJIT/doc/bluequad-print.css +++ b/libs/LuaJIT/doc/bluequad-print.css @@ -1,4 +1,4 @@ -/* Copyright (C) 2004-2014 Mike Pall. +/* Copyright (C) 2004-2015 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 05b092e4..ae531430 100644 --- a/libs/LuaJIT/doc/bluequad.css +++ b/libs/LuaJIT/doc/bluequad.css @@ -1,4 +1,4 @@ -/* Copyright (C) 2004-2014 Mike Pall. +/* Copyright (C) 2004-2015 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 98412293..d7b83ce6 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.3.
+The current stable version is LuaJIT 2.0.4.

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

+

LuaJIT 2.0.4 — 2015-05-14

+
    +
  • Fix stack check in narrowing optimization.
  • +
  • Fix Lua/C API typecheck error for special indexes.
  • +
  • Fix string to number conversion.
  • +
  • Fix lexer error for chunks without tokens.
  • +
  • Don't compile IR_RETF after CALLT to ff with-side effects.
  • +
  • Fix BC_UCLO/BC_JMP join optimization in Lua parser.
  • +
  • Fix corner case in string to number conversion.
  • +
  • Gracefully handle lua_error() for a suspended coroutine.
  • +
  • Avoid error messages when building with Clang.
  • +
  • Fix snapshot #0 handling for traces with a stack check on entry.
  • +
  • Fix fused constant loads under high register pressure.
  • +
  • Invalidate backpropagation cache after DCE.
  • +
  • Fix ABC elimination.
  • +
  • Fix debug info for main chunk of stripped bytecode.
  • +
  • Fix FOLD rule for string.sub(s, ...) == k.
  • +
  • Fix FOLD rule for STRREF of SNEW.
  • +
  • Fix frame traversal while searching for error function.
  • +
  • Prevent GC estimate miscalculation due to buffer growth.
  • +
  • Prevent adding side traces for stack checks.
  • +
  • Fix top slot calculation for snapshots with continuations.
  • +
  • Fix check for reuse of SCEV results in FORL.
  • +
  • Add PS Vita port.
  • +
  • Fix compatibility issues with Illumos.
  • +
  • Fix DragonFly build (unsupported).
  • +
  • OpenBSD/x86: Better executable memory allocation for W^X mode.
  • +
  • x86: Fix argument checks for ipairs() iterator.
  • +
  • x86: lj_math_random_step() clobbers XMM regs on OSX Clang.
  • +
  • x86: Fix code generation for unused result of math.random().
  • +
  • x64: Allow building with LUAJIT_USE_SYSMALLOC and LUAJIT_USE_VALGRIND.
  • +
  • x86/x64: Fix argument check for bit shifts.
  • +
  • x86/x64: Fix code generation for fused test/arith ops.
  • +
  • ARM: Fix write barrier check in BC_USETS.
  • +
  • PPC: Fix red zone overflow in machine code generation.
  • +
  • PPC: Don't use mcrxr on PPE.
  • +
  • Various archs: Fix excess stack growth in interpreter.
  • +
  • FFI: Fix FOLD rule for TOBIT + CONV num.u32.
  • +
  • FFI: Prevent DSE across ffi.string().
  • +
  • FFI: No meta fallback when indexing pointer to incomplete struct.
  • +
  • FFI: Fix initialization of unions of subtypes.
  • +
  • FFI: Fix cdata vs. non-cdata arithmetic and comparisons.
  • +
  • FFI: Fix __index/__newindex metamethod resolution for ctypes.
  • +
  • FFI: Fix compilation of reference field access.
  • +
  • FFI: Fix frame traversal for backtraces with FFI callbacks.
  • +
  • FFI: Fix recording of indexing a struct pointer ctype object itself.
  • +
  • FFI: Allow non-scalar cdata to be compared for equality by address.
  • +
  • FFI: Fix pseudo type conversions for type punning.
  • +
+

LuaJIT 2.0.3 — 2014-03-12

  • Add PS4 port.
  • @@ -918,7 +968,7 @@ This is the initial non-public release of LuaJIT.