diff options
Diffstat (limited to 'doc/changes.html')
-rw-r--r-- | doc/changes.html | 281 |
1 files changed, 281 insertions, 0 deletions
diff --git a/doc/changes.html b/doc/changes.html new file mode 100644 index 00000000..6c34b8be --- /dev/null +++ b/doc/changes.html | |||
@@ -0,0 +1,281 @@ | |||
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | ||
2 | <html> | ||
3 | <head> | ||
4 | <title>LuaJIT Change History</title> | ||
5 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | ||
6 | <meta name="Author" content="Mike Pall"> | ||
7 | <meta name="Copyright" content="Copyright (C) 2005-2009, Mike Pall"> | ||
8 | <meta name="Language" content="en"> | ||
9 | <link rel="stylesheet" type="text/css" href="bluequad.css" media="screen"> | ||
10 | <link rel="stylesheet" type="text/css" href="bluequad-print.css" media="print"> | ||
11 | <style type="text/css"> | ||
12 | div.major { max-width: 600px; padding: 1em; margin: 1em 0 1em 0; } | ||
13 | </style> | ||
14 | </head> | ||
15 | <body> | ||
16 | <div id="site"> | ||
17 | <a href="http://luajit.org"><span>Lua<span id="logo">JIT</span></span></a> | ||
18 | </div> | ||
19 | <div id="head"> | ||
20 | <h1>LuaJIT Change History</h1> | ||
21 | </div> | ||
22 | <div id="nav"> | ||
23 | <ul><li> | ||
24 | <a href="luajit.html">LuaJIT</a> | ||
25 | <ul><li> | ||
26 | <a href="install.html">Installation</a> | ||
27 | </li><li> | ||
28 | <a href="running.html">Running</a> | ||
29 | </li><li> | ||
30 | <a href="api.html">API Extensions</a> | ||
31 | </li></ul> | ||
32 | </li><li> | ||
33 | <a href="status.html">Status</a> | ||
34 | <ul><li> | ||
35 | <a class="current" href="changes.html">Changes</a> | ||
36 | </li></ul> | ||
37 | </li><li> | ||
38 | <a href="faq.html">FAQ</a> | ||
39 | </li><li> | ||
40 | <a href="http://luajit.org/download.html">Download <span class="ext">»</span></a> | ||
41 | </li></ul> | ||
42 | </div> | ||
43 | <div id="main"> | ||
44 | <p> | ||
45 | This is a list of changes between the released versions of LuaJIT.<br> | ||
46 | The current <span style="color: #c00000;">development version</span> is <strong>LuaJIT 2.0.0-beta1</strong>.<br> | ||
47 | The current <span style="color: #0000c0;">stable version</span> is <strong>LuaJIT 1.1.5</strong>. | ||
48 | </p> | ||
49 | <p> | ||
50 | Please check the | ||
51 | <a href="http://luajit.org/luajit_changes.html"><span class="ext">»</span> Online Change History</a> | ||
52 | to see whether newer versions are available. | ||
53 | </p> | ||
54 | |||
55 | <div class="major" style="background: #ffd0d0;"> | ||
56 | <h2 id="LuaJIT-2.0.0-beta1">LuaJIT 2.0.0-beta1 — 2009-10-31</h2> | ||
57 | <ul> | ||
58 | <li>This is the first public release of LuaJIT 2.0.</li> | ||
59 | <li>The whole VM has been rewritten from the ground up, so there's | ||
60 | no point in listing differences over earlier versions.</li> | ||
61 | </ul> | ||
62 | </div> | ||
63 | |||
64 | <div class="major" style="background: #d0d0ff;"> | ||
65 | <h2 id="LuaJIT-1.1.5">LuaJIT 1.1.5 — 2008-10-25</h2> | ||
66 | <ul> | ||
67 | <li>Merged with Lua 5.1.4. Fixes all | ||
68 | <a href="http://www.lua.org/bugs.html#5.1.3"><span class="ext">»</span> known bugs in Lua 5.1.3</a>.</li> | ||
69 | </ul> | ||
70 | |||
71 | <h2 id="LuaJIT-1.1.4">LuaJIT 1.1.4 — 2008-02-05</h2> | ||
72 | <ul> | ||
73 | <li>Merged with Lua 5.1.3. Fixes all | ||
74 | <a href="http://www.lua.org/bugs.html#5.1.2"><span class="ext">»</span> known bugs in Lua 5.1.2</a>.</li> | ||
75 | <li>Fixed possible (but unlikely) stack corruption while compiling | ||
76 | <tt>k^x</tt> expressions.</li> | ||
77 | <li>Fixed DynASM template for cmpss instruction.</li> | ||
78 | </ul> | ||
79 | |||
80 | <h2 id="LuaJIT-1.1.3">LuaJIT 1.1.3 — 2007-05-24</h2> | ||
81 | <ul> | ||
82 | <li>Merged with Lua 5.1.2. Fixes all | ||
83 | <a href="http://www.lua.org/bugs.html#5.1.1"><span class="ext">»</span> known bugs in Lua 5.1.1</a>.</li> | ||
84 | <li>Merged pending Lua 5.1.x fixes: "return -nil" bug, spurious count hook call.</li> | ||
85 | <li>Remove a (sometimes) wrong assertion in <tt>luaJIT_findpc()</tt>.</li> | ||
86 | <li>DynASM now allows labels for displacements and <tt>.aword</tt>.</li> | ||
87 | <li>Fix some compiler warnings for DynASM glue (internal API change).</li> | ||
88 | <li>Correct naming for SSSE3 (temporarily known as SSE4) in DynASM and x86 disassembler.</li> | ||
89 | <li>The loadable debug modules now handle redirection to stdout | ||
90 | (e.g. <tt>-j trace=-</tt>).</li> | ||
91 | </ul> | ||
92 | |||
93 | <h2 id="LuaJIT-1.1.2">LuaJIT 1.1.2 — 2006-06-24</h2> | ||
94 | <ul> | ||
95 | <li>Fix MSVC inline assembly: use only local variables with | ||
96 | <tt>lua_number2int()</tt>.</li> | ||
97 | <li>Fix "attempt to call a thread value" bug on Mac OS X: | ||
98 | make values of consts used as lightuserdata keys unique | ||
99 | to avoid joining by the compiler/linker.</li> | ||
100 | </ul> | ||
101 | |||
102 | <h2 id="LuaJIT-1.1.1">LuaJIT 1.1.1 — 2006-06-20</h2> | ||
103 | <ul> | ||
104 | <li>Merged with Lua 5.1.1. Fixes all | ||
105 | <a href="http://www.lua.org/bugs.html#5.1"><span class="ext">»</span> known bugs in Lua 5.1</a>.</li> | ||
106 | <li>Enforce (dynamic) linker error for EXE/DLL version mismatches.</li> | ||
107 | <li>Minor changes to DynASM: faster preprocessing, smaller encoding | ||
108 | for some immediates.</li> | ||
109 | </ul> | ||
110 | <p> | ||
111 | This release is in sync with Coco 1.1.1 (see the | ||
112 | <a href="http://coco.luajit.org/changes.html"><span class="ext">»</span> Coco Change History</a>). | ||
113 | </p> | ||
114 | |||
115 | <h2 id="LuaJIT-1.1.0">LuaJIT 1.1.0 — 2006-03-13</h2> | ||
116 | <ul> | ||
117 | <li>Merged with Lua 5.1 (final).</li> | ||
118 | |||
119 | <li>New JIT call frame setup: | ||
120 | <ul> | ||
121 | <li>The C stack is kept 16 byte aligned (faster). | ||
122 | Mandatory for Mac OS X on Intel, too.</li> | ||
123 | <li>Faster calling conventions for internal C helper functions.</li> | ||
124 | <li>Better instruction scheduling for function prologue, OP_CALL and | ||
125 | OP_RETURN.</li> | ||
126 | </ul></li> | ||
127 | |||
128 | <li>Miscellaneous optimizations: | ||
129 | <ul> | ||
130 | <li>Faster loads of FP constants. Remove narrow-to-wide store-to-load | ||
131 | forwarding stalls.</li> | ||
132 | <li>Use (scalar) SSE2 ops (if the CPU supports it) to speed up slot moves | ||
133 | and FP to integer conversions.</li> | ||
134 | <li>Optimized the two-argument form of <tt>OP_CONCAT</tt> (<tt>a..b</tt>).</li> | ||
135 | <li>Inlined <tt>OP_MOD</tt> (<tt>a%b</tt>). | ||
136 | With better accuracy than the C variant, too.</li> | ||
137 | <li>Inlined <tt>OP_POW</tt> (<tt>a^b</tt>). Unroll <tt>x^k</tt> or | ||
138 | use <tt>k^x = 2^(log2(k)*x)</tt> or call <tt>pow()</tt>.</li> | ||
139 | </ul></li> | ||
140 | |||
141 | <li>Changes in the optimizer: | ||
142 | <ul> | ||
143 | <li>Improved hinting for table keys derived from table values | ||
144 | (<tt>t1[t2[x]]</tt>).</li> | ||
145 | <li>Lookup hinting now works with arbitrary object types and | ||
146 | supports index chains, too.</li> | ||
147 | <li>Generate type hints for arithmetic and comparison operators, | ||
148 | OP_LEN, OP_CONCAT and OP_FORPREP.</li> | ||
149 | <li>Remove several hint definitions in favour of a generic COMBINE hint.</li> | ||
150 | <li>Complete rewrite of <tt>jit.opt_inline</tt> module | ||
151 | (ex <tt>jit.opt_lib</tt>).</li> | ||
152 | </ul></li> | ||
153 | |||
154 | <li>Use adaptive deoptimization: | ||
155 | <ul> | ||
156 | <li>If runtime verification of a contract fails, the affected | ||
157 | instruction is recompiled and patched on-the-fly. | ||
158 | Regular programs will trigger deoptimization only occasionally.</li> | ||
159 | <li>This avoids generating code for uncommon fallback cases | ||
160 | most of the time. Generated code is up to 30% smaller compared to | ||
161 | LuaJIT 1.0.3.</li> | ||
162 | <li>Deoptimization is used for many opcodes and contracts: | ||
163 | <ul> | ||
164 | <li>OP_CALL, OP_TAILCALL: type mismatch for callable.</li> | ||
165 | <li>Inlined calls: closure mismatch, parameter number and type mismatches.</li> | ||
166 | <li>OP_GETTABLE, OP_SETTABLE: table or key type and range mismatches.</li> | ||
167 | <li>All arithmetic and comparison operators, OP_LEN, OP_CONCAT, | ||
168 | OP_FORPREP: operand type and range mismatches.</li> | ||
169 | </ul></li> | ||
170 | <li>Complete redesign of the debug and traceback info | ||
171 | (bytecode ↔ mcode) to support deoptimization. | ||
172 | Much more flexible and needs only 50% of the space.</li> | ||
173 | <li>The modules <tt>jit.trace</tt>, <tt>jit.dumphints</tt> and | ||
174 | <tt>jit.dump</tt> handle deoptimization.</li> | ||
175 | </ul></li> | ||
176 | |||
177 | <li>Inlined many popular library functions | ||
178 | (for commonly used arguments only): | ||
179 | <ul> | ||
180 | <li>Most <tt>math.*</tt> functions (the 18 most used ones) | ||
181 | [2x-10x faster].</li> | ||
182 | <li><tt>string.len</tt>, <tt>string.sub</tt> and <tt>string.char</tt> | ||
183 | [2x-10x faster].</li> | ||
184 | <li><tt>table.insert</tt>, <tt>table.remove</tt> and <tt>table.getn</tt> | ||
185 | [3x-5x faster].</li> | ||
186 | <li><tt>coroutine.yield</tt> and <tt>coroutine.resume</tt> | ||
187 | [3x-5x faster].</li> | ||
188 | <li><tt>pairs</tt>, <tt>ipairs</tt> and the corresponding iterators | ||
189 | [8x-15x faster].</li> | ||
190 | </ul></li> | ||
191 | |||
192 | <li>Changes in the core and loadable modules and the stand-alone executable: | ||
193 | <ul> | ||
194 | <li>Added <tt>jit.version</tt>, <tt>jit.version_num</tt> | ||
195 | and <tt>jit.arch</tt>.</li> | ||
196 | <li>Reorganized some internal API functions (<tt>jit.util.*mcode*</tt>).</li> | ||
197 | <li>The <tt>-j dump</tt> output now shows JSUB names, too.</li> | ||
198 | <li>New x86 disassembler module written in pure Lua. No dependency | ||
199 | on ndisasm anymore. Flexible API, very compact (500 lines) | ||
200 | and complete (x87, MMX, SSE, SSE2, SSE3, SSSE3, privileged instructions).</li> | ||
201 | <li><tt>luajit -v</tt> prints the LuaJIT version and copyright | ||
202 | on a separate line.</li> | ||
203 | </ul></li> | ||
204 | |||
205 | <li>Added SSE, SSE2, SSE3 and SSSE3 support to DynASM.</li> | ||
206 | <li>Miscellaneous doc changes. Added a section about | ||
207 | <a href="luajit_install.html#embedding">embedding LuaJIT</a>.</li> | ||
208 | </ul> | ||
209 | <p> | ||
210 | This release is in sync with Coco 1.1.0 (see the | ||
211 | <a href="http://coco.luajit.org/changes.html"><span class="ext">»</span> Coco Change History</a>). | ||
212 | </p> | ||
213 | </div> | ||
214 | |||
215 | <div class="major" style="background: #ffffd0;"> | ||
216 | <h2 id="LuaJIT-1.0.3">LuaJIT 1.0.3 — 2005-09-08</h2> | ||
217 | <ul> | ||
218 | <li>Even more docs.</li> | ||
219 | <li>Unified closure checks in <tt>jit.*</tt>.</li> | ||
220 | <li>Fixed some range checks in <tt>jit.util.*</tt>.</li> | ||
221 | <li>Fixed __newindex call originating from <tt>jit_settable_str()</tt>.</li> | ||
222 | <li>Merged with Lua 5.1 alpha (including early bugfixes).</li> | ||
223 | </ul> | ||
224 | <p> | ||
225 | This is the first public release of LuaJIT. | ||
226 | </p> | ||
227 | |||
228 | <h2 id="LuaJIT-1.0.2">LuaJIT 1.0.2 — 2005-09-02</h2> | ||
229 | <ul> | ||
230 | <li>Add support for flushing the Valgrind translation cache <br> | ||
231 | (<tt>MYCFLAGS= -DUSE_VALGRIND</tt>).</li> | ||
232 | <li>Add support for freeing executable mcode memory to the <tt>mmap()</tt>-based | ||
233 | variant for POSIX systems.</li> | ||
234 | <li>Reorganized the C function signature handling in | ||
235 | <tt>jit.opt_lib</tt>.</li> | ||
236 | <li>Changed to index-based hints for inlining C functions. | ||
237 | Still no support in the backend for inlining.</li> | ||
238 | <li>Hardcode <tt>HEAP_CREATE_ENABLE_EXECUTE</tt> value if undefined.</li> | ||
239 | <li>Misc. changes to the <tt>jit.*</tt> modules.</li> | ||
240 | <li>Misc. changes to the Makefiles.</li> | ||
241 | <li>Lots of new docs.</li> | ||
242 | <li>Complete doc reorg.</li> | ||
243 | </ul> | ||
244 | <p> | ||
245 | Not released because Lua 5.1 alpha came out today. | ||
246 | </p> | ||
247 | |||
248 | <h2 id="LuaJIT-1.0.1">LuaJIT 1.0.1 — 2005-08-31</h2> | ||
249 | <ul> | ||
250 | <li>Missing GC step in <tt>OP_CONCAT</tt>.</li> | ||
251 | <li>Fix result handling for C –> JIT calls.</li> | ||
252 | <li>Detect CPU feature bits.</li> | ||
253 | <li>Encode conditional moves (<tt>fucomip</tt>) only when supported.</li> | ||
254 | <li>Add fallback instructions for FP compares.</li> | ||
255 | <li>Add support for <tt>LUA_COMPAT_VARARG</tt>. Still disabled by default.</li> | ||
256 | <li>MSVC needs a specific place for the <tt>CALLBACK</tt> attribute | ||
257 | (David Burgess).</li> | ||
258 | <li>Misc. doc updates.</li> | ||
259 | </ul> | ||
260 | <p> | ||
261 | Interim non-public release. | ||
262 | Special thanks to Adam D. Moss for reporting most of the bugs. | ||
263 | </p> | ||
264 | |||
265 | <h2 id="LuaJIT-1.0.0">LuaJIT 1.0.0 — 2005-08-29</h2> | ||
266 | <p> | ||
267 | This is the initial non-public release of LuaJIT. | ||
268 | </p> | ||
269 | </div> | ||
270 | <br class="flush"> | ||
271 | </div> | ||
272 | <div id="foot"> | ||
273 | <hr class="hide"> | ||
274 | Copyright © 2005-2009 Mike Pall | ||
275 | <span class="noprint"> | ||
276 | · | ||
277 | <a href="contact.html">Contact</a> | ||
278 | </span> | ||
279 | </div> | ||
280 | </body> | ||
281 | </html> | ||