changes.html (39774B)
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-2016, 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="http://luajit.org/download.html">Download <span class="ext">»</span></a> 27 </li><li> 28 <a href="install.html">Installation</a> 29 </li><li> 30 <a href="running.html">Running</a> 31 </li></ul> 32 </li><li> 33 <a href="extensions.html">Extensions</a> 34 <ul><li> 35 <a href="ext_ffi.html">FFI Library</a> 36 <ul><li> 37 <a href="ext_ffi_tutorial.html">FFI Tutorial</a> 38 </li><li> 39 <a href="ext_ffi_api.html">ffi.* API</a> 40 </li><li> 41 <a href="ext_ffi_semantics.html">FFI Semantics</a> 42 </li></ul> 43 </li><li> 44 <a href="ext_jit.html">jit.* Library</a> 45 </li><li> 46 <a href="ext_c_api.html">Lua/C API</a> 47 </li><li> 48 <a href="ext_profiler.html">Profiler</a> 49 </li></ul> 50 </li><li> 51 <a href="status.html">Status</a> 52 <ul><li> 53 <a class="current" href="changes.html">Changes</a> 54 </li></ul> 55 </li><li> 56 <a href="faq.html">FAQ</a> 57 </li><li> 58 <a href="http://luajit.org/performance.html">Performance <span class="ext">»</span></a> 59 </li><li> 60 <a href="http://wiki.luajit.org/">Wiki <span class="ext">»</span></a> 61 </li><li> 62 <a href="http://luajit.org/list.html">Mailing List <span class="ext">»</span></a> 63 </li></ul> 64 </div> 65 <div id="main"> 66 <p> 67 This is a list of changes between the released versions of LuaJIT.<br> 68 The current <span style="color: #0000c0;">stable version</span> is <strong>LuaJIT 2.0.4</strong>.<br> 69 </p> 70 <p> 71 Please check the 72 <a href="http://luajit.org/changes.html"><span class="ext">»</span> Online Change History</a> 73 to see whether newer versions are available. 74 </p> 75 76 <div class="major" style="background: #d0d0ff;"> 77 <h2 id="LuaJIT-2.1.0-beta2">LuaJIT 2.1.0-beta2 — 2016-03-03</h2> 78 <ul> 79 <li>Enable trace stitching.</li> 80 <li>Use internal implementation for converting FP numbers to strings.</li> 81 <li>Parse Unicode escape <tt>'\u{XX...}'</tt> in string literals.</li> 82 <li>Add MIPS soft-float support.</li> 83 <li>Switch MIPS port to dual-number mode.</li> 84 <li>x86/x64: Add support for AES-NI, AVX and AVX2 to DynASM.</li> 85 <li>FFI: Add <tt>ssize_t</tt> declaration.</li> 86 <li>FFI: Parse <tt>#line NN</tt> and <tt>#NN</tt>.</li> 87 <li>Various minor fixes.</li> 88 </ul> 89 90 <h2 id="LuaJIT-2.1.0-beta1">LuaJIT 2.1.0-beta1 — 2015-08-25</h2> 91 <p> 92 This is a brief summary of the major changes in LuaJIT 2.1 compared to 2.0. 93 Please take a look at the commit history for more details. 94 </p> 95 <ul> 96 <li>Changes to the VM core: 97 <ul> 98 <li>Add low-overhead profiler (<tt>-jp</tt>).</li> 99 <li>Add <tt>LJ_GC64</tt> mode: 64 bit GC object references (really: 47 bit). Interpreter-only for now.</li> 100 <li>Add <tt>LJ_FR2</tt> mode: Two-slot frame info. Required by <tt>LJ_GC64</tt> mode.</li> 101 <li>Add <tt>table.new()</tt> and <tt>table.clear()</tt>.</li> 102 <li>Parse binary number literals (<tt>0bxxx</tt>).</li> 103 </ul></li> 104 <li>Improvements to the JIT compiler: 105 <ul> 106 <li>Add trace stitching (disabled for now).</li> 107 <li>Compile various builtins: <tt>string.char()</tt>, <tt>string.reverse()</tt>, <tt>string.lower()</tt>, <tt>string.upper()</tt>, <tt>string.rep()</tt>, <tt>string.format()</tt>, <tt>table.concat()</tt>, <tt>bit.tohex()</tt>, <tt>getfenv(0)</tt>, <tt>debug.getmetatable()</tt>.</li> 108 <li>Compile <tt>string.find()</tt> for fixed string searches (no patterns).</li> 109 <li>Compile <tt>BC_TSETM</tt>, e.g. <tt>{1,2,3,f()}</tt>.</li> 110 <li>Compile string concatenations (<tt>BC_CAT</tt>).</li> 111 <li>Compile <tt>__concat</tt> metamethod.</li> 112 <li>Various minor optimizations.</li> 113 </ul></li> 114 <li>Internal Changes: 115 <ul> 116 <li>Add support for embedding LuaJIT bytecode for builtins.</li> 117 <li>Replace various builtins with embedded bytecode.</li> 118 <li>Refactor string buffers and string formatting.</li> 119 <li>Remove obsolete non-truncating number to integer conversions.</li> 120 </ul></li> 121 <li>Ports: 122 <ul> 123 <li>Add Xbox One port (<tt>LJ_GC64</tt> mode).</li> 124 <li>ARM64: Add port of the interpreter (<tt>LJ_GC64</tt> mode).</li> 125 <li>x64: Add separate port of the interpreter to <tt>LJ_GC64</tt> mode.</li> 126 <li>x86/x64: Drop internal x87 math functions. Use libm functions.</li> 127 <li>x86: Remove x87 support from interpreter. SSE2 is mandatory now.</li> 128 <li>PPC/e500: Drop support for this architecture.</li> 129 </ul></li> 130 <li>FFI library: 131 <ul> 132 <li>FFI: Add 64 bit bitwise operations.</li> 133 <li>FFI: Compile VLA/VLS and large cdata allocations with default initialization.</li> 134 <li>FFI: Compile conversions from functions to function pointers.</li> 135 <li>FFI: Compile lightuserdata to <tt>void *</tt> conversion.</li> 136 <li>FFI: Compile <tt>ffi.gc(cdata, nil)</tt>, too.</li> 137 <li>FFI: Add <tt>ffi.typeinfo()</tt>.</li> 138 </ul></li> 139 </ul> 140 </div> 141 142 <div class="major" style="background: #ffffd0;"> 143 <h2 id="LuaJIT-2.0.4">LuaJIT 2.0.4 — 2015-05-14</h2> 144 <ul> 145 <li>Fix stack check in narrowing optimization.</li> 146 <li>Fix Lua/C API typecheck error for special indexes.</li> 147 <li>Fix string to number conversion.</li> 148 <li>Fix lexer error for chunks without tokens.</li> 149 <li>Don't compile <tt>IR_RETF</tt> after <tt>CALLT</tt> to ff with-side effects.</li> 150 <li>Fix <tt>BC_UCLO</tt>/<tt>BC_JMP</tt> join optimization in Lua parser.</li> 151 <li>Fix corner case in string to number conversion.</li> 152 <li>Gracefully handle <tt>lua_error()</tt> for a suspended coroutine.</li> 153 <li>Avoid error messages when building with Clang.</li> 154 <li>Fix snapshot #0 handling for traces with a stack check on entry.</li> 155 <li>Fix fused constant loads under high register pressure.</li> 156 <li>Invalidate backpropagation cache after DCE.</li> 157 <li>Fix ABC elimination.</li> 158 <li>Fix debug info for main chunk of stripped bytecode.</li> 159 <li>Fix FOLD rule for <tt>string.sub(s, ...) == k</tt>.</li> 160 <li>Fix FOLD rule for <tt>STRREF</tt> of <tt>SNEW</tt>.</li> 161 <li>Fix frame traversal while searching for error function.</li> 162 <li>Prevent GC estimate miscalculation due to buffer growth.</li> 163 <li>Prevent adding side traces for stack checks.</li> 164 <li>Fix top slot calculation for snapshots with continuations.</li> 165 <li>Fix check for reuse of SCEV results in <tt>FORL</tt>.</li> 166 <li>Add PS Vita port.</li> 167 <li>Fix compatibility issues with Illumos.</li> 168 <li>Fix DragonFly build (unsupported).</li> 169 <li>OpenBSD/x86: Better executable memory allocation for W^X mode.</li> 170 <li>x86: Fix argument checks for <tt>ipairs()</tt> iterator.</li> 171 <li>x86: <tt>lj_math_random_step()</tt> clobbers XMM regs on OSX Clang.</li> 172 <li>x86: Fix code generation for unused result of <tt>math.random()</tt>.</li> 173 <li>x64: Allow building with <tt>LUAJIT_USE_SYSMALLOC</tt> and <tt>LUAJIT_USE_VALGRIND</tt>.</li> 174 <li>x86/x64: Fix argument check for bit shifts.</li> 175 <li>x86/x64: Fix code generation for fused test/arith ops.</li> 176 <li>ARM: Fix write barrier check in <tt>BC_USETS</tt>.</li> 177 <li>PPC: Fix red zone overflow in machine code generation.</li> 178 <li>PPC: Don't use <tt>mcrxr</tt> on PPE.</li> 179 <li>Various archs: Fix excess stack growth in interpreter.</li> 180 <li>FFI: Fix FOLD rule for <tt>TOBIT</tt> + <tt>CONV num.u32</tt>.</li> 181 <li>FFI: Prevent DSE across <tt>ffi.string()</tt>.</li> 182 <li>FFI: No meta fallback when indexing pointer to incomplete struct.</li> 183 <li>FFI: Fix initialization of unions of subtypes.</li> 184 <li>FFI: Fix cdata vs. non-cdata arithmetic and comparisons.</li> 185 <li>FFI: Fix <tt>__index</tt>/<tt>__newindex</tt> metamethod resolution for ctypes.</li> 186 <li>FFI: Fix compilation of reference field access.</li> 187 <li>FFI: Fix frame traversal for backtraces with FFI callbacks.</li> 188 <li>FFI: Fix recording of indexing a struct pointer ctype object itself.</li> 189 <li>FFI: Allow non-scalar cdata to be compared for equality by address.</li> 190 <li>FFI: Fix pseudo type conversions for type punning.</li> 191 </ul> 192 193 <h2 id="LuaJIT-2.0.3">LuaJIT 2.0.3 — 2014-03-12</h2> 194 <ul> 195 <li>Add PS4 port.</li> 196 <li>Add support for multilib distro builds.</li> 197 <li>Fix OSX build.</li> 198 <li>Fix MinGW build.</li> 199 <li>Fix Xbox 360 build.</li> 200 <li>Improve ULOAD forwarding for open upvalues.</li> 201 <li>Fix GC steps threshold handling when called by JIT-compiled code.</li> 202 <li>Fix argument checks for <tt>math.deg()</tt> and <tt>math.rad()</tt>.</li> 203 <li>Fix <tt>jit.flush(func|true)</tt>.</li> 204 <li>Respect <tt>jit.off(func)</tt> when returning to a function, too.</li> 205 <li>Fix compilation of <tt>string.byte(s, nil, n)</tt>.</li> 206 <li>Fix line number for relocated bytecode after closure fixup</li> 207 <li>Fix frame traversal for backtraces.</li> 208 <li>Fix ABC elimination.</li> 209 <li>Fix handling of redundant PHIs.</li> 210 <li>Fix snapshot restore for exit to function header.</li> 211 <li>Fix type punning alias analysis for constified pointers</li> 212 <li>Fix call unroll checks in the presence of metamethod frames.</li> 213 <li>Fix initial maxslot for down-recursive traces.</li> 214 <li>Prevent BASE register coalescing if parent uses <tt>IR_RETF</tt>.</li> 215 <li>Don't purge modified function from stack slots in <tt>BC_RET</tt>.</li> 216 <li>Fix recording of <tt>BC_VARG</tt>.</li> 217 <li>Don't access dangling reference to reallocated IR.</li> 218 <li>Fix frame depth display for bytecode dump in <tt>-jdump</tt>.</li> 219 <li>ARM: Fix register allocation when rematerializing FPRs.</li> 220 <li>x64: Fix store to upvalue for lightuserdata values.</li> 221 <li>FFI: Add missing GC steps for callback argument conversions.</li> 222 <li>FFI: Properly unload loaded DLLs.</li> 223 <li>FFI: Fix argument checks for <tt>ffi.string()</tt>.</li> 224 <li>FFI/x64: Fix passing of vector arguments to calls.</li> 225 <li>FFI: Rehash finalizer table after GC cycle, if needed.</li> 226 <li>FFI: Fix <tt>cts->L</tt> for cdata unsinking in snapshot restore.</li> 227 </ul> 228 229 <h2 id="LuaJIT-2.0.2">LuaJIT 2.0.2 — 2013-06-03</h2> 230 <ul> 231 <li>Fix memory access check for fast string interning.</li> 232 <li>Fix MSVC intrinsics for older versions.</li> 233 <li>Add missing GC steps for <tt>io.*</tt> functions.</li> 234 <li>Fix spurious red zone overflows in machine code generation.</li> 235 <li>Fix jump-range constrained mcode allocation.</li> 236 <li>Inhibit DSE for implicit loads via calls.</li> 237 <li>Fix builtin string to number conversion for overflow digits.</li> 238 <li>Fix optional argument handling while recording builtins.</li> 239 <li>Fix optional argument handling in <tt>table.concat()</tt>.</li> 240 <li>Add partial support for building with MingW64 GCC 4.8-SEH.</li> 241 <li>Add missing PHI barrier to <tt>string.sub(str, a, b) == kstr</tt> FOLD rule.</li> 242 <li>Fix compatibility issues with Illumos.</li> 243 <li>ARM: Fix cache flush/sync for exit stubs of JIT-compiled code.</li> 244 <li>MIPS: Fix cache flush/sync for JIT-compiled code jump area.</li> 245 <li>PPC: Add <tt>plt</tt> suffix for external calls from assembler code.</li> 246 <li>FFI: Fix snapshot substitution in SPLIT pass.</li> 247 <li>FFI/x86: Fix register allocation for 64 bit comparisons.</li> 248 <li>FFI: Fix tailcall in lowest frame to C function with bool result.</li> 249 <li>FFI: Ignore <tt>long</tt> type specifier in <tt>ffi.istype()</tt>.</li> 250 <li>FFI: Fix calling conventions for 32 bit OSX and iOS simulator (struct returns).</li> 251 <li>FFI: Fix calling conventions for ARM hard-float EABI (nested structs).</li> 252 <li>FFI: Improve error messages for arithmetic and comparison operators.</li> 253 <li>FFI: Insert no-op type conversion for pointer to integer cast.</li> 254 <li>FFI: Fix unroll limit for <tt>ffi.fill()</tt>.</li> 255 <li>FFI: Must sink <tt>XBAR</tt> together with <tt>XSTORE</tt>s.</li> 256 <li>FFI: Preserve intermediate string for <tt>const char *</tt> conversion.</li> 257 </ul> 258 259 <h2 id="LuaJIT-2.0.1">LuaJIT 2.0.1 — 2013-02-19</h2> 260 <ul> 261 <li>Don't clear frame for out-of-memory error.</li> 262 <li>Leave hook when resume catches error thrown from hook.</li> 263 <li>Add missing GC steps for template table creation.</li> 264 <li>Fix discharge order of comparisons in Lua parser.</li> 265 <li>Improve buffer handling for <tt>io.read()</tt>.</li> 266 <li>OSX: Add support for Mach-O object files to <tt>-b</tt> option.</li> 267 <li>Fix PS3 port.</li> 268 <li>Fix/enable Xbox 360 port.</li> 269 <li>x86/x64: Always mark ref for shift count as non-weak.</li> 270 <li>x64: Don't fuse implicitly 32-to-64 extended operands.</li> 271 <li>ARM: Fix armhf call argument handling.</li> 272 <li>ARM: Fix code generation for integer math.min/math.max.</li> 273 <li>PPC/e500: Fix <tt>lj_vm_floor()</tt> for Inf/NaN.</li> 274 <li>FFI: Change priority of table initializer variants for structs.</li> 275 <li>FFI: Fix code generation for bool call result check on x86/x64.</li> 276 <li>FFI: Load FFI library on-demand for bytecode with cdata literals.</li> 277 <li>FFI: Fix handling of qualified transparent structs/unions.</li> 278 </ul> 279 280 <h2 id="LuaJIT-2.0.0">LuaJIT 2.0.0 — 2012-11-08</h2> 281 <ul> 282 <li>Correctness and completeness: 283 <ul> 284 <li>Fix Android/x86 build.</li> 285 <li>Fix recording of equality comparisons with <tt>__eq</tt> metamethods.</li> 286 <li>Fix detection of immutable upvalues.</li> 287 <li>Replace error with PANIC for callbacks from JIT-compiled code.</li> 288 <li>Fix builtin string to number conversion for <tt>INT_MIN</tt>.</li> 289 <li>Don't create unneeded array part for template tables.</li> 290 <li>Fix <tt>CONV.num.int</tt> sinking.</li> 291 <li>Don't propagate implicitly widened number to index metamethods.</li> 292 <li>ARM: Fix ordered comparisons of number vs. non-number.</li> 293 <li>FFI: Fix code generation for replay of sunk float fields.</li> 294 <li>FFI: Fix signedness of bool.</li> 295 <li>FFI: Fix recording of bool call result check on x86/x64.</li> 296 <li>FFI: Fix stack-adjustment for <tt>__thiscall</tt> callbacks.</li> 297 </ul></li> 298 </ul> 299 300 <h2 id="LuaJIT-2.0.0-beta11">LuaJIT 2.0.0-beta11 — 2012-10-16</h2> 301 <ul> 302 <li>New features: 303 <ul> 304 <li>Use ARM VFP instructions, if available (build-time detection).</li> 305 <li>Add support for ARM hard-float EABI (<tt>armhf</tt>).</li> 306 <li>Add PS3 port.</li> 307 <li>Add many features from Lua 5.2, e.g. <tt>goto</tt>/labels. 308 Refer to <a href="extensions.html#lua52">this list</a>.</li> 309 <li>FFI: Add parameterized C types.</li> 310 <li>FFI: Add support for copy constructors.</li> 311 <li>FFI: Equality comparisons never raise an error (treat as unequal instead).</li> 312 <li>FFI: Box all accessed or returned enums.</li> 313 <li>FFI: Check for <tt>__new</tt> metamethod when calling a constructor.</li> 314 <li>FFI: Handle <tt>__pairs</tt>/<tt>__ipairs</tt> metamethods for cdata objects.</li> 315 <li>FFI: Convert <tt>io.*</tt> file handle to <tt>FILE *</tt> pointer (but as a <tt>void *</tt>).</li> 316 <li>FFI: Detect and support type punning through unions.</li> 317 <li>FFI: Improve various error messages.</li> 318 </ul></li> 319 <li>Build-system reorganization: 320 <ul> 321 <li>Reorganize directory layout:<br> 322 <tt>lib/*</tt> → <tt>src/jit/*</tt><br> 323 <tt>src/buildvm_*.dasc</tt> → <tt>src/vm_*.dasc</tt><br> 324 <tt>src/buildvm_*.h</tt> → removed<br> 325 <tt>src/buildvm*</tt> → <tt>src/host/*</tt></li> 326 <li>Add minified Lua interpreter plus Lua BitOp (<tt>minilua</tt>) to run DynASM.</li> 327 <li>Change DynASM bit operations to use Lua BitOp</li> 328 <li>Translate only <tt>vm_*.dasc</tt> for detected target architecture.</li> 329 <li>Improve target detection for <tt>msvcbuild.bat</tt>.</li> 330 <li>Fix build issues on Cygwin and MinGW with optional MSys.</li> 331 <li>Handle cross-compiles with FPU/no-FPU or hard-fp/soft-fp ABI mismatch.</li> 332 <li>Remove some library functions for no-JIT/no-FFI builds.</li> 333 <li>Add uninstall target to top-level Makefile.</li> 334 </ul></li> 335 <li>Correctness and completeness: 336 <ul> 337 <li>Preserve snapshot #0 PC for all traces.</li> 338 <li>Fix argument checks for <tt>coroutine.create()</tt>.</li> 339 <li>Command line prints version and JIT status to <tt>stdout</tt>, not <tt>stderr</tt>.</li> 340 <li>Fix userdata <tt>__gc</tt> separations at Lua state close.</li> 341 <li>Fix <tt>TDUP</tt> to <tt>HLOAD</tt> forwarding for <tt>LJ_DUALNUM</tt> builds.</li> 342 <li>Fix buffer check in bytecode writer.</li> 343 <li>Make <tt>os.date()</tt> thread-safe.</li> 344 <li>Add missing declarations for MSVC intrinsics.</li> 345 <li>Fix dispatch table modifications for return hooks.</li> 346 <li>Workaround for MSVC conversion bug (<tt>double</tt> → <tt>uint32_t</tt> → <tt>int32_t</tt>).</li> 347 <li>Fix FOLD rule <tt>(i-j)-i => 0-j</tt>.</li> 348 <li>Never use DWARF unwinder on Windows.</li> 349 <li>Fix shrinking of direct mapped blocks in builtin allocator.</li> 350 <li>Limit recursion depth in <tt>string.match()</tt> et al.</li> 351 <li>Fix late despecialization of <tt>ITERN</tt> after loop has been entered.</li> 352 <li>Fix <tt>'f'</tt> and <tt>'L'</tt> options for <tt>debug.getinfo()</tt> and <tt>lua_getinfo()</tt>.</li> 353 <li>Fix <tt>package.searchpath()</tt>.</li> 354 <li>OSX: Change dylib names to be consistent with other platforms.</li> 355 <li>Android: Workaround for broken <tt>sprintf("%g", -0.0)</tt>.</li> 356 <li>x86: Remove support for ancient CPUs without <tt>CMOV</tt> (before Pentium Pro).</li> 357 <li>x86: Fix register allocation for calls returning register pair.</li> 358 <li>x86/x64: Fix fusion of unsigned byte comparisons with swapped operands.</li> 359 <li>ARM: Fix <tt>tonumber()</tt> argument check.</li> 360 <li>ARM: Fix modulo operator and <tt>math.floor()</tt>/<tt>math.ceil()</tt> for <tt>inf</tt>/<tt>nan</tt>.</li> 361 <li>ARM: Invoke SPLIT pass for leftover <tt>IR_TOBIT</tt>.</li> 362 <li>ARM: Fix BASE register coalescing.</li> 363 <li>PPC: Fix interpreter state setup in callbacks.</li> 364 <li>PPC: Fix <tt>string.sub()</tt> range check.</li> 365 <li>MIPS: Support generation of MIPS/MIPSEL bytecode object files.</li> 366 <li>MIPS: Fix calls to <tt>floor()</tt>/<tt>ceil()</tt><tt>/trunc()</tt>.</li> 367 <li>ARM/PPC: Detect more target architecture variants.</li> 368 <li>ARM/PPC/e500/MIPS: Fix tailcalls from fast functions, esp. <tt>tostring()</tt>.</li> 369 <li>ARM/PPC/MIPS: Fix rematerialization of FP constants.</li> 370 <li>FFI: Don't call <tt>FreeLibrary()</tt> on our own EXE/DLL.</li> 371 <li>FFI: Resolve metamethods for constructors, too.</li> 372 <li>FFI: Properly disable callbacks on iOS (would require executable memory).</li> 373 <li>FFI: Fix cdecl string parsing during recording.</li> 374 <li>FFI: Show address pointed to for <tt>tostring(ref)</tt>, too.</li> 375 <li>FFI: Fix alignment of C call argument/return structure.</li> 376 <li>FFI: Initialize all fields of standard types.</li> 377 <li>FFI: Fix callback handling when new C types are declared in callback.</li> 378 <li>FFI: Fix recording of constructors for pointers.</li> 379 <li>FFI: Always resolve metamethods for pointers to structs.</li> 380 <li>FFI: Correctly propagate alignment when interning nested types.</li> 381 </ul></li> 382 <li>Structural and performance enhancements: 383 <ul> 384 <li>Add allocation sinking and store sinking optimization.</li> 385 <li>Constify immutable upvalues.</li> 386 <li>Add builtin string to integer or FP number conversion. Improves cross-platform consistency and correctness.</li> 387 <li>Create string hash slots in template tables for non-const values, too. Avoids later table resizes.</li> 388 <li>Eliminate <tt>HREFK</tt> guard for template table references.</li> 389 <li>Add various new FOLD rules.</li> 390 <li>Don't use stack unwinding for <tt>lua_yield()</tt> (slow on x64).</li> 391 <li>ARM, PPC, MIPS: Improve <tt>XLOAD</tt> operand fusion and register hinting.</li> 392 <li>PPC, MIPS: Compile <tt>math.sqrt()</tt> to sqrt instruction, if available.</li> 393 <li>FFI: Fold <tt>KPTR</tt> + constant offset in SPLIT pass.</li> 394 <li>FFI: Optimize/inline <tt>ffi.copy()</tt> and <tt>ffi.fill()</tt>.</li> 395 <li>FFI: Compile and optimize array/struct copies.</li> 396 <li>FFI: Compile <tt>ffi.typeof(cdata|ctype)</tt>, <tt>ffi.sizeof()</tt>, <tt>ffi.alignof()</tt>, <tt>ffi.offsetof()</tt> and <tt>ffi.gc()</tt>.</li> 397 </ul></li> 398 </ul> 399 400 <h2 id="LuaJIT-2.0.0-beta10">LuaJIT 2.0.0-beta10 — 2012-05-09</h2> 401 <ul> 402 <li>New features: 403 <ul> 404 <li>The MIPS of LuaJIT is complete. It requires a CPU conforming to the 405 MIPS32 R1 architecture with hardware FPU. O32 hard-fp ABI, 406 little-endian or big-endian.</li> 407 <li>Auto-detect target arch via cross-compiler. No need for 408 <tt>TARGET=arch</tt> anymore.</li> 409 <li>Make DynASM compatible with Lua 5.2.</li> 410 <li>From Lua 5.2: Try <tt>__tostring</tt> metamethod on non-string error 411 messages..</li> 412 </ul></li> 413 <li>Correctness and completeness: 414 <ul> 415 <li>Fix parsing of hex literals with exponents.</li> 416 <li>Fix bytecode dump for certain number constants.</li> 417 <li>Fix argument type in error message for relative arguments.</li> 418 <li>Fix argument error handling on Lua stacks without a frame.</li> 419 <li>Add missing mcode limit check in assembler backend.</li> 420 <li>Fix compilation on OpenBSD.</li> 421 <li>Avoid recursive GC steps after GC-triggered trace exit.</li> 422 <li>Replace <tt><unwind.h></tt> definitions with our own.</li> 423 <li>Fix OSX build issues. Bump minimum required OSX version to 10.4.</li> 424 <li>Fix discharge order of comparisons in Lua parser.</li> 425 <li>Ensure running <tt>__gc</tt> of userdata created in <tt>__gc</tt> 426 at state close.</li> 427 <li>Limit number of userdata <tt>__gc</tt> separations at state close.</li> 428 <li>Fix bytecode <tt>JMP</tt> slot range when optimizing 429 <tt>and</tt>/<tt>or</tt> with constant LHS.</li> 430 <li>Fix DSE of <tt>USTORE</tt>.</li> 431 <li>Make <tt>lua_concat()</tt> work from C hook with partial frame.</li> 432 <li>Add required PHIs for implicit conversions, e.g. via <tt>XREF</tt> 433 forwarding.</li> 434 <li>Add more comparison variants to Valgrind suppressions file.</li> 435 <li>Disable loading bytecode with an extra header (BOM or <tt>#!</tt>).</li> 436 <li>Fix PHI stack slot syncing.</li> 437 <li>ARM: Reorder type/value tests to silence Valgrind.</li> 438 <li>ARM: Fix register allocation for <tt>ldrd</tt>-optimized 439 <tt>HREFK</tt>.</li> 440 <li>ARM: Fix conditional branch fixup for <tt>OBAR</tt>.</li> 441 <li>ARM: Invoke SPLIT pass for <tt>double</tt> args in FFI call.</li> 442 <li>ARM: Handle all <tt>CALL*</tt> ops with <tt>double</tt> results in 443 SPLIT pass.</li> 444 <li>ARM: Fix rejoin of <tt>POW</tt> in SPLIT pass.</li> 445 <li>ARM: Fix compilation of <tt>math.sinh</tt>, <tt>math.cosh</tt>, 446 <tt>math.tanh</tt>.</li> 447 <li>ARM, PPC: Avoid pointless arg clearing in <tt>BC_IFUNCF</tt>.</li> 448 <li>PPC: Fix resume after yield from hook.</li> 449 <li>PPC: Fix argument checking for <tt>rawget()</tt>.</li> 450 <li>PPC: Fix fusion of floating-point <tt>XLOAD</tt>/<tt>XSTORE</tt>.</li> 451 <li>PPC: Fix <tt>HREFK</tt> code generation for huge tables.</li> 452 <li>PPC: Use builtin D-Cache/I-Cache sync code.</li> 453 </ul></li> 454 <li>FFI library: 455 <ul> 456 <li>Ignore empty statements in <tt>ffi.cdef()</tt>.</li> 457 <li>Ignore number parsing errors while skipping definitions.</li> 458 <li>Don't touch frame in callbacks with tailcalls to fast functions.</li> 459 <li>Fix library unloading on POSIX systems.</li> 460 <li>Finalize cdata before userdata when closing the state.</li> 461 <li>Change <tt>ffi.load()</tt> library name resolution for Cygwin.</li> 462 <li>Fix resolving of function name redirects on Windows/x86.</li> 463 <li>Fix symbol resolving error messages on Windows.</li> 464 <li>Fix blacklisting of C functions calling callbacks.</li> 465 <li>Fix result type of pointer difference.</li> 466 <li>Use correct PC in FFI metamethod error message.</li> 467 <li>Allow <tt>'typedef _Bool int BOOL;'</tt> for the Windows API.</li> 468 <li>Don't record test for bool result of call, if ignored.</li> 469 </ul></li> 470 </ul> 471 472 <h2 id="LuaJIT-2.0.0-beta9">LuaJIT 2.0.0-beta9 — 2011-12-14</h2> 473 <ul> 474 <li>New features: 475 <ul> 476 <li>PPC port of LuaJIT is complete. Default is the dual-number port 477 (usually faster). Single-number port selectable via <tt>src/Makefile</tt> 478 at build time.</li> 479 <li>Add FFI callback support.</li> 480 <li>Extend <tt>-b</tt> to generate <tt>.c</tt>, <tt>.h</tt> or <tt>.obj/.o</tt> 481 files with embedded bytecode.</li> 482 <li>Allow loading embedded bytecode with <tt>require()</tt>.</li> 483 <li>From Lua 5.2: Change to <tt>'\z'</tt> escape. Reject undefined escape 484 sequences.</li> 485 </ul></li> 486 <li>Correctness and completeness: 487 <ul> 488 <li>Fix OSX 10.7 build. Fix <tt>install_name</tt> and versioning on OSX.</li> 489 <li>Fix iOS build.</li> 490 <li>Install <tt>dis_arm.lua</tt>, too.</li> 491 <li>Mark installed shared library as executable.</li> 492 <li>Add debug option to <tt>msvcbuild.bat</tt> and improve error handling.</li> 493 <li>Fix data-flow analysis for iterators.</li> 494 <li>Fix forced unwinding triggered by external unwinder.</li> 495 <li>Record missing <tt>for</tt> loop slot loads (return to lower frame).</li> 496 <li>Always use ANSI variants of Windows system functions.</li> 497 <li>Fix GC barrier for multi-result table constructor (<tt>TSETM</tt>).</li> 498 <li>Fix/add various FOLD rules.</li> 499 <li>Add potential PHI for number conversions due to type instability.</li> 500 <li>Do not eliminate PHIs only referenced from other PHIs.</li> 501 <li>Correctly anchor implicit number to string conversions in Lua/C API.</li> 502 <li>Fix various stack limit checks.</li> 503 <li>x64: Use thread-safe exceptions for external unwinding (GCC platforms).</li> 504 <li>x64: Fix result type of cdata index conversions.</li> 505 <li>x64: Fix <tt>math.random()</tt> and <tt>bit.bswap()</tt> code generation.</li> 506 <li>x64: Fix <tt>lightuserdata</tt> comparisons.</li> 507 <li>x64: Always extend stack-passed arguments to pointer size.</li> 508 <li>ARM: Many fixes to code generation backend.</li> 509 <li>PPC/e500: Fix dispatch for binop metamethods.</li> 510 <li>PPC/e500: Save/restore condition registers when entering/leaving the VM.</li> 511 <li>PPC/e500: Fix write barrier in stores of strings to upvalues.</li> 512 </ul></li> 513 <li>FFI library: 514 <ul> 515 <li>Fix C comment parsing.</li> 516 <li>Fix snapshot optimization for cdata comparisons.</li> 517 <li>Fix recording of const/enum lookups in namespaces.</li> 518 <li>Fix call argument and return handling for <tt>I8/U8/I16/U16</tt> types.</li> 519 <li>Fix unfused loads of float fields.</li> 520 <li>Fix <tt>ffi.string()</tt> recording.</li> 521 <li>Save <tt>GetLastError()</tt> around <tt>ffi.load()</tt> and symbol 522 resolving, too.</li> 523 <li>Improve ld script detection in <tt>ffi.load()</tt>.</li> 524 <li>Record loads/stores to external variables in namespaces.</li> 525 <li>Compile calls to stdcall, fastcall and vararg functions.</li> 526 <li>Treat function ctypes like pointers in comparisons.</li> 527 <li>Resolve <tt>__call</tt> metamethod for pointers, too.</li> 528 <li>Record C function calls with bool return values.</li> 529 <li>Record <tt>ffi.errno()</tt>.</li> 530 <li>x86: Fix number to <tt>uint32_t</tt> conversion rounding.</li> 531 <li>x86: Fix 64 bit arithmetic in assembler backend.</li> 532 <li>x64: Fix struct-by-value calling conventions.</li> 533 <li>ARM: Ensure invocation of SPLIT pass for float conversions.</li> 534 </ul></li> 535 <li>Structural and performance enhancements: 536 <ul> 537 <li>Display trace types with <tt>-jv</tt> and <tt>-jdump</tt>.</li> 538 <li>Record isolated calls. But prefer recording loops over calls.</li> 539 <li>Specialize to prototype for non-monomorphic functions. Solves the 540 trace-explosion problem for closure-heavy programming styles.</li> 541 <li>Always generate a portable <tt>vmdef.lua</tt>. Easier for distros.</li> 542 </ul></li> 543 </ul> 544 545 <h2 id="LuaJIT-2.0.0-beta8">LuaJIT 2.0.0-beta8 — 2011-06-23</h2> 546 <ul> 547 <li>New features: 548 <ul> 549 <li>Soft-float ARM port of LuaJIT is complete.</li> 550 <li>Add support for bytecode loading/saving and <tt>-b</tt> command line 551 option.</li> 552 <li>From Lua 5.2: <tt>__len</tt> metamethod for tables 553 (disabled by default).</li> 554 </ul></li> 555 <li>Correctness and completeness: 556 <ul> 557 <li>ARM: Misc. fixes for interpreter.</li> 558 <li>x86/x64: Fix <tt>bit.*</tt> argument checking in interpreter.</li> 559 <li>Catch early out-of-memory in memory allocator initialization.</li> 560 <li>Fix data-flow analysis for paths leading to an upvalue close.</li> 561 <li>Fix check for missing arguments in <tt>string.format()</tt>.</li> 562 <li>Fix Solaris/x86 build (note: not a supported target).</li> 563 <li>Fix recording of loops with instable directions in side traces.</li> 564 <li>x86/x64: Fix fusion of comparisons with <tt>u8</tt>/<tt>u16</tt> 565 <tt>XLOAD</tt>.</li> 566 <li>x86/x64: Fix register allocation for variable shifts.</li> 567 </ul></li> 568 <li>FFI library: 569 <ul> 570 <li>Add <tt>ffi.errno()</tt>. Save <tt>errno</tt>/<tt>GetLastError()</tt> 571 around allocations etc.</li> 572 <li>Fix <tt>__gc</tt> for VLA/VLS cdata objects.</li> 573 <li>Fix recording of casts from 32 bit cdata pointers to integers.</li> 574 <li><tt>tonumber(cdata)</tt> returns <tt>nil</tt> for non-numbers.</li> 575 <li>Show address pointed to for <tt>tostring(pointer)</tt>.</li> 576 <li>Print <tt>NULL</tt> pointers as <tt>"cdata<... *>: NULL"</tt>.</li> 577 <li>Support <tt>__tostring</tt> metamethod for pointers to structs, too.</li> 578 </ul></li> 579 <li>Structural and performance enhancements: 580 <ul> 581 <li>More tuning for loop unrolling heuristics.</li> 582 <li>Flatten and compress in-memory debug info (saves ~70%).</li> 583 </ul></li> 584 </ul> 585 586 <h2 id="LuaJIT-2.0.0-beta7">LuaJIT 2.0.0-beta7 — 2011-05-05</h2> 587 <ul> 588 <li>New features: 589 <ul> 590 <li>ARM port of the LuaJIT interpreter is complete.</li> 591 <li>FFI library: Add <tt>ffi.gc()</tt>, <tt>ffi.metatype()</tt>, 592 <tt>ffi.istype()</tt>.</li> 593 <li>FFI library: Resolve ld script redirection in <tt>ffi.load()</tt>.</li> 594 <li>From Lua 5.2: <tt>package.searchpath()</tt>, <tt>fp:read("*L")</tt>, 595 <tt>load(string)</tt>.</li> 596 <li>From Lua 5.2, disabled by default: empty statement, 597 <tt>table.unpack()</tt>, modified <tt>coroutine.running()</tt>.</li> 598 </ul></li> 599 <li>Correctness and completeness: 600 <ul> 601 <li>FFI library: numerous fixes.</li> 602 <li>Fix type mismatches in store-to-load forwarding.</li> 603 <li>Fix error handling within metamethods.</li> 604 <li>Fix <tt>table.maxn()</tt>.</li> 605 <li>Improve accuracy of <tt>x^-k</tt> on x64.</li> 606 <li>Fix code generation for Intel Atom in x64 mode.</li> 607 <li>Fix narrowing of POW.</li> 608 <li>Fix recording of retried fast functions.</li> 609 <li>Fix code generation for <tt>bit.bnot()</tt> and multiplies.</li> 610 <li>Fix error location within cpcall frames.</li> 611 <li>Add workaround for old libgcc unwind bug.</li> 612 <li>Fix <tt>lua_yield()</tt> and <tt>getmetatable(lightuserdata)</tt> on x64.</li> 613 <li>Misc. fixes for PPC/e500 interpreter.</li> 614 <li>Fix stack slot updates for down-recursion.</li> 615 </ul></li> 616 <li>Structural and performance enhancements: 617 <ul> 618 <li>Add dual-number mode (int/double) for the VM. Enabled for ARM.</li> 619 <li>Improve narrowing of arithmetic operators and <tt>for</tt> loops.</li> 620 <li>Tune loop unrolling heuristics and increase trace recorder limits.</li> 621 <li>Eliminate dead slots in snapshots using bytecode data-flow analysis.</li> 622 <li>Avoid phantom stores to proxy tables.</li> 623 <li>Optimize lookups in empty proxy tables.</li> 624 <li>Improve bytecode optimization of <tt>and</tt>/<tt>or</tt> operators.</li> 625 </ul></li> 626 </ul> 627 628 <h2 id="LuaJIT-2.0.0-beta6">LuaJIT 2.0.0-beta6 — 2011-02-11</h2> 629 <ul> 630 <li>New features: 631 <ul> 632 <li>PowerPC/e500v2 port of the LuaJIT interpreter is complete.</li> 633 <li>Various minor features from Lua 5.2: Hex escapes in literals, 634 <tt>'\*'</tt> escape, reversible <tt>string.format("%q",s)</tt>, 635 <tt>"%g"</tt> pattern, <tt>table.sort</tt> checks callbacks, 636 <tt>os.exit(status|true|false[,close])</tt>.</li> 637 <li>Lua 5.2 <tt>__pairs</tt> and <tt>__ipairs</tt> metamethods 638 (disabled by default).</li> 639 <li>Initial release of the FFI library.</li> 640 </ul></li> 641 <li>Correctness and completeness: 642 <ul> 643 <li>Fix <tt>string.format()</tt> for non-finite numbers.</li> 644 <li>Fix memory leak when compiled to use the built-in allocator.</li> 645 <li>x86/x64: Fix unnecessary resize in <tt>TSETM</tt> bytecode.</li> 646 <li>Fix various GC issues with traces and <tt>jit.flush()</tt>.</li> 647 <li>x64: Fix fusion of indexes for array references.</li> 648 <li>x86/x64: Fix stack overflow handling for coroutine results.</li> 649 <li>Enable low-2GB memory allocation on FreeBSD/x64.</li> 650 <li>Fix <tt>collectgarbage("count")</tt> result if more than 2GB is in use.</li> 651 <li>Fix parsing of hex floats.</li> 652 <li>x86/x64: Fix loop branch inversion with trailing 653 <tt>HREF+NE/EQ</tt>.</li> 654 <li>Add <tt>jit.os</tt> string.</li> 655 <li><tt>coroutine.create()</tt> permits running C functions, too.</li> 656 <li>Fix OSX build to work with newer ld64 versions.</li> 657 <li>Fix bytecode optimization of <tt>and</tt>/<tt>or</tt> operators.</li> 658 </ul></li> 659 <li>Structural and performance enhancements: 660 <ul> 661 <li>Emit specialized bytecode for <tt>pairs()</tt>/<tt>next()</tt>.</li> 662 <li>Improve bytecode coalescing of <tt>nil</tt> constants.</li> 663 <li>Compile calls to vararg functions.</li> 664 <li>Compile <tt>select()</tt>.</li> 665 <li>Improve alias analysis, esp. for loads from allocations.</li> 666 <li>Tuning of various compiler heuristics.</li> 667 <li>Refactor and extend IR conversion instructions.</li> 668 <li>x86/x64: Various backend enhancements related to the FFI.</li> 669 <li>Add SPLIT pass to split 64 bit IR instructions for 32 bit CPUs.</li> 670 </ul></li> 671 </ul> 672 673 <h2 id="LuaJIT-2.0.0-beta5">LuaJIT 2.0.0-beta5 — 2010-08-24</h2> 674 <ul> 675 <li>Correctness and completeness: 676 <ul> 677 <li>Fix trace exit dispatch to function headers.</li> 678 <li>Fix Windows and OSX builds with LUAJIT_DISABLE_JIT.</li> 679 <li>Reorganize and fix placement of generated machine code on x64.</li> 680 <li>Fix TNEW in x64 interpreter.</li> 681 <li>Do not eliminate PHIs for values only referenced from side exits.</li> 682 <li>OS-independent canonicalization of strings for non-finite numbers.</li> 683 <li>Fix <tt>string.char()</tt> range check on x64.</li> 684 <li>Fix <tt>tostring()</tt> resolving within <tt>print()</tt>.</li> 685 <li>Fix error handling for <tt>next()</tt>.</li> 686 <li>Fix passing of constant arguments to external calls on x64.</li> 687 <li>Fix interpreter argument check for two-argument SSE math functions.</li> 688 <li>Fix C frame chain corruption caused by <tt>lua_cpcall()</tt>.</li> 689 <li>Fix return from <tt>pcall()</tt> within active hook.</li> 690 </ul></li> 691 <li>Structural and performance enhancements: 692 <ul> 693 <li>Replace on-trace GC frame syncing with interpreter exit.</li> 694 <li>Improve hash lookup specialization by not removing dead keys during GC.</li> 695 <li>Turn traces into true GC objects.</li> 696 <li>Avoid starting a GC cycle immediately after library init.</li> 697 <li>Add weak guards to improve dead-code elimination.</li> 698 <li>Speed up string interning.</li> 699 </ul></li> 700 </ul> 701 702 <h2 id="LuaJIT-2.0.0-beta4">LuaJIT 2.0.0-beta4 — 2010-03-28</h2> 703 <ul> 704 <li>Correctness and completeness: 705 <ul> 706 <li>Fix precondition for on-trace creation of table keys.</li> 707 <li>Fix <tt>{f()}</tt> on x64 when table is resized.</li> 708 <li>Fix folding of ordered comparisons with same references.</li> 709 <li>Fix snapshot restores for multi-result bytecodes.</li> 710 <li>Fix potential hang when recording bytecode with nested closures.</li> 711 <li>Fix recording of <tt>getmetatable()</tt>, <tt>tonumber()</tt> and bad argument types.</li> 712 <li>Fix SLOAD fusion across returns to lower frames.</li> 713 </ul></li> 714 <li>Structural and performance enhancements: 715 <ul> 716 <li>Add array bounds check elimination. <tt>-Oabc</tt> is enabled by default.</li> 717 <li>More tuning for x64, e.g. smaller table objects.</li> 718 </ul></li> 719 </ul> 720 721 <h2 id="LuaJIT-2.0.0-beta3">LuaJIT 2.0.0-beta3 — 2010-03-07</h2> 722 <ul> 723 <li>LuaJIT x64 port: 724 <ul> 725 <li>Port integrated memory allocator to Linux/x64, Windows/x64 and OSX/x64.</li> 726 <li>Port interpreter and JIT compiler to x64.</li> 727 <li>Port DynASM to x64.</li> 728 <li>Many 32/64 bit cleanups in the VM.</li> 729 <li>Allow building the interpreter with either x87 or SSE2 arithmetics.</li> 730 <li>Add external unwinding and C++ exception interop (default on x64).</li> 731 </ul></li> 732 <li>Correctness and completeness: 733 <ul> 734 <li>Fix constructor bytecode generation for certain conditional values.</li> 735 <li>Fix some cases of ordered string comparisons.</li> 736 <li>Fix <tt>lua_tocfunction()</tt>.</li> 737 <li>Fix cutoff register in JMP bytecode for some conditional expressions.</li> 738 <li>Fix PHI marking algorithm for references from variant slots.</li> 739 <li>Fix <tt>package.cpath</tt> for non-default PREFIX.</li> 740 <li>Fix DWARF2 frame unwind information for interpreter on OSX.</li> 741 <li>Drive the GC forward on string allocations in the parser.</li> 742 <li>Implement call/return hooks (zero-cost if disabled).</li> 743 <li>Implement yield from C hooks.</li> 744 <li>Disable JIT compiler on older non-SSE2 CPUs instead of aborting.</li> 745 </ul></li> 746 <li>Structural and performance enhancements: 747 <ul> 748 <li>Compile recursive code (tail-, up- and down-recursion).</li> 749 <li>Improve heuristics for bytecode penalties and blacklisting.</li> 750 <li>Split CALL/FUNC recording and clean up fast function call semantics.</li> 751 <li>Major redesign of internal function call handling.</li> 752 <li>Improve FOR loop const specialization and integerness checks.</li> 753 <li>Switch to pre-initialized stacks. Avoid frame-clearing.</li> 754 <li>Colocation of prototypes and related data: bytecode, constants, debug info.</li> 755 <li>Cleanup parser and streamline bytecode generation.</li> 756 <li>Add support for weak IR references to register allocator.</li> 757 <li>Switch to compressed, extensible snapshots.</li> 758 <li>Compile returns to frames below the start frame.</li> 759 <li>Improve alias analysis of upvalues using a disambiguation hash value.</li> 760 <li>Compile floor/ceil/trunc to SSE2 helper calls or SSE4.1 instructions.</li> 761 <li>Add generic C call handling to IR and backend.</li> 762 <li>Improve KNUM fuse vs. load heuristics.</li> 763 <li>Compile various <tt>io.*()</tt> functions.</li> 764 <li>Compile <tt>math.sinh()</tt>, <tt>math.cosh()</tt>, <tt>math.tanh()</tt> 765 and <tt>math.random()</tt>.</li> 766 </ul></li> 767 </ul> 768 769 <h2 id="LuaJIT-2.0.0-beta2">LuaJIT 2.0.0-beta2 — 2009-11-09</h2> 770 <ul> 771 <li>Reorganize build system. Build static+shared library on POSIX.</li> 772 <li>Allow C++ exception conversion on all platforms 773 using a wrapper function.</li> 774 <li>Automatically catch C++ exceptions and rethrow Lua error 775 (DWARF2 only).</li> 776 <li>Check for the correct x87 FPU precision at strategic points.</li> 777 <li>Always use wrappers for libm functions.</li> 778 <li>Resurrect metamethod name strings before copying them.</li> 779 <li>Mark current trace, even if compiler is idle.</li> 780 <li>Ensure FILE metatable is created only once.</li> 781 <li>Fix type comparisons when different integer types are involved.</li> 782 <li>Fix <tt>getmetatable()</tt> recording.</li> 783 <li>Fix TDUP with dead keys in template table.</li> 784 <li><tt>jit.flush(tr)</tt> returns status. 785 Prevent manual flush of a trace that's still linked.</li> 786 <li>Improve register allocation heuristics for invariant references.</li> 787 <li>Compile the push/pop variants of <tt>table.insert()</tt> and 788 <tt>table.remove()</tt>.</li> 789 <li>Compatibility with MSVC <tt>link /debug</tt>.</li> 790 <li>Fix <tt>lua_iscfunction()</tt>.</li> 791 <li>Fix <tt>math.random()</tt> when compiled with <tt>-fpic</tt> (OSX).</li> 792 <li>Fix <tt>table.maxn()</tt>.</li> 793 <li>Bump <tt>MACOSX_DEPLOYMENT_TARGET</tt> to <tt>10.4</tt></li> 794 <li><tt>luaL_check*()</tt> and <tt>luaL_opt*()</tt> now support 795 negative arguments, too.<br> 796 This matches the behavior of Lua 5.1, but not the specification.</li> 797 </ul> 798 799 <h2 id="LuaJIT-2.0.0-beta1">LuaJIT 2.0.0-beta1 — 2009-10-31</h2> 800 <ul> 801 <li>This is the first public release of LuaJIT 2.0.</li> 802 <li>The whole VM has been rewritten from the ground up, so there's 803 no point in listing differences over earlier versions.</li> 804 </ul> 805 </div> 806 <br class="flush"> 807 </div> 808 <div id="foot"> 809 <hr class="hide"> 810 Copyright © 2005-2016 Mike Pall 811 <span class="noprint"> 812 · 813 <a href="contact.html">Contact</a> 814 </span> 815 </div> 816 </body> 817 </html>