123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360 |
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- <html>
- <head>
- <title>LuaJIT Change History</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <meta name="Author" content="Mike Pall">
- <meta name="Copyright" content="Copyright (C) 2005-2010, Mike Pall">
- <meta name="Language" content="en">
- <link rel="stylesheet" type="text/css" href="bluequad.css" media="screen">
- <link rel="stylesheet" type="text/css" href="bluequad-print.css" media="print">
- <style type="text/css">
- div.major { max-width: 600px; padding: 1em; margin: 1em 0 1em 0; }
- </style>
- </head>
- <body>
- <div id="site">
- <a href="http://luajit.org"><span>Lua<span id="logo">JIT</span></span></a>
- </div>
- <div id="head">
- <h1>LuaJIT Change History</h1>
- </div>
- <div id="nav">
- <ul><li>
- <a href="luajit.html">LuaJIT</a>
- <ul><li>
- <a href="install.html">Installation</a>
- </li><li>
- <a href="running.html">Running</a>
- </li><li>
- <a href="api.html">API Extensions</a>
- </li></ul>
- </li><li>
- <a href="status.html">Status</a>
- <ul><li>
- <a class="current" href="changes.html">Changes</a>
- </li></ul>
- </li><li>
- <a href="faq.html">FAQ</a>
- </li><li>
- <a href="http://luajit.org/download.html">Download <span class="ext">»</span></a>
- </li></ul>
- </div>
- <div id="main">
- <p>
- This is a list of changes between the released versions of LuaJIT.<br>
- The current <span style="color: #c00000;">development version</span> is <strong>LuaJIT 2.0.0-beta2</strong>.<br>
- The current <span style="color: #0000c0;">stable version</span> is <strong>LuaJIT 1.1.5</strong>.
- </p>
- <p>
- Please check the
- <a href="http://luajit.org/changes.html"><span class="ext">»</span> Online Change History</a>
- to see whether newer versions are available.
- </p>
- <div class="major" style="background: #d0d0d0;">
- <h2 id="snap">Development Snapshot</h2>
- <ul>
- <li>CPU support:
- <ul>
- <li>Port integrated memory allocator to Linux/x64 and Windows/x64.</li>
- <li>Port interpreter and JIT compiler to x64.</li>
- <li>Port DynASM to x64.</li>
- <li>Many 32/64 bit cleanups in the VM.</li>
- <li>Allow building the interpreter with either x87 or SSE2 arithmetics.</li>
- <li>Disable JIT compiler on older non-SSE2 CPUs instead of aborting.</li>
- </ul></li>
- <li>Correctness and completeness:
- <ul>
- <li>Fix constructor bytecode generation for certain conditional values.</li>
- <li>Fix some cases of ordered string comparisons.</li>
- <li>Fix <tt>lua_tocfunction()</tt>.</li>
- <li>Fix cutoff register in JMP bytecode for some conditional expressions.</li>
- <li>Fix PHI marking algorithm for references from variant slots.</li>
- <li>Fix <tt>package.cpath</tt> for non-default PREFIX.</li>
- <li>Fix DWARF2 frame unwind information for interpreter on OSX.</li>
- <li>Drive the GC forward on string allocations in the parser.</li>
- <li>Implement call/return hooks (zero-cost if disabled).</li>
- <li>Implement yield from C hooks.</li>
- <li>Add external unwinding and C++ exception interop (default on x64).</li>
- </ul></li>
- <li>Structural and performance enhancements:
- <ul>
- <li>Improve heuristics for bytecode penalties and blacklisting.</li>
- <li>Split CALL/FUNC recording and clean up fast function call semantics.</li>
- <li>Major redesign of internal function call handling.</li>
- <li>Improve FOR loop const specialization and integerness checks.</li>
- <li>Switch to pre-initialized stacks. Avoid frame-clearing.</li>
- <li>Colocation of prototypes and related data: bytecode, constants, debug info.</li>
- <li>Cleanup parser and streamline bytecode generation.</li>
- <li>Add support for weak IR references to register allocator.</li>
- <li>Switch to compressed, extensible snapshots.</li>
- <li>Compile returns to frames below the start frame.</li>
- <li>Improve alias analysis of upvalues using a disambiguation hash value.</li>
- <li>Compile floor/ceil/trunc to SSE2 helper calls or SSE4.1 instructions.</li>
- <li>Add generic C call handling to IR and backend.</li>
- <li>Improve KNUM fuse vs. load heuristics.</li>
- <li>Compile various <tt>io.*()</tt> functions.</li>
- <li>Compile <tt>math.sinh()</tt>, <tt>math.cosh()</tt>, <tt>math.tanh()</tt>
- and <tt>math.random()</tt>.</li>
- </ul></li>
- </ul>
- </div>
- <div class="major" style="background: #ffd0d0;">
- <h2 id="LuaJIT-2.0.0-beta2">LuaJIT 2.0.0-beta2 — 2009-11-09</h2>
- <ul>
- <li>Reorganize build system. Build static+shared library on POSIX.</li>
- <li>Allow C++ exception conversion on all platforms
- using a wrapper function.</li>
- <li>Automatically catch C++ exceptions and rethrow Lua error
- (DWARF2 only).</li>
- <li>Check for the correct x87 FPU precision at strategic points.</li>
- <li>Always use wrappers for libm functions.</li>
- <li>Resurrect metamethod name strings before copying them.</li>
- <li>Mark current trace, even if compiler is idle.</li>
- <li>Ensure FILE metatable is created only once.</li>
- <li>Fix type comparisons when different integer types are involved.</li>
- <li>Fix <tt>getmetatable()</tt> recording.</li>
- <li>Fix TDUP with dead keys in template table.</li>
- <li><tt>jit.flush(tr)</tt> returns status.
- Prevent manual flush of a trace that's still linked.</li>
- <li>Improve register allocation heuristics for invariant references.</li>
- <li>Compile the push/pop variants of <tt>table.insert()</tt> and
- <tt>table.remove()</tt>.</li>
- <li>Compatibility with MSVC <tt>link /debug</tt>.</li>
- <li>Fix <tt>lua_iscfunction()</tt>.</li>
- <li>Fix <tt>math.random()</tt> when compiled with <tt>-fpic</tt> (OSX).</li>
- <li>Fix <tt>table.maxn()</tt>.</li>
- <li>Bump <tt>MACOSX_DEPLOYMENT_TARGET</tt> to <tt>10.4</tt></li>
- <li><tt>luaL_check*()</tt> and <tt>luaL_opt*()</tt> now support
- negative arguments, too.<br>
- This matches the behavior of Lua 5.1, but not the specification.</li>
- </ul>
- <h2 id="LuaJIT-2.0.0-beta1">LuaJIT 2.0.0-beta1 — 2009-10-31</h2>
- <ul>
- <li>This is the first public release of LuaJIT 2.0.</li>
- <li>The whole VM has been rewritten from the ground up, so there's
- no point in listing differences over earlier versions.</li>
- </ul>
- </div>
- <div class="major" style="background: #d0d0ff;">
- <h2 id="LuaJIT-1.1.5">LuaJIT 1.1.5 — 2008-10-25</h2>
- <ul>
- <li>Merged with Lua 5.1.4. Fixes all
- <a href="http://www.lua.org/bugs.html#5.1.3"><span class="ext">»</span> known bugs in Lua 5.1.3</a>.</li>
- </ul>
- <h2 id="LuaJIT-1.1.4">LuaJIT 1.1.4 — 2008-02-05</h2>
- <ul>
- <li>Merged with Lua 5.1.3. Fixes all
- <a href="http://www.lua.org/bugs.html#5.1.2"><span class="ext">»</span> known bugs in Lua 5.1.2</a>.</li>
- <li>Fixed possible (but unlikely) stack corruption while compiling
- <tt>k^x</tt> expressions.</li>
- <li>Fixed DynASM template for cmpss instruction.</li>
- </ul>
- <h2 id="LuaJIT-1.1.3">LuaJIT 1.1.3 — 2007-05-24</h2>
- <ul>
- <li>Merged with Lua 5.1.2. Fixes all
- <a href="http://www.lua.org/bugs.html#5.1.1"><span class="ext">»</span> known bugs in Lua 5.1.1</a>.</li>
- <li>Merged pending Lua 5.1.x fixes: "return -nil" bug, spurious count hook call.</li>
- <li>Remove a (sometimes) wrong assertion in <tt>luaJIT_findpc()</tt>.</li>
- <li>DynASM now allows labels for displacements and <tt>.aword</tt>.</li>
- <li>Fix some compiler warnings for DynASM glue (internal API change).</li>
- <li>Correct naming for SSSE3 (temporarily known as SSE4) in DynASM and x86 disassembler.</li>
- <li>The loadable debug modules now handle redirection to stdout
- (e.g. <tt>-j trace=-</tt>).</li>
- </ul>
- <h2 id="LuaJIT-1.1.2">LuaJIT 1.1.2 — 2006-06-24</h2>
- <ul>
- <li>Fix MSVC inline assembly: use only local variables with
- <tt>lua_number2int()</tt>.</li>
- <li>Fix "attempt to call a thread value" bug on Mac OS X:
- make values of consts used as lightuserdata keys unique
- to avoid joining by the compiler/linker.</li>
- </ul>
- <h2 id="LuaJIT-1.1.1">LuaJIT 1.1.1 — 2006-06-20</h2>
- <ul>
- <li>Merged with Lua 5.1.1. Fixes all
- <a href="http://www.lua.org/bugs.html#5.1"><span class="ext">»</span> known bugs in Lua 5.1</a>.</li>
- <li>Enforce (dynamic) linker error for EXE/DLL version mismatches.</li>
- <li>Minor changes to DynASM: faster preprocessing, smaller encoding
- for some immediates.</li>
- </ul>
- <p>
- This release is in sync with Coco 1.1.1 (see the
- <a href="http://coco.luajit.org/changes.html"><span class="ext">»</span> Coco Change History</a>).
- </p>
- <h2 id="LuaJIT-1.1.0">LuaJIT 1.1.0 — 2006-03-13</h2>
- <ul>
- <li>Merged with Lua 5.1 (final).</li>
- <li>New JIT call frame setup:
- <ul>
- <li>The C stack is kept 16 byte aligned (faster).
- Mandatory for Mac OS X on Intel, too.</li>
- <li>Faster calling conventions for internal C helper functions.</li>
- <li>Better instruction scheduling for function prologue, OP_CALL and
- OP_RETURN.</li>
- </ul></li>
- <li>Miscellaneous optimizations:
- <ul>
- <li>Faster loads of FP constants. Remove narrow-to-wide store-to-load
- forwarding stalls.</li>
- <li>Use (scalar) SSE2 ops (if the CPU supports it) to speed up slot moves
- and FP to integer conversions.</li>
- <li>Optimized the two-argument form of <tt>OP_CONCAT</tt> (<tt>a..b</tt>).</li>
- <li>Inlined <tt>OP_MOD</tt> (<tt>a%b</tt>).
- With better accuracy than the C variant, too.</li>
- <li>Inlined <tt>OP_POW</tt> (<tt>a^b</tt>). Unroll <tt>x^k</tt> or
- use <tt>k^x = 2^(log2(k)*x)</tt> or call <tt>pow()</tt>.</li>
- </ul></li>
- <li>Changes in the optimizer:
- <ul>
- <li>Improved hinting for table keys derived from table values
- (<tt>t1[t2[x]]</tt>).</li>
- <li>Lookup hinting now works with arbitrary object types and
- supports index chains, too.</li>
- <li>Generate type hints for arithmetic and comparison operators,
- OP_LEN, OP_CONCAT and OP_FORPREP.</li>
- <li>Remove several hint definitions in favour of a generic COMBINE hint.</li>
- <li>Complete rewrite of <tt>jit.opt_inline</tt> module
- (ex <tt>jit.opt_lib</tt>).</li>
- </ul></li>
- <li>Use adaptive deoptimization:
- <ul>
- <li>If runtime verification of a contract fails, the affected
- instruction is recompiled and patched on-the-fly.
- Regular programs will trigger deoptimization only occasionally.</li>
- <li>This avoids generating code for uncommon fallback cases
- most of the time. Generated code is up to 30% smaller compared to
- LuaJIT 1.0.3.</li>
- <li>Deoptimization is used for many opcodes and contracts:
- <ul>
- <li>OP_CALL, OP_TAILCALL: type mismatch for callable.</li>
- <li>Inlined calls: closure mismatch, parameter number and type mismatches.</li>
- <li>OP_GETTABLE, OP_SETTABLE: table or key type and range mismatches.</li>
- <li>All arithmetic and comparison operators, OP_LEN, OP_CONCAT,
- OP_FORPREP: operand type and range mismatches.</li>
- </ul></li>
- <li>Complete redesign of the debug and traceback info
- (bytecode ↔ mcode) to support deoptimization.
- Much more flexible and needs only 50% of the space.</li>
- <li>The modules <tt>jit.trace</tt>, <tt>jit.dumphints</tt> and
- <tt>jit.dump</tt> handle deoptimization.</li>
- </ul></li>
- <li>Inlined many popular library functions
- (for commonly used arguments only):
- <ul>
- <li>Most <tt>math.*</tt> functions (the 18 most used ones)
- [2x-10x faster].</li>
- <li><tt>string.len</tt>, <tt>string.sub</tt> and <tt>string.char</tt>
- [2x-10x faster].</li>
- <li><tt>table.insert</tt>, <tt>table.remove</tt> and <tt>table.getn</tt>
- [3x-5x faster].</li>
- <li><tt>coroutine.yield</tt> and <tt>coroutine.resume</tt>
- [3x-5x faster].</li>
- <li><tt>pairs</tt>, <tt>ipairs</tt> and the corresponding iterators
- [8x-15x faster].</li>
- </ul></li>
- <li>Changes in the core and loadable modules and the stand-alone executable:
- <ul>
- <li>Added <tt>jit.version</tt>, <tt>jit.version_num</tt>
- and <tt>jit.arch</tt>.</li>
- <li>Reorganized some internal API functions (<tt>jit.util.*mcode*</tt>).</li>
- <li>The <tt>-j dump</tt> output now shows JSUB names, too.</li>
- <li>New x86 disassembler module written in pure Lua. No dependency
- on ndisasm anymore. Flexible API, very compact (500 lines)
- and complete (x87, MMX, SSE, SSE2, SSE3, SSSE3, privileged instructions).</li>
- <li><tt>luajit -v</tt> prints the LuaJIT version and copyright
- on a separate line.</li>
- </ul></li>
- <li>Added SSE, SSE2, SSE3 and SSSE3 support to DynASM.</li>
- <li>Miscellaneous doc changes. Added a section about
- <a href="install.html#embedding">embedding LuaJIT</a>.</li>
- </ul>
- <p>
- This release is in sync with Coco 1.1.0 (see the
- <a href="http://coco.luajit.org/changes.html"><span class="ext">»</span> Coco Change History</a>).
- </p>
- </div>
- <div class="major" style="background: #ffffd0;">
- <h2 id="LuaJIT-1.0.3">LuaJIT 1.0.3 — 2005-09-08</h2>
- <ul>
- <li>Even more docs.</li>
- <li>Unified closure checks in <tt>jit.*</tt>.</li>
- <li>Fixed some range checks in <tt>jit.util.*</tt>.</li>
- <li>Fixed __newindex call originating from <tt>jit_settable_str()</tt>.</li>
- <li>Merged with Lua 5.1 alpha (including early bugfixes).</li>
- </ul>
- <p>
- This is the first public release of LuaJIT.
- </p>
- <h2 id="LuaJIT-1.0.2">LuaJIT 1.0.2 — 2005-09-02</h2>
- <ul>
- <li>Add support for flushing the Valgrind translation cache <br>
- (<tt>MYCFLAGS= -DUSE_VALGRIND</tt>).</li>
- <li>Add support for freeing executable mcode memory to the <tt>mmap()</tt>-based
- variant for POSIX systems.</li>
- <li>Reorganized the C function signature handling in
- <tt>jit.opt_lib</tt>.</li>
- <li>Changed to index-based hints for inlining C functions.
- Still no support in the backend for inlining.</li>
- <li>Hardcode <tt>HEAP_CREATE_ENABLE_EXECUTE</tt> value if undefined.</li>
- <li>Misc. changes to the <tt>jit.*</tt> modules.</li>
- <li>Misc. changes to the Makefiles.</li>
- <li>Lots of new docs.</li>
- <li>Complete doc reorg.</li>
- </ul>
- <p>
- Not released because Lua 5.1 alpha came out today.
- </p>
- <h2 id="LuaJIT-1.0.1">LuaJIT 1.0.1 — 2005-08-31</h2>
- <ul>
- <li>Missing GC step in <tt>OP_CONCAT</tt>.</li>
- <li>Fix result handling for C –> JIT calls.</li>
- <li>Detect CPU feature bits.</li>
- <li>Encode conditional moves (<tt>fucomip</tt>) only when supported.</li>
- <li>Add fallback instructions for FP compares.</li>
- <li>Add support for <tt>LUA_COMPAT_VARARG</tt>. Still disabled by default.</li>
- <li>MSVC needs a specific place for the <tt>CALLBACK</tt> attribute
- (David Burgess).</li>
- <li>Misc. doc updates.</li>
- </ul>
- <p>
- Interim non-public release.
- Special thanks to Adam D. Moss for reporting most of the bugs.
- </p>
- <h2 id="LuaJIT-1.0.0">LuaJIT 1.0.0 — 2005-08-29</h2>
- <p>
- This is the initial non-public release of LuaJIT.
- </p>
- </div>
- <br class="flush">
- </div>
- <div id="foot">
- <hr class="hide">
- Copyright © 2005-2010 Mike Pall
- <span class="noprint">
- ·
- <a href="contact.html">Contact</a>
- </span>
- </div>
- </body>
- </html>
|