Skip to content

Commit 7cdede9

Browse files
committed
upgrade LuaJIT to 2.0.4
1 parent 0f8016c commit 7cdede9

File tree

181 files changed

+723
-400
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+723
-400
lines changed

deps/luajit/COPYRIGHT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
===============================================================================
22
LuaJIT -- a Just-In-Time Compiler for Lua. http://luajit.org/
33

4-
Copyright (C) 2005-2014 Mike Pall. All rights reserved.
4+
Copyright (C) 2005-2015 Mike Pall. All rights reserved.
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

deps/luajit/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
# For MSVC, please follow the instructions given in src/msvcbuild.bat.
1111
# For MinGW and Cygwin, cd to src and run make with the Makefile there.
1212
#
13-
# Copyright (C) 2005-2014 Mike Pall. See Copyright Notice in luajit.h
13+
# Copyright (C) 2005-2015 Mike Pall. See Copyright Notice in luajit.h
1414
##############################################################################
1515

1616
MAJVER= 2
1717
MINVER= 0
18-
RELVER= 3
18+
RELVER= 4
1919
VERSION= $(MAJVER).$(MINVER).$(RELVER)
2020
ABIVER= 5.1
2121

deps/luajit/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
README for LuaJIT 2.0.3
1+
README for LuaJIT 2.0.4
22
-----------------------
33

44
LuaJIT is a Just-In-Time (JIT) compiler for the Lua programming language.
55

66
Project Homepage: http://luajit.org/
77

8-
LuaJIT is Copyright (C) 2005-2014 Mike Pall.
8+
LuaJIT is Copyright (C) 2005-2015 Mike Pall.
99
LuaJIT is free software, released under the MIT license.
1010
See full Copyright Notice in the COPYRIGHT file or in luajit.h.
1111

deps/luajit/doc/bluequad-print.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (C) 2004-2014 Mike Pall.
1+
/* Copyright (C) 2004-2015 Mike Pall.
22
*
33
* You are welcome to use the general ideas of this design for your own sites.
44
* But please do not steal the stylesheet, the layout or the color scheme.

deps/luajit/doc/bluequad.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (C) 2004-2014 Mike Pall.
1+
/* Copyright (C) 2004-2015 Mike Pall.
22
*
33
* You are welcome to use the general ideas of this design for your own sites.
44
* But please do not steal the stylesheet, the layout or the color scheme.

deps/luajit/doc/changes.html

Lines changed: 53 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>LuaJIT Change History</title>
55
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
66
<meta name="Author" content="Mike Pall">
7-
<meta name="Copyright" content="Copyright (C) 2005-2014, Mike Pall">
7+
<meta name="Copyright" content="Copyright (C) 2005-2015, Mike Pall">
88
<meta name="Language" content="en">
99
<link rel="stylesheet" type="text/css" href="bluequad.css" media="screen">
1010
<link rel="stylesheet" type="text/css" href="bluequad-print.css" media="print">
@@ -63,7 +63,7 @@ <h1>LuaJIT Change History</h1>
6363
<div id="main">
6464
<p>
6565
This is a list of changes between the released versions of LuaJIT.<br>
66-
The current <span style="color: #0000c0;">stable version</span> is <strong>LuaJIT&nbsp;2.0.3</strong>.<br>
66+
The current <span style="color: #0000c0;">stable version</span> is <strong>LuaJIT&nbsp;2.0.4</strong>.<br>
6767
</p>
6868
<p>
6969
Please check the
@@ -72,6 +72,56 @@ <h1>LuaJIT Change History</h1>
7272
</p>
7373

7474
<div class="major" style="background: #d0d0ff;">
75+
<h2 id="LuaJIT-2.0.4">LuaJIT 2.0.4 &mdash; 2015-05-14</h2>
76+
<ul>
77+
<li>Fix stack check in narrowing optimization.</li>
78+
<li>Fix Lua/C API typecheck error for special indexes.</li>
79+
<li>Fix string to number conversion.</li>
80+
<li>Fix lexer error for chunks without tokens.</li>
81+
<li>Don't compile <tt>IR_RETF</tt> after <tt>CALLT</tt> to ff with-side effects.</li>
82+
<li>Fix <tt>BC_UCLO</tt>/<tt>BC_JMP</tt> join optimization in Lua parser.</li>
83+
<li>Fix corner case in string to number conversion.</li>
84+
<li>Gracefully handle <tt>lua_error()</tt> for a suspended coroutine.</li>
85+
<li>Avoid error messages when building with Clang.</li>
86+
<li>Fix snapshot #0 handling for traces with a stack check on entry.</li>
87+
<li>Fix fused constant loads under high register pressure.</li>
88+
<li>Invalidate backpropagation cache after DCE.</li>
89+
<li>Fix ABC elimination.</li>
90+
<li>Fix debug info for main chunk of stripped bytecode.</li>
91+
<li>Fix FOLD rule for <tt>string.sub(s, ...) == k</tt>.</li>
92+
<li>Fix FOLD rule for <tt>STRREF</tt> of <tt>SNEW</tt>.</li>
93+
<li>Fix frame traversal while searching for error function.</li>
94+
<li>Prevent GC estimate miscalculation due to buffer growth.</li>
95+
<li>Prevent adding side traces for stack checks.</li>
96+
<li>Fix top slot calculation for snapshots with continuations.</li>
97+
<li>Fix check for reuse of SCEV results in <tt>FORL</tt>.</li>
98+
<li>Add PS Vita port.</li>
99+
<li>Fix compatibility issues with Illumos.</li>
100+
<li>Fix DragonFly build (unsupported).</li>
101+
<li>OpenBSD/x86: Better executable memory allocation for W^X mode.</li>
102+
<li>x86: Fix argument checks for <tt>ipairs()</tt> iterator.</li>
103+
<li>x86: <tt>lj_math_random_step()</tt> clobbers XMM regs on OSX Clang.</li>
104+
<li>x86: Fix code generation for unused result of <tt>math.random()</tt>.</li>
105+
<li>x64: Allow building with <tt>LUAJIT_USE_SYSMALLOC</tt> and <tt>LUAJIT_USE_VALGRIND</tt>.</li>
106+
<li>x86/x64: Fix argument check for bit shifts.</li>
107+
<li>x86/x64: Fix code generation for fused test/arith ops.</li>
108+
<li>ARM: Fix write barrier check in <tt>BC_USETS</tt>.</li>
109+
<li>PPC: Fix red zone overflow in machine code generation.</li>
110+
<li>PPC: Don't use <tt>mcrxr</tt> on PPE.</li>
111+
<li>Various archs: Fix excess stack growth in interpreter.</li>
112+
<li>FFI: Fix FOLD rule for <tt>TOBIT</tt> + <tt>CONV num.u32</tt>.</li>
113+
<li>FFI: Prevent DSE across <tt>ffi.string()</tt>.</li>
114+
<li>FFI: No meta fallback when indexing pointer to incomplete struct.</li>
115+
<li>FFI: Fix initialization of unions of subtypes.</li>
116+
<li>FFI: Fix cdata vs. non-cdata arithmetic and comparisons.</li>
117+
<li>FFI: Fix <tt>__index</tt>/<tt>__newindex</tt> metamethod resolution for ctypes.</li>
118+
<li>FFI: Fix compilation of reference field access.</li>
119+
<li>FFI: Fix frame traversal for backtraces with FFI callbacks.</li>
120+
<li>FFI: Fix recording of indexing a struct pointer ctype object itself.</li>
121+
<li>FFI: Allow non-scalar cdata to be compared for equality by address.</li>
122+
<li>FFI: Fix pseudo type conversions for type punning.</li>
123+
</ul>
124+
75125
<h2 id="LuaJIT-2.0.3">LuaJIT 2.0.3 &mdash; 2014-03-12</h2>
76126
<ul>
77127
<li>Add PS4 port.</li>
@@ -918,7 +968,7 @@ <h2 id="LuaJIT-1.0.0">LuaJIT 1.0.0 &mdash; 2005-08-29</h2>
918968
</div>
919969
<div id="foot">
920970
<hr class="hide">
921-
Copyright &copy; 2005-2014 Mike Pall
971+
Copyright &copy; 2005-2015 Mike Pall
922972
<span class="noprint">
923973
&middot;
924974
<a href="contact.html">Contact</a>

deps/luajit/doc/contact.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>Contact</title>
55
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
66
<meta name="Author" content="Mike Pall">
7-
<meta name="Copyright" content="Copyright (C) 2005-2014, Mike Pall">
7+
<meta name="Copyright" content="Copyright (C) 2005-2015, Mike Pall">
88
<meta name="Language" content="en">
99
<link rel="stylesheet" type="text/css" href="bluequad.css" media="screen">
1010
<link rel="stylesheet" type="text/css" href="bluequad-print.css" media="print">
@@ -84,15 +84,15 @@ <h1>Contact</h1>
8484
<h2>Copyright</h2>
8585
<p>
8686
All documentation is
87-
Copyright &copy; 2005-2014 Mike Pall.
87+
Copyright &copy; 2005-2015 Mike Pall.
8888
</p>
8989

9090

9191
<br class="flush">
9292
</div>
9393
<div id="foot">
9494
<hr class="hide">
95-
Copyright &copy; 2005-2014 Mike Pall
95+
Copyright &copy; 2005-2015 Mike Pall
9696
<span class="noprint">
9797
&middot;
9898
<a href="contact.html">Contact</a>

deps/luajit/doc/ext_c_api.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>Lua/C API Extensions</title>
55
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
66
<meta name="Author" content="Mike Pall">
7-
<meta name="Copyright" content="Copyright (C) 2005-2014, Mike Pall">
7+
<meta name="Copyright" content="Copyright (C) 2005-2015, Mike Pall">
88
<meta name="Language" content="en">
99
<link rel="stylesheet" type="text/css" href="bluequad.css" media="screen">
1010
<link rel="stylesheet" type="text/css" href="bluequad-print.css" media="print">
@@ -177,7 +177,7 @@ <h3 id="mode_wrapcfunc"><tt>luaJIT_setmode(L, idx, LUAJIT_MODE_WRAPCFUNC|flag)</
177177
</div>
178178
<div id="foot">
179179
<hr class="hide">
180-
Copyright &copy; 2005-2014 Mike Pall
180+
Copyright &copy; 2005-2015 Mike Pall
181181
<span class="noprint">
182182
&middot;
183183
<a href="contact.html">Contact</a>

deps/luajit/doc/ext_ffi.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>FFI Library</title>
55
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
66
<meta name="Author" content="Mike Pall">
7-
<meta name="Copyright" content="Copyright (C) 2005-2014, Mike Pall">
7+
<meta name="Copyright" content="Copyright (C) 2005-2015, Mike Pall">
88
<meta name="Language" content="en">
99
<link rel="stylesheet" type="text/css" href="bluequad.css" media="screen">
1010
<link rel="stylesheet" type="text/css" href="bluequad-print.css" media="print">
@@ -320,7 +320,7 @@ <h2 id="cdata">Motivating Example: Using C Data Structures</h2>
320320
</div>
321321
<div id="foot">
322322
<hr class="hide">
323-
Copyright &copy; 2005-2014 Mike Pall
323+
Copyright &copy; 2005-2015 Mike Pall
324324
<span class="noprint">
325325
&middot;
326326
<a href="contact.html">Contact</a>

deps/luajit/doc/ext_ffi_api.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>ffi.* API Functions</title>
55
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
66
<meta name="Author" content="Mike Pall">
7-
<meta name="Copyright" content="Copyright (C) 2005-2014, Mike Pall">
7+
<meta name="Copyright" content="Copyright (C) 2005-2015, Mike Pall">
88
<meta name="Language" content="en">
99
<link rel="stylesheet" type="text/css" href="bluequad.css" media="screen">
1010
<link rel="stylesheet" type="text/css" href="bluequad-print.css" media="print">
@@ -556,7 +556,7 @@ <h2 id="literals">Extensions to the Lua Parser</h2>
556556
</div>
557557
<div id="foot">
558558
<hr class="hide">
559-
Copyright &copy; 2005-2014 Mike Pall
559+
Copyright &copy; 2005-2015 Mike Pall
560560
<span class="noprint">
561561
&middot;
562562
<a href="contact.html">Contact</a>

deps/luajit/doc/ext_ffi_semantics.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>FFI Semantics</title>
55
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
66
<meta name="Author" content="Mike Pall">
7-
<meta name="Copyright" content="Copyright (C) 2005-2014, Mike Pall">
7+
<meta name="Copyright" content="Copyright (C) 2005-2015, Mike Pall">
88
<meta name="Language" content="en">
99
<link rel="stylesheet" type="text/css" href="bluequad.css" media="screen">
1010
<link rel="stylesheet" type="text/css" href="bluequad-print.css" media="print">
@@ -1235,7 +1235,7 @@ <h2 id="status">Current Status</h2>
12351235
</div>
12361236
<div id="foot">
12371237
<hr class="hide">
1238-
Copyright &copy; 2005-2014 Mike Pall
1238+
Copyright &copy; 2005-2015 Mike Pall
12391239
<span class="noprint">
12401240
&middot;
12411241
<a href="contact.html">Contact</a>

deps/luajit/doc/ext_ffi_tutorial.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>FFI Tutorial</title>
55
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
66
<meta name="Author" content="Mike Pall">
7-
<meta name="Copyright" content="Copyright (C) 2005-2014, Mike Pall">
7+
<meta name="Copyright" content="Copyright (C) 2005-2015, Mike Pall">
88
<meta name="Language" content="en">
99
<link rel="stylesheet" type="text/css" href="bluequad.css" media="screen">
1010
<link rel="stylesheet" type="text/css" href="bluequad-print.css" media="print">
@@ -564,7 +564,7 @@ <h2 id="cache">To Cache or Not to Cache</h2>
564564
individual C&nbsp;functions like this:
565565
</p>
566566
<pre class="code">
567-
local <b>funca</b>, <b>funcb</b> = ffi.C.funcb, ffi.C.funcb -- <span style="color:#c00000;">Not helpful!</span>
567+
local <b>funca</b>, <b>funcb</b> = ffi.C.funca, ffi.C.funcb -- <span style="color:#c00000;">Not helpful!</span>
568568
local function foo(x, n)
569569
for i=1,n do <b>funcb</b>(<b>funca</b>(x, i), 1) end
570570
end
@@ -591,7 +591,7 @@ <h2 id="cache">To Cache or Not to Cache</h2>
591591
</div>
592592
<div id="foot">
593593
<hr class="hide">
594-
Copyright &copy; 2005-2014 Mike Pall
594+
Copyright &copy; 2005-2015 Mike Pall
595595
<span class="noprint">
596596
&middot;
597597
<a href="contact.html">Contact</a>

deps/luajit/doc/ext_jit.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>jit.* Library</title>
55
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
66
<meta name="Author" content="Mike Pall">
7-
<meta name="Copyright" content="Copyright (C) 2005-2014, Mike Pall">
7+
<meta name="Copyright" content="Copyright (C) 2005-2015, Mike Pall">
88
<meta name="Language" content="en">
99
<link rel="stylesheet" type="text/css" href="bluequad.css" media="screen">
1010
<link rel="stylesheet" type="text/css" href="bluequad-print.css" media="print">
@@ -151,7 +151,7 @@ <h3 id="jit_os"><tt>jit.os</tt></h3>
151151
<h3 id="jit_arch"><tt>jit.arch</tt></h3>
152152
<p>
153153
Contains the target architecture name:
154-
"x86", "x64" or "ppcspe".
154+
"x86", "x64", "arm", "ppc", "ppcspe", or "mips".
155155
</p>
156156

157157
<h2 id="jit_opt"><tt>jit.opt.*</tt> &mdash; JIT compiler optimization control</h2>
@@ -189,7 +189,7 @@ <h2 id="jit_util"><tt>jit.util.*</tt> &mdash; JIT compiler introspection</h2>
189189
</div>
190190
<div id="foot">
191191
<hr class="hide">
192-
Copyright &copy; 2005-2014 Mike Pall
192+
Copyright &copy; 2005-2015 Mike Pall
193193
<span class="noprint">
194194
&middot;
195195
<a href="contact.html">Contact</a>

deps/luajit/doc/extensions.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>Extensions</title>
55
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
66
<meta name="Author" content="Mike Pall">
7-
<meta name="Copyright" content="Copyright (C) 2005-2014, Mike Pall">
7+
<meta name="Copyright" content="Copyright (C) 2005-2015, Mike Pall">
88
<meta name="Language" content="en">
99
<link rel="stylesheet" type="text/css" href="bluequad.css" media="screen">
1010
<link rel="stylesheet" type="text/css" href="bluequad-print.css" media="print">
@@ -398,7 +398,7 @@ <h2 id="exceptions">C++ Exception Interoperability</h2>
398398
</div>
399399
<div id="foot">
400400
<hr class="hide">
401-
Copyright &copy; 2005-2014 Mike Pall
401+
Copyright &copy; 2005-2015 Mike Pall
402402
<span class="noprint">
403403
&middot;
404404
<a href="contact.html">Contact</a>

deps/luajit/doc/faq.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>Frequently Asked Questions (FAQ)</title>
55
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
66
<meta name="Author" content="Mike Pall">
7-
<meta name="Copyright" content="Copyright (C) 2005-2014, Mike Pall">
7+
<meta name="Copyright" content="Copyright (C) 2005-2015, Mike Pall">
88
<meta name="Language" content="en">
99
<link rel="stylesheet" type="text/css" href="bluequad.css" media="screen">
1010
<link rel="stylesheet" type="text/css" href="bluequad-print.css" media="print">
@@ -174,7 +174,7 @@ <h1>Frequently Asked Questions (FAQ)</h1>
174174
</div>
175175
<div id="foot">
176176
<hr class="hide">
177-
Copyright &copy; 2005-2014 Mike Pall
177+
Copyright &copy; 2005-2015 Mike Pall
178178
<span class="noprint">
179179
&middot;
180180
<a href="contact.html">Contact</a>

0 commit comments

Comments
 (0)